DigiLocker

DigiLocker Authorization Callback

Completes a DigiLocker authorization flow using the authorization code and PKCE code verifier.

post/verify/digilocker

Request

  • Base URL
    https://prod.idto.ai
  • URL
    https://prod.idto.ai/verify/digilocker
  • Auth
    API key in header X-API-KEY and API key in header X-Client-ID

Request body

codestring required

Authorization code received from DigiLocker

code_verifierstring required

PKCE code verifier used for the DigiLocker authorization flow

Example request

{
  "code": "AUTH_CODE",
  "code_verifier": "CODE_VERIFIER"
}

Response

DigiLocker authorization result

statusstring

Result status, usually success or failed

messagestring

Human-readable result message

resultobject
dataobject
error_codestring nullable

Provider or IDTO error code

tranx_idstring nullable

Transaction identifier

timestampstring date-time nullable

Response timestamp

chargeblestring

Billing flag returned by existing APIs

user_consentstring

Consent flag returned by existing APIs

Example response

{
  "status": "success",
  "message": "Verification completed successfully",
  "error_code": "IDTO_400",
  "chargeble": "true",
  "user_consent": "true"
}

Changes

No recorded changes to this operation across all 1 revision of this API.