Skip to main content
Networks fail after the request leaves your server. Send an Idempotency-Key header on every v2 verification, and reuse the same key when you retry the same request. This recipe uses PAN OCR, which reads a card image, so there is no money movement. Keys are scoped to your account, can be up to 255 characters, and are kept for 48 hours.
1

Set your credentials

Use https://dev.idto.ai (staging) while you build and https://prod.idto.ai (production) when you go live. Keep the client ID and API key on your server only. Never ship them to a browser or a mobile app.
.env
2

Retry with one key per logical request

Generate the key once, before the first attempt, and reuse it for every retry of that request.
3

Run it

Output

Good to know

  • Use a fresh key for each new verification. Reusing a key with a different file or body returns IDTO_010.
  • The bank verification product derives a key automatically when you do not send one. See the bank verification reference.
Was this page helpful? Email us at tech@idto.ai with the page link.
Last modified on October 4, 2026