DigiLocker is the government document wallet linked to a person’s Aadhaar. With the holder’s consent, this endpoint returns their DigiLocker profile: DigiLocker id, name, date of birth, gender, masked mobile and email, and whether Aadhaar is linked. Nothing is typed by the holder except their DigiLocker sign-in, so there is no OCR error to handle.
Keys on request from your idto account manager. Calls reach live sources, so use identities you are authorised to verify. Staging credits are deducted from your staging account.
How to read the result
200 with error_code: null and data: the profile was returned. This is the only billed outcome. There is no IDTO_202 result.
data.dob is YYYY-MM-DD. data.gender is as DigiLocker returns it.
data.extras.mobile and data.extras.email are masked. data.extras.eaadhaar_linked is true when Aadhaar is linked to the DigiLocker account.
An expired, reused or invalid code is a 400 IDTO_001 and is not billed. Start the session again to get a new code.
Send an Idempotency-Key header. A retry with the same key and body returns the first response, which matters here because the code itself cannot be exchanged twice. See Idempotency.
Errors
Code
HTTP
Message
Billed
IDTO_001
400
The authorization code is invalid, expired, or already used. Please obtain a new authorization code and try again.
No
IDTO_001
400
Invalid input: code and code_verifier are required. Please check and retry.
No
IDTO_001
400
Idempotency-Key must be at most 255 characters.
No
IDTO_001
422
A required field is missing or has the wrong type. The message names the field.
No
IDTO_004
409
An identical request is already in progress; retry shortly.
No
IDTO_010
422
Idempotency-Key was already used with a different request body.
No
IDTO_006
429
Too many requests. Please wait a moment and retry.
No
IDTO_007
500
Verification could not be completed due to a service configuration issue. Please contact support at tech@idto.ai.
No
IDTO_008
503
The verification service is facing downtime due to issues from the source. Please drop a mail to tech@idto.ai, and try again later.
No
A missing or wrong X-Client-ID / X-API-Key pair returns 401 with a detail string and is not billed. The full code list is in v2 error codes.
Test scenarios
Input
Expected result
Billed
A fresh code and its codeVerifier from the redirect
200, error_code: null, data.digilocker_id and data.name filled
Yes
The same code sent again without an Idempotency-Key
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.
Headers
Idempotency-Key
string
Make retries of this exact request safe. If the same key is replayed with an identical request body, the original result is returned without re-running the verification or billing again. If the same key is replayed with a different body, the request is rejected with IDTO_010 (422). Omitting this header runs every request as new.
Maximum string length: 255
Body
application/json
code
string
required
The authorization code from the DigiLocker redirect. Single use.
Maximum string length: 512
code_verifier
string
required
The PKCE code verifier used when the authorization URL was built.
Maximum string length: 512
user_id
string
Response
The code was exchanged and the profile returned. There is no IDTO_202 outcome. extras.mobile and extras.email are masked.
status
enum<string>
required
Available options:
success
message
string
required
error_code
string | null
required
null on a full match, an IDTO_2xx code on a definitive no-record result. Both are billed.
{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"idto.ai","description":"idto API documentation: verify PAN, Aadhaar, GST, bank accounts and more through one REST API for Indian identity, document and business verification.","colors":{"primary":"#002398","light":"#4d6ec2","dark":"#001a70"},"logo":{"light":"https://mintcdn.com/idto/6UYj9PsDJ-H-nSEm/logo/light.svg?fit=max\u0026auto=format\u0026n=6UYj9PsDJ-H-nSEm\u0026q=85\u0026s=5c979e7ec0a247fe1f27fd2c1cb7e00c","dark":"https://mintcdn.com/idto/6UYj9PsDJ-H-nSEm/logo/dark.svg?fit=max\u0026auto=format\u0026n=6UYj9PsDJ-H-nSEm\u0026q=85\u0026s=ed9d062ecb8abde51d3ed33f16cad707"},"favicon":"https://mintcdn.com/idto/ZthmCVqT9fN7wUWh/favicon.svg?fit=max\u0026auto=format\u0026n=ZthmCVqT9fN7wUWh\u0026q=85\u0026s=20db43408cd99fdd631649c1f0d1d51f","api":{"openapi":"openapi2.0.json","examples":{"languages":["curl","javascript","typescript","python","go","php","ruby","java"]}},"appearance":{"default":"light"},"navbar":{"links":[{"href":"https://idto-sdk-usage-demo-bucket.s3.ap-south-1.amazonaws.com/docs/v1/postman/idto-api-2026-10.postman_collection.json","label":"Postman collection"},{"href":"/changelog","label":"Changelog"}],"primary":{"type":"button","label":"Get API Access","href":"https://idto.ai"}},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"global":{"versions":[{"version":"New docs","default":true,"tag":"Latest","href":"/introduction"},{"version":"Legacy docs","tag":"Previous","href":"https://idtoai.readme.io/reference/idtoai-verification-apis"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"idto","hasAudioNarration":false,"actualSubdomain":"idto","customDomains":[],"gitSource":{"type":"github","owner":"dev-payvriz","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10ff079ffae5051c41d158"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"}},"buildId":"6b131208c3e9fac0ccdee4e9","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"API Reference","count":146},{"language":"default","tag":"Aadhaar","count":38},{"language":"default","tag":"Business","count":29},{"language":"default","tag":"Documentation","count":18},{"language":"default","tag":"Recipes","count":17},{"language":"default","tag":"Bank","count":16},{"language":"default","tag":"Mobile","count":12},{"language":"default","tag":"Driving Licence and Vehicle","count":11},{"language":"default","tag":"SDKs","count":11},{"language":"default","tag":"Integrate the SDK","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/aadhaar/digilocker","slug":"/api-reference/aadhaar/digilocker","pageMetadata":{"title":"DigiLocker profile","sidebarTitle":"DigiLocker profile","description":"Exchange a DigiLocker authorization code for the holder's verified DigiLocker profile.","openapi":"openapi2.0.json POST /v2/verify/digilocker","href":"/api-reference/aadhaar/digilocker"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Exchange a DigiLocker authorization code for the holder’s verified DigiLocker profile.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Table,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`DigiLocker is the government document wallet linked to a person’s Aadhaar. With the holder’s consent, this endpoint returns their DigiLocker profile: DigiLocker id, name, date of birth, gender, masked mobile and email, and whether Aadhaar is linked. Nothing is typed by the holder except their DigiLocker sign-in, so there is no OCR error to handle.`}),`\n`,_jsxs(Heading,{level:`2`,id:`get-code-and-code_verifier`,children:[`Get `,_jsx(_components.code,{children:`code`}),` and `,_jsx(_components.code,{children:`code_verifier`})]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Call `,_jsx(_components.a,{href:`/api-reference/aadhaar/digilocker-initiate-session`,children:`Start a DigiLocker session`}),` from your server with your `,_jsx(_components.code,{children:`redirect_url`}),`. It returns a `,_jsx(_components.code,{children:`url`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Open the `,_jsx(_components.code,{children:`url`}),` in the holder’s browser. They sign in to DigiLocker and consent.`]}),`\n`,_jsxs(_components.li,{children:[`The browser lands on your `,_jsx(_components.code,{children:`redirect_url`}),` with the query parameters `,_jsx(_components.code,{children:`code`}),`, `,_jsx(_components.code,{children:`codeVerifier`}),`, `,_jsx(_components.code,{children:`clientId`}),` and `,_jsx(_components.code,{children:`state`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Send `,_jsx(_components.code,{children:`code`}),` and `,_jsx(_components.code,{children:`codeVerifier`}),` to this endpoint as `,_jsx(_components.code,{children:`code`}),` and `,_jsx(_components.code,{children:`code_verifier`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`code`}),` can be exchanged once. Use it either here or with `,_jsx(_components.a,{href:`/api-reference/aadhaar/digilocker-get-reference`,children:`Get a reference key`}),` (to download the e-Aadhaar XML), not both. The `,_jsx(_components.a,{href:`/recipes/digilocker-consent-flow`,children:`DigiLocker consent recipe`}),` and the `,_jsx(_components.a,{href:`/guides/digilocker-integration`,children:`DigiLocker guide`}),` walk through the whole flow.`]}),`\n`,_jsx(Heading,{level:`2`,id:`environments`,children:`Environments`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Environment`}),_jsx(_components.th,{children:`Base URL`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Production`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://prod.idto.ai`})}),_jsx(_components.td,{children:`Keys from the dashboard after go-live. Billed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Staging`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://dev.idto.ai`})}),_jsx(_components.td,{children:`Keys on request from your idto account manager. Calls reach live sources, so use identities you are authorised to verify. Staging credits are deducted from your staging account.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-read-the-result`,children:`How to read the result`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`200 with `,_jsx(_components.code,{children:`error_code: null`}),` and `,_jsx(_components.code,{children:`data`}),`: the profile was returned. This is the only billed outcome. There is no `,_jsx(_components.code,{children:`IDTO_202`}),` result.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`data.dob`}),` is `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`. `,_jsx(_components.code,{children:`data.gender`}),` is as DigiLocker returns it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`data.extras.mobile`}),` and `,_jsx(_components.code,{children:`data.extras.email`}),` are masked. `,_jsx(_components.code,{children:`data.extras.eaadhaar_linked`}),` is `,_jsx(_components.code,{children:`true`}),` when Aadhaar is linked to the DigiLocker account.`]}),`\n`,_jsxs(_components.li,{children:[`An expired, reused or invalid `,_jsx(_components.code,{children:`code`}),` is a 400 `,_jsx(_components.code,{children:`IDTO_001`}),` and is not billed. Start the session again to get a new code.`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Send an `,_jsx(_components.code,{children:`Idempotency-Key`}),` header. A retry with the same key and body returns the first response, which matters here because the `,_jsx(_components.code,{children:`code`}),` itself cannot be exchanged twice. See `,_jsx(_components.a,{href:`/concepts/idempotency`,children:`Idempotency`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`Message`}),_jsx(_components.th,{children:`Billed`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`IDTO_001`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`The authorization code is invalid, expired, or already used. Please obtain a new authorization code and try again.`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`IDTO_001`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Invalid input: code and code_verifier are required. Please check and retry.`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`IDTO_001`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Idempotency-Key must be at most 255 characters.`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`IDTO_001`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`A required field is missing or has the wrong type. The message names the field.`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`IDTO_004`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:`An identical request is already in progress; retry shortly.`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`IDTO_010`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Idempotency-Key was already used with a different request body.`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`IDTO_006`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Too many requests. Please wait a moment and retry.`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`IDTO_007`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsxs(_components.td,{children:[`Verification could not be completed due to a service configuration issue. Please contact support at `,_jsx(_components.a,{href:`mailto:tech@idto.ai`,children:`tech@idto.ai`}),`.`]}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`IDTO_008`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`503`}),_jsxs(_components.td,{children:[`The verification service is facing downtime due to issues from the source. Please drop a mail to `,_jsx(_components.a,{href:`mailto:tech@idto.ai`,children:`tech@idto.ai`}),`, and try again later.`]}),_jsx(_components.td,{children:`No`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`A missing or wrong `,_jsx(_components.code,{children:`X-Client-ID`}),` / `,_jsx(_components.code,{children:`X-API-Key`}),` pair returns 401 with a `,_jsx(_components.code,{children:`detail`}),` string and is not billed. The full code list is in `,_jsx(_components.a,{href:`/reference/v2-error-codes`,children:`v2 error codes`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`test-scenarios`,children:`Test scenarios`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Input`}),_jsx(_components.th,{children:`Expected result`}),_jsx(_components.th,{children:`Billed`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`A fresh `,_jsx(_components.code,{children:`code`}),` and its `,_jsx(_components.code,{children:`codeVerifier`}),` from the redirect`]}),_jsxs(_components.td,{children:[`200, `,_jsx(_components.code,{children:`error_code: null`}),`, `,_jsx(_components.code,{children:`data.digilocker_id`}),` and `,_jsx(_components.code,{children:`data.name`}),` filled`]}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`The same `,_jsx(_components.code,{children:`code`}),` sent again without an `,_jsx(_components.code,{children:`Idempotency-Key`})]}),_jsxs(_components.td,{children:[`400, `,_jsx(_components.code,{children:`IDTO_001`}),` (code already used)`]}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code: \"\"`})}),_jsxs(_components.td,{children:[`400, `,_jsx(_components.code,{children:`IDTO_001`})]}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Body without `,_jsx(_components.code,{children:`code_verifier`})]}),_jsxs(_components.td,{children:[`422, `,_jsx(_components.code,{children:`IDTO_001`})]}),_jsx(_components.td,{children:`No`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/products/aadhaar/faq`,children:`Aadhaar FAQ`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Was this page helpful? Email us at `,_jsx(_components.a,{href:`mailto:tech@idto.ai?subject=Docs%20feedback%3A%20DigiLocker%20profile`,children:`tech@idto.ai`}),` with the page link.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"DigiLocker profile","sidebarTitle":"DigiLocker profile","description":"Exchange a DigiLocker authorization code for the holder's verified DigiLocker profile.","openapi":"openapi2.0.json POST /v2/verify/digilocker","href":"/api-reference/aadhaar/digilocker"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Get code and code_verifier","slug":"get-code-and-code_verifier","depth":2,"children":[]},{"title":"Environments","slug":"environments","depth":2,"children":[]},{"title":"How to read the result","slug":"how-to-read-the-result","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]},{"title":"Test scenarios","slug":"test-scenarios","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["DigiLocker"],"summary":"Connect a DigiLocker account","description":"Exchange a DigiLocker authorization code for the holder's verified DigiLocker profile.","security":["81439ca5-86f7-4182-a9c6-23ae5c14352a"],"responses":{"200":"1d42844a-ab27-445a-918a-2460d3ad3325","400":"8f28da1a-a476-4a32-ad9e-858253e76d3a","422":"be92fbb7-5de4-43ac-ac38-8d08b658b223","429":"49486fea-e746-4fe2-a44b-0a66dd20ff80","500":"a73c67e3-85bd-4b9a-9908-27a97b5c38f7","503":"1910a33c-8763-4041-89c0-e648e61eb4bf"},"requestBody":"d5e113a9-3475-4d9b-93dc-5dbe3bbf9e01","parameters":["750720f4-3b78-4d2d-82d7-127aa680dbbe"],"method":"post","type":"path","servers":["f6b2a582-e983-4042-85ee-0f74a0dd1dd2","355d002c-8fb3-4e12-9456-cad9c25a9ea4"],"path":"/v2/verify/digilocker","baseUrlOptions":["https://prod.idto.ai","https://dev.idto.ai"],"title":"Connect a DigiLocker account","codeSamples":[],"requestExampleLanguages":["bash","javascript","typescript","python","go","php","ruby","java"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"750720f4-3b78-4d2d-82d7-127aa680dbbe":{"name":"Idempotency-Key","in":"header","required":false,"description":"Make retries of this exact request safe. If the same key is replayed with an identical request body, the original result is returned without re-running the verification or billing again. If the same key is replayed with a different body, the request is rejected with `IDTO_010` (422). Omitting this header runs every request as new.","schema":{"type":"string","maxLength":255,"isRequired":false,"description":"Make retries of this exact request safe. If the same key is replayed with an identical request body, the original result is returned without re-running the verification or billing again. If the same key is replayed with a different body, the request is rejected with `IDTO_010` (422). Omitting this header runs every request as new.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","maxLength":512,"description":"The authorization code from the DigiLocker redirect. Single use.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"code_verifier":{"type":"string","maxLength":512,"description":"The PKCE code verifier used when the authorization URL was built.","isRequired":true,"uniqueKey":"code_verifier","typeLabel":"string"},"user_id":{"type":"string","uniqueKey":"user_id","typeLabel":"string"}},"required":["code","code_verifier"],"uniqueKey":"","typeLabel":"object"},"example":{"code":"\u003cauthorization code from the redirect>","code_verifier":"\u003cPKCE code verifier>"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cauthorization code from the redirect>","code_verifier":"\u003cPKCE code verifier>"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"1d42844a-ab27-445a-918a-2460d3ad3325":{"description":"The code was exchanged and the profile returned. There is no `IDTO_202` outcome. `extras.mobile` and `extras.email` are masked.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["success"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","description":"null on a full match, an IDTO_2xx code on a definitive no-record result. Both are billed.","isRequired":true,"uniqueKey":"error_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"null on a full match, an IDTO_2xx code on a definitive no-record result. Both are billed.","isRequired":true,"uniqueKey":"error_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error_code","typeLabel":"string | null"},"data":{"oneOf":[{"type":"object","properties":{"digilocker_id":{"oneOf":[{"type":"string","uniqueKey":"data.oneOf.0.digilocker_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.oneOf.0.digilocker_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.digilocker_id","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","uniqueKey":"data.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.name","typeLabel":"string | null"},"dob":{"oneOf":[{"type":"string","uniqueKey":"data.oneOf.0.dob.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.oneOf.0.dob.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.dob","typeLabel":"string | null"},"gender":{"oneOf":[{"type":"string","uniqueKey":"data.oneOf.0.gender.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.oneOf.0.gender.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.gender","typeLabel":"string | null"},"extras":{"type":"object","properties":{"mobile":{"oneOf":[{"type":"string","uniqueKey":"data.oneOf.0.extras.mobile.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.oneOf.0.extras.mobile.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.extras.mobile","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","uniqueKey":"data.oneOf.0.extras.email.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.oneOf.0.extras.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.extras.email","typeLabel":"string | null"},"eaadhaar_linked":{"oneOf":[{"type":"boolean","uniqueKey":"data.oneOf.0.extras.eaadhaar_linked.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"data.oneOf.0.extras.eaadhaar_linked.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.extras.eaadhaar_linked","typeLabel":"boolean | null"}},"uniqueKey":"data.oneOf.0.extras","typeLabel":"object"}},"isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"object | null"},"billed":{"type":"boolean","enum":[true],"isRequired":true,"uniqueKey":"billed","typeLabel":"enum\u003cboolean>"},"tranx_id":{"oneOf":[{"type":"string","uniqueKey":"tranx_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tranx_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"tranx_id","typeLabel":"string | null"},"timestamp":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"timestamp.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"timestamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time> | null"}},"required":["status","message","error_code","data","billed"],"uniqueKey":"","typeLabel":"object"},"examples":{"success":{"title":"success","summary":"Profile returned","value":{"status":"success","message":"DigiLocker identity verification successful.","error_code":null,"data":{"digilocker_id":"a1b2c3d4-0000-4000-8000-000000000000","name":"RAHUL SHARMA","dob":"1990-01-01","gender":"M","extras":{"mobile":"XXXXXXXX99","email":"ra***@example.com","eaadhaar_linked":true}},"billed":true,"tranx_id":"8f14e45f-ceea-467e-bd93-4a2c11e0a1b2","timestamp":"2026-10-01T10:15:30Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"8f28da1a-a476-4a32-ad9e-858253e76d3a":{"description":"code/code_verifier are missing, or the authorization code was rejected.","content":{"application/json":{"schema":{"type":"object","description":"Returned for every raised (non-2xx) error from a `/v2/verify` endpoint. Never billed. `status`, `message`, `error_code`, `data` (always `null`), `billed`, `chargeble` and `user_consent` are always present; `tranx_id` and `timestamp` are set when the failed call was recorded. Authentication failures are not in this shape: they return `{\"detail\": \"...\"}`.","properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error_code.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error_code","typeLabel":"string | null"},"data":{"type":"null","description":"Always `null` on a raised error.","isRequired":true,"uniqueKey":"data","typeLabel":"null"},"billed":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"billed","typeLabel":"enum\u003cboolean>"},"chargeble":{"type":"string","description":"Legacy string flag, always \"false\" on this path.","enum":["false"],"isRequired":true,"uniqueKey":"chargeble","typeLabel":"enum\u003cstring>"},"user_consent":{"type":"string","description":"Legacy string flag, always \"false\" on this path.","enum":["false"],"isRequired":true,"uniqueKey":"user_consent","typeLabel":"enum\u003cstring>"},"tranx_id":{"oneOf":[{"type":"string","description":"Present only when the failed call was recorded.","uniqueKey":"tranx_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Present only when the failed call was recorded.","uniqueKey":"tranx_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"tranx_id","typeLabel":"string | null"},"timestamp":{"oneOf":[{"type":"string","description":"Present only when the failed call was recorded.","uniqueKey":"timestamp.oneOf.0","typeLabel":"string"},{"type":"null","description":"Present only when the failed call was recorded.","uniqueKey":"timestamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"timestamp","typeLabel":"string | null"}},"required":["status","message","error_code","data","billed","chargeble","user_consent"],"uniqueKey":"","typeLabel":"object"},"examples":{"missing_fields":{"title":"missing_fields","summary":"Missing fields","value":{"status":"error","message":"Invalid input: code and code_verifier are required. Please check and retry.","error_code":"IDTO_001","data":null,"billed":false,"chargeble":"false","user_consent":"false"}},"invalid_code":{"title":"invalid_code","summary":"Invalid or expired code","value":{"status":"error","message":"The authorization code is invalid, expired, or already used. Please obtain a new authorization code and try again.","error_code":"IDTO_001","data":null,"billed":false,"chargeble":"false","user_consent":"false"}}},"exampleType":"examples"}},"exampleType":"examples"},"be92fbb7-5de4-43ac-ac38-8d08b658b223":{"description":"Either the request body failed schema validation, which returns `IDTO_001`, or an `Idempotency-Key` was reused with a different request body, which returns `IDTO_010`. Both use the standard v2 error envelope. When a field is missing or has the wrong type, the `IDTO_001` message starts with `Invalid request`, followed by the field name and the reason, for example `vehicle_number: Field required`. When the body cannot be read at all, the message is the generic one shown in the example.","content":{"application/json":{"schema":{"type":"object","description":"Returned for every raised (non-2xx) error from a `/v2/verify` endpoint. Never billed. `status`, `message`, `error_code`, `data` (always `null`), `billed`, `chargeble` and `user_consent` are always present; `tranx_id` and `timestamp` are set when the failed call was recorded. Authentication failures are not in this shape: they return `{\"detail\": \"...\"}`.","properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error_code.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error_code","typeLabel":"string | null"},"data":{"type":"null","description":"Always `null` on a raised error.","isRequired":true,"uniqueKey":"data","typeLabel":"null"},"billed":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"billed","typeLabel":"enum\u003cboolean>"},"chargeble":{"type":"string","description":"Legacy string flag, always \"false\" on this path.","enum":["false"],"isRequired":true,"uniqueKey":"chargeble","typeLabel":"enum\u003cstring>"},"user_consent":{"type":"string","description":"Legacy string flag, always \"false\" on this path.","enum":["false"],"isRequired":true,"uniqueKey":"user_consent","typeLabel":"enum\u003cstring>"},"tranx_id":{"oneOf":[{"type":"string","description":"Present only when the failed call was recorded.","uniqueKey":"tranx_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Present only when the failed call was recorded.","uniqueKey":"tranx_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"tranx_id","typeLabel":"string | null"},"timestamp":{"oneOf":[{"type":"string","description":"Present only when the failed call was recorded.","uniqueKey":"timestamp.oneOf.0","typeLabel":"string"},{"type":"null","description":"Present only when the failed call was recorded.","uniqueKey":"timestamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"timestamp","typeLabel":"string | null"}},"required":["status","message","error_code","data","billed","chargeble","user_consent"],"uniqueKey":"","typeLabel":"object"},"examples":{"unparseable":{"title":"unparseable","summary":"Body could not be parsed","value":{"status":"error","message":"Invalid input. Please check the request and try again.","error_code":"IDTO_001","data":null,"billed":false,"chargeble":"false","user_consent":"false"}},"idempotency_conflict":{"title":"idempotency_conflict","summary":"Idempotency-Key reused with a different body","value":{"status":"error","message":"Idempotency-Key was already used with a different request body.","error_code":"IDTO_010","data":null,"billed":false,"chargeble":"false","user_consent":"false"}}},"exampleType":"examples"}},"exampleType":"examples"},"49486fea-e746-4fe2-a44b-0a66dd20ff80":{"description":"idto has no per-key request quota. A 429 is `IDTO_006` (the verification source is limiting requests; retry with backoff), `IDTO_206` (OTP attempts for the session are used up; generate a new OTP) or, on a call made with an SDK session token, the session allowance `{\"detail\": \"This verification session has used its allowance. Start a new session.\"}`. Not billed.","content":{"application/json":{"schema":{"type":"object","description":"Returned for every raised (non-2xx) error from a `/v2/verify` endpoint. Never billed. `status`, `message`, `error_code`, `data` (always `null`), `billed`, `chargeble` and `user_consent` are always present; `tranx_id` and `timestamp` are set when the failed call was recorded. Authentication failures are not in this shape: they return `{\"detail\": \"...\"}`.","properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error_code.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error_code","typeLabel":"string | null"},"data":{"type":"null","description":"Always `null` on a raised error.","isRequired":true,"uniqueKey":"data","typeLabel":"null"},"billed":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"billed","typeLabel":"enum\u003cboolean>"},"chargeble":{"type":"string","description":"Legacy string flag, always \"false\" on this path.","enum":["false"],"isRequired":true,"uniqueKey":"chargeble","typeLabel":"enum\u003cstring>"},"user_consent":{"type":"string","description":"Legacy string flag, always \"false\" on this path.","enum":["false"],"isRequired":true,"uniqueKey":"user_consent","typeLabel":"enum\u003cstring>"},"tranx_id":{"oneOf":[{"type":"string","description":"Present only when the failed call was recorded.","uniqueKey":"tranx_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Present only when the failed call was recorded.","uniqueKey":"tranx_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"tranx_id","typeLabel":"string | null"},"timestamp":{"oneOf":[{"type":"string","description":"Present only when the failed call was recorded.","uniqueKey":"timestamp.oneOf.0","typeLabel":"string"},{"type":"null","description":"Present only when the failed call was recorded.","uniqueKey":"timestamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"timestamp","typeLabel":"string | null"}},"required":["status","message","error_code","data","billed","chargeble","user_consent"],"uniqueKey":"","typeLabel":"object"},"examples":{"default":{"title":"default","summary":"Rate limited","value":{"status":"error","message":"Too many requests. Please wait a moment and retry.","error_code":"IDTO_006","data":null,"billed":false,"chargeble":"false","user_consent":"false"}}},"exampleType":"examples"}},"exampleType":"examples"},"a73c67e3-85bd-4b9a-9908-27a97b5c38f7":{"description":"A service configuration issue prevented the verification from running (not caused by the request).","content":{"application/json":{"schema":{"type":"object","description":"Returned for every raised (non-2xx) error from a `/v2/verify` endpoint. Never billed. `status`, `message`, `error_code`, `data` (always `null`), `billed`, `chargeble` and `user_consent` are always present; `tranx_id` and `timestamp` are set when the failed call was recorded. Authentication failures are not in this shape: they return `{\"detail\": \"...\"}`.","properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error_code.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error_code","typeLabel":"string | null"},"data":{"type":"null","description":"Always `null` on a raised error.","isRequired":true,"uniqueKey":"data","typeLabel":"null"},"billed":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"billed","typeLabel":"enum\u003cboolean>"},"chargeble":{"type":"string","description":"Legacy string flag, always \"false\" on this path.","enum":["false"],"isRequired":true,"uniqueKey":"chargeble","typeLabel":"enum\u003cstring>"},"user_consent":{"type":"string","description":"Legacy string flag, always \"false\" on this path.","enum":["false"],"isRequired":true,"uniqueKey":"user_consent","typeLabel":"enum\u003cstring>"},"tranx_id":{"oneOf":[{"type":"string","description":"Present only when the failed call was recorded.","uniqueKey":"tranx_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Present only when the failed call was recorded.","uniqueKey":"tranx_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"tranx_id","typeLabel":"string | null"},"timestamp":{"oneOf":[{"type":"string","description":"Present only when the failed call was recorded.","uniqueKey":"timestamp.oneOf.0","typeLabel":"string"},{"type":"null","description":"Present only when the failed call was recorded.","uniqueKey":"timestamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"timestamp","typeLabel":"string | null"}},"required":["status","message","error_code","data","billed","chargeble","user_consent"],"uniqueKey":"","typeLabel":"object"},"examples":{"default":{"title":"default","summary":"Config error","value":{"status":"error","message":"Verification could not be completed due to a service configuration issue. Please contact support at tech@idto.ai.","error_code":"IDTO_007","data":null,"billed":false,"chargeble":"false","user_consent":"false"}}},"exampleType":"examples"}},"exampleType":"examples"},"1910a33c-8763-4041-89c0-e648e61eb4bf":{"description":"The verification service is momentarily saturated.","content":{"application/json":{"schema":{"type":"object","description":"Returned for every raised (non-2xx) error from a `/v2/verify` endpoint. Never billed. `status`, `message`, `error_code`, `data` (always `null`), `billed`, `chargeble` and `user_consent` are always present; `tranx_id` and `timestamp` are set when the failed call was recorded. Authentication failures are not in this shape: they return `{\"detail\": \"...\"}`.","properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error_code.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error_code","typeLabel":"string | null"},"data":{"type":"null","description":"Always `null` on a raised error.","isRequired":true,"uniqueKey":"data","typeLabel":"null"},"billed":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"billed","typeLabel":"enum\u003cboolean>"},"chargeble":{"type":"string","description":"Legacy string flag, always \"false\" on this path.","enum":["false"],"isRequired":true,"uniqueKey":"chargeble","typeLabel":"enum\u003cstring>"},"user_consent":{"type":"string","description":"Legacy string flag, always \"false\" on this path.","enum":["false"],"isRequired":true,"uniqueKey":"user_consent","typeLabel":"enum\u003cstring>"},"tranx_id":{"oneOf":[{"type":"string","description":"Present only when the failed call was recorded.","uniqueKey":"tranx_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Present only when the failed call was recorded.","uniqueKey":"tranx_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"tranx_id","typeLabel":"string | null"},"timestamp":{"oneOf":[{"type":"string","description":"Present only when the failed call was recorded.","uniqueKey":"timestamp.oneOf.0","typeLabel":"string"},{"type":"null","description":"Present only when the failed call was recorded.","uniqueKey":"timestamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"timestamp","typeLabel":"string | null"}},"required":["status","message","error_code","data","billed","chargeble","user_consent"],"uniqueKey":"","typeLabel":"object"},"examples":{"default":{"title":"default","summary":"Service busy","value":{"status":"error","message":"The verification service is facing downtime due to issues from the source. Please drop a mail to tech@idto.ai, and try again later.","error_code":"IDTO_008","data":null,"billed":false,"chargeble":"false","user_consent":"false"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"81439ca5-86f7-4182-a9c6-23ae5c14352a":{"ClientIdAuth":{"type":"apiKey","in":"header","name":"X-Client-ID","description":"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-default":"\u003cclient-id>","scopes":[],"schemeName":"ClientIdAuth"},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"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.","x-default":"\u003capi-key>","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"f6b2a582-e983-4042-85ee-0f74a0dd1dd2":{"url":"https://prod.idto.ai","description":"Production: keys from the idto dashboard after go-live. Every successful call is billed."},"355d002c-8fb3-4e12-9456-cad9c25a9ea4":{"url":"https://dev.idto.ai","description":"Staging: keys on request from your idto account manager. Calls reach live sources and deduct staging credits."}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Client-ID","description":"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-default":"\u003cclient-id>","scopes":[],"schemeName":"ClientIdAuth"},"schema":{"title":"X-Client-ID","type":"string","description":"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.","isRequired":true,"default":"\u003cclient-id>","typeLabel":"string","deprecated":false},"schemeName":"ClientIdAuth","name":"X-Client-ID"},{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"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.","x-default":"\u003capi-key>","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","description":"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.","isRequired":true,"default":"\u003capi-key>","typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ClientIdAuth \u0026 ApiKeyAuth"}]},"originalFileLocation":"openapi2.0.json"},"subdomain":"idto","siteName":"idto.ai","title":"DigiLocker profile - idto.ai","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T07:02:48.955Z","gitLastModified":"2026-12-01T07:02:36.000Z","originalFileLocation":"api-reference/aadhaar/digilocker.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Exchange a DigiLocker authorization code for the holder\u0026#x27;s verified DigiLocker profile.\">\u003cmeta data-mint-head name=\"application-name\" content=\"idto.ai\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/idto/57v_t7tyma60bkhz/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/idto/57v_t7tyma60bkhz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/idto/57v_t7tyma60bkhz/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/idto/57v_t7tyma60bkhz/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/idto/57v_t7tyma60bkhz/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/idto/57v_t7tyma60bkhz/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/idto/57v_t7tyma60bkhz/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/idto/57v_t7tyma60bkhz/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/idto/57v_t7tyma60bkhz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"DigiLocker profile - idto.ai\">\u003cmeta data-mint-head property=\"og:description\" content=\"Exchange a DigiLocker authorization code for the holder\u0026#x27;s verified DigiLocker profile.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"idto.ai\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://idto.mintlify.app/api-reference/aadhaar/digilocker\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://idto.mintlify.site/_mintlify/api/og/v2?division=Aadhaar\u0026amp;title=DigiLocker+profile\u0026amp;description=Exchange+a+DigiLocker+authorization+code+for+the+holder%27s+verified+DigiLocker+profile.\u0026amp;theme=62b3dc665bfe7185bccae16c\u0026amp;signature=0db04bb8ff38fabd2c320b4481d66ac55575b2be9fb511793ec4527bb1007381\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"DigiLocker profile - idto.ai\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Exchange a DigiLocker authorization code for the holder\u0026#x27;s verified DigiLocker profile.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://idto.mintlify.site/_mintlify/api/og/v2?division=Aadhaar\u0026amp;title=DigiLocker+profile\u0026amp;description=Exchange+a+DigiLocker+authorization+code+for+the+holder%27s+verified+DigiLocker+profile.\u0026amp;theme=62b3dc665bfe7185bccae16c\u0026amp;signature=0db04bb8ff38fabd2c320b4481d66ac55575b2be9fb511793ec4527bb1007381\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/idto/57v_t7tyma60bkhz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"idto.ai\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#002398\">\u003clink data-mint-head rel=\"canonical\" href=\"https://idto.mintlify.app/api-reference/aadhaar/digilocker\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/aadhaar/digilocker.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://idto.mintlify.app/#organization\",\"name\":\"idto.ai\",\"url\":\"https://idto.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/idto/6UYj9PsDJ-H-nSEm/logo/light.svg?fit=max\u0026auto=format\u0026n=6UYj9PsDJ-H-nSEm\u0026q=85\u0026s=5c979e7ec0a247fe1f27fd2c1cb7e00c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://idto.mintlify.app#website\",\"name\":\"idto.ai\",\"url\":\"https://idto.mintlify.app\",\"publisher\":{\"@id\":\"https://idto.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://idto.mintlify.app/api-reference/aadhaar/digilocker#webpage\",\"url\":\"https://idto.mintlify.app/api-reference/aadhaar/digilocker\",\"name\":\"DigiLocker profile\",\"description\":\"Exchange a DigiLocker authorization code for the holder's verified DigiLocker profile.\",\"dateModified\":\"2026-12-01T07:02:36.000Z\",\"isPartOf\":{\"@id\":\"https://idto.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://idto.mintlify.app/api-reference/aadhaar/digilocker#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://idto.mintlify.app/api-reference/aadhaar/digilocker#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Aadhaar\",\"item\":\"https://idto.mintlify.app/products/aadhaar/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DigiLocker profile\",\"item\":\"https://idto.mintlify.app/api-reference/aadhaar/digilocker\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://idto.mintlify.app/api-reference/aadhaar/digilocker#apireference\",\"headline\":\"DigiLocker profile\",\"name\":\"DigiLocker profile\",\"description\":\"Exchange a DigiLocker authorization code for the holder's verified DigiLocker profile.\",\"url\":\"https://idto.mintlify.app/api-reference/aadhaar/digilocker\",\"mainEntityOfPage\":{\"@id\":\"https://idto.mintlify.app/api-reference/aadhaar/digilocker#webpage\"},\"dateModified\":\"2026-12-01T07:02:36.000Z\",\"publisher\":{\"@id\":\"https://idto.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://idto.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"idto.ai\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"idto.ai\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/aadhaar/digilocker.md","siteName":"idto.ai","nav":{"global":{"versions":[{"version":"New docs","default":true,"tag":"Latest","href":"/introduction"},{"version":"Legacy docs","tag":"Previous","href":"https://idtoai.readme.io/reference/idtoai-verification-apis"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"PAN","pages":[{"title":"PAN overview","sidebarTitle":"Overview","href":"/products/pan/overview"},{"title":"Validate a PAN","sidebarTitle":"PAN Validation","openapi":"openapi2.0.json POST /v2/verify/pan_validation","href":"/api-reference/pan/pan-validation"},{"title":"Check a PAN, name and date of birth","sidebarTitle":"PAN Lite","openapi":"openapi2.0.json POST /v2/verify/pan_lite","href":"/api-reference/pan/pan-lite"},{"title":"Detailed PAN lookup","sidebarTitle":"PAN Detailed","openapi":"openapi2.0.json POST /v2/verify/pan_detailed","href":"/api-reference/pan/pan-detailed"},{"title":"Read a PAN card image","sidebarTitle":"PAN OCR","openapi":"openapi2.0.json POST /v2/verify/pan_ocr","href":"/api-reference/pan/pan-ocr"},{"title":"Find the PAN linked to an Aadhaar (v1)","sidebarTitle":"Aadhaar to PAN (v1)","openapi":"openapi2.0.json POST /verify/aadhar_to_pan","href":"/api-reference/pan/aadhar-to-pan"},{"title":"PAN FAQ","sidebarTitle":"FAQ","href":"/products/pan/faq"}]},{"group":"Aadhaar","pages":[{"title":"Aadhaar overview","sidebarTitle":"Overview","href":"/products/aadhaar/overview"},{"title":"Aadhaar OKYC: send OTP","sidebarTitle":"OKYC send OTP","openapi":"openapi2.0.json POST /v2/verify/okyc_generate_otp","href":"/api-reference/aadhaar/okyc-generate-otp"},{"title":"Aadhaar OKYC: submit OTP","sidebarTitle":"OKYC submit OTP","openapi":"openapi2.0.json POST /v2/verify/okyc_get_result","href":"/api-reference/aadhaar/okyc-get-result"},{"title":"Aadhaar OCR","sidebarTitle":"Aadhaar OCR","openapi":"openapi2.0.json POST /v2/verify/aadhaar_ocr","href":"/api-reference/aadhaar/aadhaar-ocr"},{"title":"Aadhaar QR","sidebarTitle":"Aadhaar QR","description":"Read the QR code on an Aadhaar card or e-Aadhaar and check its UIDAI digital signature.","openapi":"openapi2.0.json POST /v2/verify/aadhaar_qr","href":"/api-reference/aadhaar/aadhaar-qr"},{"title":"DigiLocker profile","sidebarTitle":"DigiLocker profile","openapi":"openapi2.0.json POST /v2/verify/digilocker","href":"/api-reference/aadhaar/digilocker"},{"title":"Start a DigiLocker session","sidebarTitle":"DigiLocker: start session","description":"Get a URL that sends your user to DigiLocker to sign in and consent. Step 1 of the server-side DigiLocker flow.","openapi":"openapi2.0.json POST /verify/digilocker/initiate_session","href":"/api-reference/aadhaar/digilocker-initiate-session"},{"title":"Get a DigiLocker reference key","sidebarTitle":"DigiLocker: reference key","openapi":"openapi2.0.json POST /verify/digilocker/get_reference","href":"/api-reference/aadhaar/digilocker-get-reference"},{"title":"Get DigiLocker user details","sidebarTitle":"DigiLocker: user details","openapi":"openapi2.0.json POST /verify/digilocker/user_details","href":"/api-reference/aadhaar/digilocker-user-details"},{"title":"Download the e-Aadhaar XML","sidebarTitle":"DigiLocker: e-Aadhaar XML","openapi":"openapi2.0.json POST /verify/digilocker/fetch_aadhaar","href":"/api-reference/aadhaar/digilocker-fetch-aadhaar"},{"title":"Check a DigiLocker account","sidebarTitle":"DigiLocker: check account","openapi":"openapi2.0.json POST /verify/digilocker/verify_account","href":"/api-reference/aadhaar/digilocker-verify-account"},{"title":"Read an Aadhaar card image (v1)","sidebarTitle":"Aadhaar OCR (v1)","openapi":"openapi2.0.json POST /verify/aadhaar_ocr","href":"/api-reference/aadhaar/aadhaar-ocr-v1"},{"title":"Read and check an Aadhaar QR code (v1)","sidebarTitle":"Aadhaar QR (v1)","openapi":"openapi2.0.json POST /verify/aadhaar_qr","href":"/api-reference/aadhaar/aadhaar-qr-v1"},{"title":"List DigiLocker document types","sidebarTitle":"DigiLocker: document types","openapi":"openapi2.0.json GET /verify/digilocker/doc_master","href":"/api-reference/aadhaar/digilocker-doc-master"},{"title":"Download the Class X marksheet PDF","sidebarTitle":"DigiLocker: Class X PDF","openapi":"openapi2.0.json POST /verify/digilocker/fetch_10thmarksheet","href":"/api-reference/aadhaar/digilocker-fetch-10thmarksheet"},{"title":"Download the Class XII marksheet PDF","sidebarTitle":"DigiLocker: Class XII PDF","openapi":"openapi2.0.json POST /verify/digilocker/fetch_12thmarksheet","href":"/api-reference/aadhaar/digilocker-fetch-12thmarksheet"},{"title":"Download the degree certificate PDF","sidebarTitle":"DigiLocker: degree PDF","openapi":"openapi2.0.json POST /verify/digilocker/fetch_degree","href":"/api-reference/aadhaar/digilocker-fetch-degree"},{"title":"Download the driving licence XML","sidebarTitle":"DigiLocker: DL XML","openapi":"openapi2.0.json POST /verify/digilocker/fetch_dl/xml","href":"/api-reference/aadhaar/digilocker-fetch-dl-xml"},{"title":"Download the driving licence PDF","sidebarTitle":"DigiLocker: DL PDF","openapi":"openapi2.0.json POST /verify/digilocker/fetch_dl","href":"/api-reference/aadhaar/digilocker-fetch-dl"},{"title":"Download the PAN XML","sidebarTitle":"DigiLocker: PAN XML","openapi":"openapi2.0.json POST /verify/digilocker/fetch_pan/xml","href":"/api-reference/aadhaar/digilocker-fetch-pan-xml"},{"title":"Download the PAN PDF","sidebarTitle":"DigiLocker: PAN PDF","openapi":"openapi2.0.json POST /verify/digilocker/fetch_pan","href":"/api-reference/aadhaar/digilocker-fetch-pan"},{"title":"Download the UAN card PDF","sidebarTitle":"DigiLocker: UAN card PDF","openapi":"openapi2.0.json POST /verify/digilocker/fetch_uan","href":"/api-reference/aadhaar/digilocker-fetch-uan"},{"title":"Download an issued DigiLocker document","sidebarTitle":"DigiLocker: download by uri","openapi":"openapi2.0.json POST /verify/digilocker/get_issued_docs","href":"/api-reference/aadhaar/digilocker-get-issued-docs"},{"title":"List the holder's DigiLocker documents","sidebarTitle":"DigiLocker: issued documents","openapi":"openapi2.0.json POST /verify/digilocker/issued_docs","href":"/api-reference/aadhaar/digilocker-issued-docs"},{"title":"Get the DigiLocker profile (v1)","sidebarTitle":"DigiLocker profile (v1)","openapi":"openapi2.0.json POST /verify/digilocker","href":"/api-reference/aadhaar/digilocker-v1"},{"title":"Send an Aadhaar OKYC OTP (v1)","sidebarTitle":"OKYC: send OTP (v1)","openapi":"openapi2.0.json POST /verify/okyc_generate_otp","href":"/api-reference/aadhaar/okyc-generate-otp-v1"},{"title":"Get the Aadhaar OKYC result (v1)","sidebarTitle":"OKYC: get result (v1)","openapi":"openapi2.0.json POST /verify/okyc_get_result","href":"/api-reference/aadhaar/okyc-get-result-v1"},{"title":"Download the Class X marksheet XML","sidebarTitle":"DigiLocker: Class X XML","openapi":"openapi2.0.json POST /verify/digilocker/fetch_10thmarksheet/xml","href":"/api-reference/aadhaar/digilocker-fetch-10thmarksheet-xml"},{"title":"Download the Class XII marksheet XML","sidebarTitle":"DigiLocker: Class XII XML","openapi":"openapi2.0.json POST /verify/digilocker/fetch_12thmarksheet/xml","href":"/api-reference/aadhaar/digilocker-fetch-12thmarksheet-xml"},{"title":"Download the degree certificate XML","sidebarTitle":"DigiLocker: degree XML","openapi":"openapi2.0.json POST /verify/digilocker/fetch_degree/xml","href":"/api-reference/aadhaar/digilocker-fetch-degree-xml"},{"title":"Download the National Health ID card XML","sidebarTitle":"DigiLocker: Health ID XML","openapi":"openapi2.0.json POST /verify/digilocker/fetch_healthid/xml","href":"/api-reference/aadhaar/digilocker-fetch-healthid-xml"},{"title":"Download the National Health ID card PDF","sidebarTitle":"DigiLocker: Health ID PDF","openapi":"openapi2.0.json POST /verify/digilocker/fetch_healthid","href":"/api-reference/aadhaar/digilocker-fetch-healthid"},{"title":"Download the vehicle registration certificate (RC) XML","sidebarTitle":"DigiLocker: RC XML","openapi":"openapi2.0.json POST /verify/digilocker/fetch_rc/xml","href":"/api-reference/aadhaar/digilocker-fetch-rc-xml"},{"title":"Download the vehicle registration certificate (RC) PDF","sidebarTitle":"DigiLocker: RC PDF","openapi":"openapi2.0.json POST /verify/digilocker/fetch_rc","href":"/api-reference/aadhaar/digilocker-fetch-rc"},{"title":"Download the UAN card XML","sidebarTitle":"DigiLocker: UAN XML","openapi":"openapi2.0.json POST /verify/digilocker/fetch_uan/xml","href":"/api-reference/aadhaar/digilocker-fetch-uan-xml"},{"title":"Download an issued DigiLocker document as XML","sidebarTitle":"DigiLocker: XML by uri","openapi":"openapi2.0.json POST /verify/digilocker/get_issued_docs_xml","href":"/api-reference/aadhaar/digilocker-get-issued-docs-xml"},{"title":"List DigiLocker issuer organisations","sidebarTitle":"DigiLocker: issuers","openapi":"openapi2.0.json GET /verify/digilocker/org_master","href":"/api-reference/aadhaar/digilocker-org-master"},{"title":"Aadhaar FAQ","sidebarTitle":"FAQ","href":"/products/aadhaar/faq"}]},{"group":"Business","pages":[{"title":"Business verification","sidebarTitle":"Overview","href":"/products/business/overview"},{"title":"Verify a GSTIN","sidebarTitle":"GST basic","openapi":"openapi2.0.json POST /v2/verify/gst_verification_basic","href":"/api-reference/business/gst-verification-basic"},{"title":"GST advanced lookup","sidebarTitle":"GST advanced","openapi":"openapi2.0.json POST /verify/gst_advance","href":"/api-reference/business/gst-advance"},{"title":"Verify a company CIN","sidebarTitle":"CIN","openapi":"openapi2.0.json POST /v2/verify/cin_mca_verification","href":"/api-reference/business/cin-mca-verification"},{"title":"Employment history by UAN","sidebarTitle":"Employment history","openapi":"openapi2.0.json POST /v2/verify/employment_history","href":"/api-reference/business/employment-history"},{"title":"Read the business profile behind a PAN (v1)","sidebarTitle":"Business PAN (v1)","openapi":"openapi2.0.json POST /verify/business_pan","href":"/api-reference/business/business-pan"},{"title":"Verify a company by CIN (v1)","sidebarTitle":"CIN (v1)","openapi":"openapi2.0.json POST /verify/cin_mca_verification","href":"/api-reference/business/cin-mca-verification-v1"},{"title":"Fetch employment history by UAN (v1)","sidebarTitle":"Employment History (v1)","openapi":"openapi2.0.json POST /verify/employment_history","href":"/api-reference/business/employment-history-v1"},{"title":"Verify a GSTIN (v1)","sidebarTitle":"GST Basic (v1)","openapi":"openapi2.0.json POST /verify/gst_verification_basic","href":"/api-reference/business/gst-verification-basic-v1"},{"title":"Read a GST registration with filing history (v1)","sidebarTitle":"GST with Filing Status (v1)","openapi":"openapi2.0.json POST /verify/gst_verification","href":"/api-reference/business/gst-verification"},{"title":"Find the UANs linked to a mobile number (v1)","sidebarTitle":"Mobile to UAN (v1)","openapi":"openapi2.0.json POST /verify/mobile_to_uan","href":"/api-reference/business/mobile-to-uan"},{"title":"Find the CIN for a company PAN (v1)","sidebarTitle":"PAN to CIN (v1)","openapi":"openapi2.0.json POST /verify/pan_to_cin","href":"/api-reference/business/pan-to-cin"},{"title":"Find the CIN for a company name","sidebarTitle":"Company name to CIN (v1)","openapi":"openapi2.0.json POST /verify/company_name_to_cin","href":"/api-reference/business/company-name-to-cin"},{"title":"Find the DIN for a director's PAN (v1)","sidebarTitle":"PAN to DIN (v1)","openapi":"openapi2.0.json POST /verify/pan_to_din","href":"/api-reference/business/pan-to-din"},{"title":"List the GSTINs registered to a PAN (v1)","sidebarTitle":"PAN to GST (v1)","openapi":"openapi2.0.json POST /verify/pan_to_gst","href":"/api-reference/business/pan-to-gst"},{"title":"Find the UANs linked to a PAN (v1)","sidebarTitle":"PAN to UAN (v1)","openapi":"openapi2.0.json POST /verify/pan_to_uan","href":"/api-reference/business/pan-to-uan"},{"title":"Fetch an employee's PF passbook (v1)","sidebarTitle":"PF Passbook (v1)","openapi":"openapi2.0.json POST /verify/pf_employee_passbook","href":"/api-reference/business/pf-employee-passbook"},{"title":"Verify a shop and establishment registration (v1)","sidebarTitle":"Shop and Establishment (v1)","openapi":"openapi2.0.json POST /verify/shop_establishment_verification","href":"/api-reference/business/shop-establishment-verification"},{"title":"Verify a UAN and read the latest employer (v1)","sidebarTitle":"UAN Verification (v1)","openapi":"openapi2.0.json POST /verify/uan_verification","href":"/api-reference/business/uan-verification"},{"title":"Verify an Udyam registration (v1)","sidebarTitle":"Udyam (v1)","openapi":"openapi2.0.json POST /verify/verify_udyam","href":"/api-reference/business/verify-udyam"},{"title":"Get company master data by CIN or company id (v1)","sidebarTitle":"Company master data (v1)","openapi":"openapi2.0.json POST /verify/coi_advance","href":"/api-reference/business/coi-advance"},{"title":"Find the PAN for a director's DIN (v1)","sidebarTitle":"DIN to PAN (v1)","openapi":"openapi2.0.json POST /verify/din_to_pan","href":"/api-reference/business/din-to-pan"},{"title":"Verify an FSSAI food licence (v1)","sidebarTitle":"FSSAI licence (v1)","openapi":"openapi2.0.json POST /verify/fssai_verification","href":"/api-reference/business/fssai-verification"},{"title":"Get merchant category codes for a GSTIN (v1)","sidebarTitle":"GST to MCC (v1)","openapi":"openapi2.0.json POST /verify/gst_to_mcc","href":"/api-reference/business/gst-to-mcc"},{"title":"Find GST registrations for a mobile number (v1)","sidebarTitle":"Mobile to GST (v1)","openapi":"openapi2.0.json POST /verify/mobile_to_gst","href":"/api-reference/business/mobile-to-gst"},{"title":"Find the Udyam registration for a PAN (v1)","sidebarTitle":"PAN to Udyam (v1)","openapi":"openapi2.0.json POST /verify/pan_to_udyam","href":"/api-reference/business/pan-to-udyam"},{"title":"Fetch a UAN passbook without OTP (v1)","sidebarTitle":"UAN Passbook without OTP (v1)","openapi":"openapi2.0.json POST /verify/uan_passbook/without_otp","href":"/api-reference/business/uan-passbook-without-otp"},{"title":"Get async result","sidebarTitle":"Get Async Result (v1)","openapi":"openapi2.0.json GET /verify/result/{reference_id}","href":"/api-reference/business/verify-result"},{"title":"Business verification FAQ","sidebarTitle":"FAQ","href":"/products/business/faq"}]},{"group":"Credit and Legal","pages":[{"title":"Credit and legal checks","sidebarTitle":"Overview","href":"/products/credit-legal/overview"},{"title":"Fetch a credit report","sidebarTitle":"Credit report","openapi":"openapi2.0.json POST /verify/credit_report","href":"/api-reference/credit-legal/credit-report"},{"title":"Court record check","sidebarTitle":"Court check","openapi":"openapi2.0.json POST /verify/court_check","href":"/api-reference/credit-legal/court-check"},{"title":"Credit and legal FAQ","sidebarTitle":"FAQ","href":"/products/credit-legal/faq"}]},{"group":"Bank","pages":[{"title":"Bank overview","href":"/products/bank/overview"},{"title":"Verify a bank account (penny drop)","sidebarTitle":"Bank verification","openapi":"openapi2.0.json POST /v2/verify/bank_verification","href":"/api-reference/bank/bank-verification"},{"title":"Verify a bank account without a penny drop","sidebarTitle":"Pennyless bank verification","openapi":"openapi2.0.json POST /verify/bank_verification/pennyless","href":"/api-reference/bank/bank-verification-pennyless"},{"title":"Verify a UPI ID","sidebarTitle":"UPI ID verification","openapi":"openapi2.0.json POST /v2/verify/vpa_verification","href":"/api-reference/bank/vpa-verification"},{"title":"Verify a bank account (v1)","sidebarTitle":"Bank Verification (v1)","openapi":"openapi2.0.json POST /verify/bank_verification","href":"/api-reference/bank/bank-verification-v1"},{"title":"Look up an IFSC","sidebarTitle":"IFSC Lookup (v1)","openapi":"openapi2.0.json POST /verify/ifsc_verification","href":"/api-reference/bank/ifsc-verification"},{"title":"Verify a UPI ID (v1)","sidebarTitle":"UPI ID Verification (v1)","openapi":"openapi2.0.json POST /verify/vpa_verification","href":"/api-reference/bank/vpa-verification-v1"},{"title":"Start a bank statement upload session (v1)","sidebarTitle":"Bank Statement: Start (v1)","openapi":"openapi2.0.json POST /verify/bank_statement_pdf/start_upload","href":"/api-reference/bank/bank-statement-start-upload"},{"title":"Upload a bank statement PDF (v1)","sidebarTitle":"Bank Statement: Upload (v1)","openapi":"openapi2.0.json POST /verify/bank_statement_pdf/upload","href":"/api-reference/bank/bank-statement-upload"},{"title":"Finish uploading bank statements (v1)","sidebarTitle":"Bank Statement: Complete (v1)","openapi":"openapi2.0.json POST /verify/bank_statement_pdf/complete","href":"/api-reference/bank/bank-statement-complete"},{"title":"Check bank statement processing status (v1)","sidebarTitle":"Bank Statement: Status (v1)","openapi":"openapi2.0.json POST /verify/bank_statement_pdf/status","href":"/api-reference/bank/bank-statement-status"},{"title":"Download the bank statement report (v1)","sidebarTitle":"Bank Statement: Report (v1)","openapi":"openapi2.0.json POST /verify/bank_statement_pdf/report","href":"/api-reference/bank/bank-statement-report"},{"title":"Cancel a bank statement session (v1)","sidebarTitle":"Bank Statement: Cancel (v1)","openapi":"openapi2.0.json POST /verify/bank_statement_pdf/cancel","href":"/api-reference/bank/bank-statement-cancel"},{"title":"List bank statement institutions (v1)","sidebarTitle":"Bank Statement: Institutions (v1)","openapi":"openapi2.0.json GET /verify/bank_statement_pdf/institutions","href":"/api-reference/bank/bank-statement-institutions"},{"title":"Verify a UPI ID with account details (v1)","sidebarTitle":"UPI ID Verification Advanced (v1)","openapi":"openapi2.0.json POST /verify/vpa_verification_advanced","href":"/api-reference/bank/vpa-verification-advanced"},{"title":"Bank FAQ","href":"/products/bank/faq"}]},{"group":"Mobile","pages":[{"title":"Mobile overview","href":"/products/mobile/overview"},{"title":"Fetch a mobile subscriber profile","sidebarTitle":"Mobile profile","openapi":"openapi2.0.json POST /verify/mobile_profile","href":"/api-reference/mobile/mobile-profile"},{"title":"Send a mobile OTP","sidebarTitle":"Mobile OTP: send (v1)","openapi":"openapi2.0.json POST /verify/mobile/get_otp","href":"/api-reference/mobile/mobile-get-otp"},{"title":"Find addresses for a mobile number","sidebarTitle":"Address intelligence (v1)","openapi":"openapi2.0.json POST /verify/mobile_profile/address_intelligence","href":"/api-reference/mobile/mobile-profile-address-intelligence"},{"title":"Fetch an extended mobile profile","sidebarTitle":"Mobile profile advance (v1)","openapi":"openapi2.0.json POST /verify/mobile_profile_advance","href":"/api-reference/mobile/mobile-profile-advance"},{"title":"Check mobile number reachability","sidebarTitle":"Mobile reachability (v1)","openapi":"openapi2.0.json POST /verify/mobile_reachability","href":"/api-reference/mobile/mobile-reachability"},{"title":"Find the PAN for a mobile number","sidebarTitle":"Mobile to PAN","openapi":"openapi2.0.json POST /v2/verify/mobile_to_pan","href":"/api-reference/mobile/mobile-to-pan"},{"title":"Find the PAN for a mobile number (v1)","sidebarTitle":"Mobile to PAN (v1)","openapi":"openapi2.0.json POST /verify/mobile_to_pan","href":"/api-reference/mobile/mobile-to-pan-v1"},{"title":"Find the UPI IDs linked to a mobile number","sidebarTitle":"Mobile to multiple UPI (v1)","openapi":"openapi2.0.json POST /verify/mobile_to_multiple_upi","href":"/api-reference/mobile/mobile-to-multiple-upi"},{"title":"Find UPI IDs for a mobile number","sidebarTitle":"Mobile to UPI ID (v1)","openapi":"openapi2.0.json POST /verify/mobile_to_vpa","href":"/api-reference/mobile/mobile-to-vpa"},{"title":"Verify a mobile OTP","sidebarTitle":"Mobile OTP: verify (v1)","openapi":"openapi2.0.json POST /verify/mobile/verify_otp","href":"/api-reference/mobile/mobile-verify-otp"},{"title":"Mobile FAQ","href":"/products/mobile/faq"}]},{"group":"Driving Licence and Vehicle","pages":[{"title":"Driving licence and vehicle","href":"/products/driving-vehicle/overview"},{"title":"Verify a driving licence","sidebarTitle":"Driving licence","openapi":"openapi2.0.json POST /v2/verify/driving_licence","href":"/api-reference/driving-vehicle/driving-licence"},{"title":"Read a driving licence image (OCR)","sidebarTitle":"Driving licence OCR","openapi":"openapi2.0.json POST /v2/verify/dl_ocr","href":"/api-reference/driving-vehicle/dl-ocr"},{"title":"Verify a vehicle registration (RC)","sidebarTitle":"Vehicle RC","openapi":"openapi2.0.json POST /v2/verify/vehicle_rc","href":"/api-reference/driving-vehicle/vehicle-rc"},{"title":"Verify a vehicle registration (RC) (v1)","sidebarTitle":"Vehicle RC (v1)","openapi":"openapi2.0.json POST /verify/vehicle_rc","href":"/api-reference/driving-vehicle/vehicle-rc-v1"},{"title":"Verify a driving licence (v1)","sidebarTitle":"Driving Licence (v1)","openapi":"openapi2.0.json POST /verify/driving_licence","href":"/api-reference/driving-vehicle/driving-licence-v1"},{"title":"Look up a vehicle's FASTag","sidebarTitle":"FASTag verification (v1)","openapi":"openapi2.0.json POST /verify/fast_tag_verification","href":"/api-reference/driving-vehicle/fast-tag-verification"},{"title":"Get FASTag toll history","sidebarTitle":"FASTag toll history (v1)","openapi":"openapi2.0.json POST /verify/fastag_toll_history","href":"/api-reference/driving-vehicle/fastag-toll-history"},{"title":"List traffic challans for a vehicle","sidebarTitle":"Vehicle challan (v1)","openapi":"openapi2.0.json POST /verify/vehicle_challan","href":"/api-reference/driving-vehicle/vehicle-challan"},{"title":"Verify a vehicle registration (RC plus)","sidebarTitle":"Vehicle RC plus (v1)","openapi":"openapi2.0.json POST /verify/vehicle_rc_plus","href":"/api-reference/driving-vehicle/vehicle-rc-plus"},{"title":"Driving licence and vehicle FAQ","href":"/products/driving-vehicle/faq"}]},{"group":"Face and Liveness","pages":[{"title":"Face and liveness","href":"/products/face/overview"},{"title":"Match two faces","sidebarTitle":"Face match","openapi":"openapi2.0.json POST /v2/verify/face_match","href":"/api-reference/face/face-match"},{"title":"Check liveness of a face image","sidebarTitle":"Liveness","openapi":"openapi2.0.json POST /v2/verify/liveness","href":"/api-reference/face/liveness"},{"title":"Compare two faces (v1)","sidebarTitle":"Face Match (v1)","openapi":"openapi2.0.json POST /verify/face_match","href":"/api-reference/face/face-match-v1"},{"title":"Check a selfie for liveness (v1)","sidebarTitle":"Liveness (v1)","openapi":"openapi2.0.json POST /verify/liveness","href":"/api-reference/face/liveness-v1"},{"title":"Face and liveness FAQ","href":"/products/face/faq"}]},{"group":"Documents","pages":[{"title":"Documents","href":"/products/documents/overview"},{"title":"Read an invoice or utility bill (OCR)","sidebarTitle":"Invoice OCR","openapi":"openapi2.0.json POST /v2/verify/invoice_ocr","href":"/api-reference/documents/invoice-ocr"},{"title":"Read a tax invoice or utility bill (v1)","sidebarTitle":"Invoice OCR (v1)","openapi":"openapi2.0.json POST /verify/invoice_ocr","href":"/api-reference/documents/invoice-ocr-v1"},{"title":"Read an identity document image (v1)","sidebarTitle":"Document OCR (v1)","openapi":"openapi2.0.json POST /verify/ocr","href":"/api-reference/documents/ocr"},{"title":"Verify a passport file number","sidebarTitle":"Passport (v1)","openapi":"openapi2.0.json POST /verify/passport","href":"/api-reference/documents/passport"},{"title":"Verify a voter ID","sidebarTitle":"Voter ID (v1)","openapi":"openapi2.0.json POST /verify/voter_verification","href":"/api-reference/documents/voter-verification"},{"title":"Documents FAQ","href":"/products/documents/faq"}]},{"group":"eSign","pages":[{"title":"eSign overview","sidebarTitle":"Overview","href":"/products/esign/overview"},{"title":"Create an eSign request","sidebarTitle":"Create eSign request","openapi":"openapi2.0.json POST /verify/esign","href":"/api-reference/esign/esign"},{"title":"Download the signed document","sidebarTitle":"Download signed document","openapi":"openapi2.0.json POST /verify/esign/document","href":"/api-reference/esign/esign-document"},{"title":"eSign FAQ","sidebarTitle":"FAQ","href":"/products/esign/faq"}]},{"group":"Integration","pages":[{"title":"Integration overview","sidebarTitle":"Overview","href":"/products/integration/overview"},{"title":"Mint an SDK token","sidebarTitle":"Mint SDK token","openapi":"openapi2.0.json POST /auth/sdk/token","href":"/api-reference/integration/sdk-token"},{"title":"Get session state","sidebarTitle":"Get session state","openapi":"openapi2.0.json GET /sdk/v2/session/{session_token}/state","href":"/api-reference/integration/session-state"},{"title":"Create a verification link","sidebarTitle":"Create link","openapi":"openapi2.0.json POST /merchant/verification-links","href":"/api-reference/integration/verification-links-create"},{"title":"List verification links","sidebarTitle":"List links","openapi":"openapi2.0.json GET /merchant/verification-links","href":"/api-reference/integration/verification-links-list"},{"title":"Revoke a verification link","sidebarTitle":"Revoke link","openapi":"openapi2.0.json DELETE /merchant/verification-links/{link_id}","href":"/api-reference/integration/verification-links-revoke"},{"title":"Compare two names","sidebarTitle":"Name match (v1)","openapi":"openapi2.0.json POST /verify/name_match","href":"/api-reference/integration/name-match"},{"title":"Integration FAQ","sidebarTitle":"FAQ","href":"/products/integration/faq"}]},{"group":"Webhooks","pages":[{"title":"Session completed webhook","sidebarTitle":"session.completed","openapi":"openapi2.0.json webhook session.completed","href":"/api-reference/webhooks/session-completed"},{"title":"eSign completed webhook","sidebarTitle":"esign.completed","openapi":"openapi2.0.json webhook esign.completed","href":"/api-reference/webhooks/esign-completed"}]},{"group":"Reference","pages":[{"title":"Error codes","sidebarTitle":"Error codes","href":"/reference/v2-error-codes"},{"title":"Input formats","sidebarTitle":"Input formats","href":"/reference/input-formats"}]}]},{"tab":"Recipes","pages":[{"title":"Recipes","href":"/recipes/sdk-token-node-express"}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks/web"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"DigiLocker profile - idto.ai","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CaRkHcld.js","snippetPresets-CbOVSLWB.js","utils-cjri0g4r.js","style-to-object-BY3JEAdk.js","utils-DINdUa17.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-B6z-PJGf.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BldndzCM.js","_Uint8Array-BFUkDgJK.js","isObject-FP1Yky1u.js","Page-DuvGhd6e.js","api-description-markdown-ja0XM5Ae.js","DynamicMarkdown-DgKZ4_wp.js","CodeSnippet-BtGQRZnK.js","use-playground-group-access-98JyaSW7.js","SectionHeading-S4Jc_qPe.js","ApiExamples-gah5G0c1.js","usePlaygroundInputsStore-DMbftGRK.js","shallow-BPuQ-dV8.js","isEqual-Du6c450V.js","CodeSnippets-BSVM0Ibi.js","MethodPill-HIsDH_bI.js","getPastedJson-BKEmMYEO.js","Check2Icon-CRFAnWm9.js","axios-CsQoIw0U.js","Markdown-CexXCNoj.js","AssistantPageLink-C2AZnMAs.js","dist-CjxLTLs9.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}