What a 429 means
idto applies no per-key request quota to calls made withX-Client-ID and X-API-Key. A 429 from a verification call means one of three things, and the body tells you which:
None of these are billed. Capacity on idto’s side is protected by load shedding, which answers 503, not 429.
Server-to-server calls
None of these are billed. For bulk jobs, run a bounded worker pool rather than firing every request at once, and treat a burst of
IDTO_008 as a signal to reduce concurrency.
How load shedding works
Each idto server holds a fixed number of slots for calls that are waiting on a verification source. When every slot is busy, a new request does not queue behind them: it is answered at once withIDTO_008 and HTTP 503, before any verification starts and before any charge. That is deliberate. A fast 503 you can retry is better than a request that hangs until your own timeout fires and leaves you unsure whether it ran.
On v2 the body is the standard error envelope:
detail, status set to "failed", and a Retry-After: 5 header. Honour Retry-After whenever it is present. On v1 a source limit is also a 429 under detail: usually an object with error_code: "IDTO_006", and on some products only a message string. See Error response shapes.
OTP attempts
okyc_get_result allows 5 OTP submissions per session_id. Only a wrong OTP (IDTO_205, HTTP 422) uses up an attempt; a submission that fails for any other reason, such as a busy source, is given back. Once the attempts are used, further submissions for that session_id return IDTO_206 with HTTP 429 and are not sent to the source. Do not retry IDTO_206: ask the user to request a new OTP with okyc_generate_otp, which returns a new session_id.
SDK sessions
When an SDK token is bound to one verification session, for example the token behind a verification link, it can only be used for that session. Each bound session allows 60 verification calls. Past that, calls return:429. Start a new session for the user. Related session errors:
None of these session errors is worth retrying unchanged. Each one means the user needs a fresh session, or your app is sending the wrong session token.
Verification links
The hosted page behind a verification link is opened by your user, not by your server, and it has two limits of its own. Too many attempts from one network in a minute return 429 withToo many attempts from this network. Wait a minute and try again. A link whose account balance is below the minimum needed to run it also returns 429, with a message asking the user to contact your business. Recharge from Billing in the dashboard to clear the second one.
Which 429 to retry
Three different things return HTTP 429 on a verification call, and only one of them clears on its own. Branch onerror_code or detail, not on the status alone:
Retry pattern
Production checklist
- A bounded worker pool for bulk jobs, sized so
IDTO_008stays rare. - Exponential backoff with jitter, capped, and a maximum number of attempts.
- Retries only on
IDTO_006,IDTO_008,IDTO_103andIDTO_403, never on 4xx validation errors. - An
Idempotency-Keyon every v2 retry. - Alerts on a sustained rise in
IDTO_008, which means your concurrency is too high for current capacity.