Get DigiLocker reference key

Exchanges an authorization code and code_verifier for a short-lived reference_key used in subsequent DigiLocker operations. Requires X-API-KEY and X-Client-ID headers.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Authorization code received from DigiLocker after user consent.

string
required

PKCE code_verifier used during the OAuth flow.

Responses

400

Invalid input or expired/invalid code

401

Unauthorized - missing/invalid API key or client id

500

Internal server error

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json