Skip to main content
POST
Read an identity document image (v1)
Upload a photo or PDF of an identity document as multipart/form-data with its type, and get back the fields printed on it. OCR reads the document; it does not check it against the issuer, so use the result as a pre-fill and verify with the matching verification endpoint. This is a v1 endpoint: the response is a flat object, not the v2 envelope. Your account returns one of two layouts:
  • Raw read: results, one entry per document side found, with each field as value plus conf. Accepts every type listed below.
  • Structured read: data with named fields (pan_number, name, father_name, dob for a PAN; dl_number, name, dob, doi, doe and more for a driving licence). Accepts pan and driving_licence only; other types return 400 IDTO_001. When nothing could be read, error_code is IDTO_202 and data is null; this is still charged.
Ask your idto account manager which layout your account uses.

Environments

Billing

Charged when status is success. chargeble and user_consent are "true" only on a charged call. There is no billed field on v1.
This endpoint has no Idempotency-Key support. A retried call runs again and can be charged twice. Retry only after you have confirmed the first call failed.
For a PAN or a driving licence use PAN OCR or DL OCR. They support Idempotency-Key, return a billed flag and use one error format. See Migrate from v1.

Errors

Every wrapped detail object also carries data: null, tranx_id and timestamp.

Test scenarios

Questions: Documents FAQ. Was this page helpful? Email us at tech@idto.ai with the page link.

Authorizations

X-Client-ID
string
header
default:<client-id>
required

The Client ID shown on the API Credentials page of the idto dashboard. It is not your account or customer ID, which returns 401. Send it on every server-to-server request together with X-API-Key. Staging and production client IDs are different.

X-API-Key
string
header
default:<api-key>
required

Your API key from the idto dashboard (API credentials). Keep it on your server; never ship it in a browser or mobile app. Send it on every server-to-server request together with X-Client-ID.

Body

multipart/form-data
file
file
required

JPEG, PNG or PDF, up to 6 MB.

type
string
required

Document type: pan, driving_licence (also dl, driving_license), aadhaar (also aadhar), voter_id (also voter, voterid) or passport. Not case sensitive.

workflow_session_token
string

Set only when the call is made inside an idto workflow session.

Response

The call completed. Charged when status is success.

Your account returns one of two layouts. Check for results (raw read) or data (structured read).

results
object[]

One entry per document found. type names the document side; details holds each field as value plus conf.

status
string
tranx_id
string

idto transaction id for this call.

timestamp
string<date-time>
chargeble
enum<string>

Present and "true" only when the call was charged.

Available options:
true

Present and "true" only when the call was charged.

Available options:
true
Last modified on December 1, 2026