THUNZI VERIFY · DEVELOPER GUIDE

Authentication for developers.

Implement and troubleshoot authentication using backend-validated examples for organization-scoped requests.

01 / Prerequisites

Prepare the right credentials and environment.

Confirm token scope, environment and permissions before integrating. Use synthetic data when testing in Sandbox.

Token scope: Create a token in Settings > Developer access. Tokens belong to one organization and can expire or be revoked.

Environment: Use a Production token with /api/v1/verify or a separate Sandbox token with /api/v1/sandbox/verify. They are not interchangeable.

Organization membership: Tokens access records belonging to their organization. Resources belonging to another organization are not exposed.

Consent: Set consentGiven and consentGivenAt only when applicant consent was actually captured.

02 / Request

Authenticate from your backend.

Send a bearer token in the Authorization header with each request. Production integrations must use HTTPS.

curl -sS -X POST "https://verify.thunzi.co/api/v1/verify/applicants" \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -H "X-Request-Id: demo-create-001" \
  --data '{
    "fullname": "Example Applicant",
    "email": "[email protected]",
    "callbackUrl": "https://partner.example.com/hooks/thunzi-verify",
    "applicationReference": "PARTNER-CASE-001",
    "consentGiven": true,
    "consentGivenAt": "2026-09-30T08:00:00+02:00",
    "claims": ["Claim supplied for this fictional example"]
  }'

This illustrative request uses synthetic data. Replace the redacted Authorization value with a token from server-side secret storage. X-Request-Id is shown for request correlation, not as an idempotency guarantee. Each successful POST currently creates a new request; persist requestId and do not blindly resubmit after a timeout.

03 / Response

Read results as review information.

Accepted submissions return a requestId for reconciliation. Suggested outcomes are provisional; human review remains essential.

{
  "requestId": "8d2b61aa-9b7d-45b8-86f7-12ed922156e6",
  "status": "accepted",
  "message": "Verification request accepted. Results will be sent to callbackUrl.",
  "callbackUrl": "https://partner.example.com/hooks/thunzi-verify"
}

Request status includes queued, processing, callback_pending, callback_sending, completed or callback_failed.

Verification bundles include claims, evidence and review indicators such as humanReviewRequired.

Suggested results are provisional and are not approval or rejection instructions.

{
  "error": {
    "code": "validation.failed",
    "message": "Request validation failed.",
    "requestId": "demo-create-001",
    "fieldErrors": [
      {
        "field": "callbackUrl",
        "code": "required",
        "message": "callbackUrl is required."
      }
    ],
    "retryable": false
  }
}

Errors include code, message, requestId, fieldErrors and retryable. Follow the actual HTTP status and retry guidance.

04 / Security

Protect credentials and sensitive data.

Treat tokens, personal information, evidence and reviewer notes as sensitive.

• Store tokens only in server-side secret storage; never expose them in browser code, mobile apps or public repositories.

• Use HTTPS in production and do not mix Production and Sandbox tokens.

• Rotate tokens regularly and revoke them immediately if exposed.

• Mask sensitive fields in logs unless needed for the integration.

• For 401 responses, check the token, environment, expiry and revocation; do not retry unchanged credentials.

05 / Troubleshooting

Diagnose before retrying.

Use request identifiers and structured errors to understand failures. Avoid duplicate submissions when a request may already have been accepted.

• 400 validation.failed — Check required fields, fieldErrors, JSON types and limits; callbackUrl must be public HTTPS.

• 401 auth error — Check the Authorization header, token environment, expiry and revocation.

• 404 not found — Check the identifier and organization scope.

• 429 or 5xx — Retry with exponential backoff and jitter. Do not retry 400, 401 or 404 unchanged.

API version v1 is part of every API path. Check the current developer manual and deployed contract before changing a production integration. Confirm release changes with your integration contact.

06 / Related documentation

Continue with the API reference, Webhooks, the Developer guide and the Trust policy.