Skip to main content
POST
Get the DigiLocker profile
Step 3 of the DigiLocker flow. Returns the DigiLocker account profile in user: DigiLocker id, name, date of birth (DDMMYYYY), gender, whether Aadhaar is linked (eaadhaar), mobile, email and profile photo. Values are passed through as DigiLocker returns them and are not masked: mask mobile and email before you store or show them. You can call it more than once while the reference_key is valid, and each call is charged.

Environments

Billing

Charged only when the response status is success, which is every time the profile is returned. A charged JSON response also carries "chargeble": "true" and "user_consent": "true" (spelled as the API returns them).
This endpoint has no idempotency support. A retry after a timeout runs the call again and can be charged twice.
For a masked, normalised profile (dob as YYYY-MM-DD, masked mobile and email), use DigiLocker profile instead.

Errors

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
reference_key
string
required

From /verify/digilocker/get_reference. Valid for one hour.

user_id
string

Your own identifier for the end user, stored with the call.

workflow_session_token
string

Only when the call is made inside an idto workflow session.

Response

Profile returned. Charged.

status
enum<string>
Available options:
success
user
object
chargeble
enum<string>

"true" on a charged call.

Available options:
true

"true" on a charged call.

Available options:
true
tranx_id
string

idto transaction id. Quote it to support.

timestamp
string
Last modified on October 4, 2026