Skip to main content
POST
Send an Aadhaar OKYC OTP (v1)
Step 1 of Aadhaar OKYC on v1. Send the Aadhaar number; UIDAI sends an OTP to the mobile linked to it, and you get a sessionId to pass to OKYC: get result (v1) with the OTP the holder types. This endpoint records the holder’s consent for you, so collect it in your own flow before calling. This is a v1 endpoint: the response is a flat object, not the v2 envelope.

Environments

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 new integrations use OKYC: send OTP: it supports Idempotency-Key, returns a billed flag and uses one error format. See Migrate from v1.

How to read the result

  • status: "success": the OTP was sent. Keep sessionId for the next call. Charged.
  • status: "failed" with HTTP 200: no OTP was sent and you are not charged. Branch on error_code: IDTO_001 the number is not 12 digits or cannot be an Aadhaar number, IDTO_202 the Aadhaar number was rejected, IDTO_103 OTP generation is blocked for this Aadhaar for now (offer DigiLocker or an Aadhaar upload instead).
  • Billing signal: chargeble and user_consent are present as "true" only on a charged call, spelled exactly as shown. There is no billed field on v1.
  • tranx_id identifies the call for support.

Errors

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

Test scenarios

Questions: Aadhaar 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

application/json
aadhaar_number
string

12-digit Aadhaar number. Send this or uid.

Pattern: ^[2-9][0-9]{11}$
Example:

"999999990019"

uid
string

Same as aadhaar_number; used when aadhaar_number is absent.

user_id
string

Your own reference for the end user.

workflow_session_token
string

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

Response

The call completed. Charged only when status is success. A failed result is not charged and carries error_code.

Unlike most v1 routes, this one has a fixed legacy response shape, not a raw provider passthrough. On success (status:"success") the OTP was dispatched and the call is billed, carrying chargeble and user_consent. On failure (status:"failed") no OTP was sent, the call is not billed, and chargeble/user_consent are absent.

status
enum<string>
required
Available options:
success,
failed
message
string
required
tranx_id
string
required
timestamp
string<date-time>
required
sessionId
string

Present on success. Pass to okyc_get_result as sessionId/session_id.

valid_aadhaar
boolean

Present on success.

sessionActive
boolean

Present on success.

error_code
string

Present on some failures.

chargeble
enum<string>

Present only on success.

Available options:
true

Present only on success.

Available options:
true
Last modified on December 1, 2026