Skip to main content
Prefer a collection? Import the Postman collection and set your base URL and key pair in its variables.
1

Get credentials

Every call to idto needs two headers: X-Client-ID and X-API-Key. Ask your idto account manager for staging keys and build against https://dev.idto.ai. Staging calls reach live verification sources and deduct staging credits, so use only identities you are authorised to verify. Production keys come from the dashboard after go-live; then switch the base URL to https://prod.idto.ai.See Environments and Authentication for the detail.
2

Check your keys

Confirm the key pair before you spend anything. POST /auth/sdk/token exchanges it for a short-lived token: it reaches no verification source and deducts no credits, so the result depends only on your keys. Send your client ID as client_id and your API key as client_secret.
cURL
A valid pair returns HTTP 200. This is what staging returned on 2026-10-04, with the token shortened:
A wrong or inactive pair returns HTTP 401 with {"detail": "Invalid client credentials"} or {"detail": "Client is inactive"}. Fix the keys before going further. You can discard the token: verification calls use the two headers, not this token. See Authentication for when the token is used.
3

Make a verification call

POST /v2/verify/pan_validation checks whether a PAN exists and is active, and returns the name and holder category on file. It requires user_consent: true in the body.
4

Read the outcome

Branch on the HTTP status and error_code, never on status alone. These are the three outcomes of a well-formed call:ABCDE1234F is a placeholder, not a PAN anyone holds, so it never returns a match. On staging it comes back as either of the last two rows, depending on which verification source serves your account: the source either rejects it as invalid (IDTO_001, free) or looks it up and finds no record (IDTO_202, billed). Both prove your integration works. On 2026-10-04 staging returned the invalid row:
chargeble and user_consent are legacy fields kept for older integrations: read billed instead. A match looks like this, with placeholder values; category comes from the fourth character of the PAN, for example individual for P:
Keep the tranx_id from every 2xx response: it identifies the call when you contact support. IDTO_001 means the input needs fixing, so ask the user to check and re-enter it rather than retrying. The other outcomes:A call is charged when it finishes with a 2xx response whose status is "success", unless a verification session already pays for that step; see Billing for the cases that follow from that rule. Every raised error has the shapes listed in Error response shapes. To retry safely after a timeout or a 503, send an Idempotency-Key header with a value you generate per verification, and reuse it on the retry with the same body. See Idempotency.

Next steps

Go-live checklist

What to confirm before production.

Error codes

Every code, its HTTP status and whether it bills.
Was this page helpful? Email us at tech@idto.ai with the page link.
Last modified on December 1, 2026