TUEOR ALLY logoTUEOR ALLY

PARTNER API

Build with presence and proof.

Approved partners can create requests, read milestones, and subscribe to signed operational events through a tenant-scoped API.

QUICK START

A predictable integration contract

Keep your API key server-side, send it as a bearer token, and use an idempotency key whenever you create a request. Every partner request is isolated to the business integration that issued the key.

curl -X POST https://api.tueorally.com/api/v1/partner/requests \
  -H "Authorization: Bearer tueor_…" \
  -H "Idempotency-Key: order-1001" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Inspect a supplier",
    "description": "Confirm stock and provide evidence.",
    "category": "inspection",
    "country_code": "NG",
    "city": "Lagos",
    "external_reference": "order-1001"
  }'

Core endpoints

POST/api/v1/partner/requests

Create a request. Requires requests:create and an Idempotency-Key.

GET/api/v1/partner/requests

List only the requests owned by the authenticated integration.

GET/api/v1/partner/requests/{id}

Read request details and ordered milestones with requests:read.

POST/api/v1/partner/webhooks

Create a signed event subscription with the explicit webhooks:manage scope.

GET/api/v1/partner/agents

List agents onboarded by your business integration with agents:manage.

POST/api/v1/partner/agents

Onboard an agent for review. The response includes a one-time temporary password.

PATCH/api/v1/partner/agents/{id}

Update an owned agent's coverage, skills, or operational status.

GET/api/v1/disputes

Customer-authenticated list of the signed-in user's disputes.

POST/api/v1/requests/{id}/disputes

Open a dispute after field work reaches acceptance with a required reason.

SIGNED EVENTS

Know when work moves

Subscribe to request.created and receive JSON payloads with X-TUEOR-Event and X-TUEOR-Signature headers. Verify the signature with your one-time secret before processing the event. Failed deliveries are persisted and can be retried by operations.

signature = "sha256=" + HMAC_SHA256(raw_body, webhook_secret)

DEVELOPER WORKSPACE

Test with Postman

  1. Create a Business API plan and integration in the admin console.
  2. Copy the generated tueor_… bearer key once and store it in Postman as partner_api_key.
  3. Set base_url to your API host, import the endpoint examples above, and send Idempotency-Key on every request creation.
  4. For webhooks, save the returned secret and verify the raw request body with HMAC SHA-256.
Authorization: Bearer {{partner_api_key}}
Idempotency-Key: {{external_reference}}