---
title: "DigiLocker Authorization Callback"
method: POST
path: "/verify/digilocker"
tags: ["DigiLocker"]
---

# DigiLocker Authorization Callback

`POST /verify/digilocker`

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

## Request body

- DigilockerRequest
  - `code` string, required — Authorization code received from DigiLocker
  - `code_verifier` string, required — PKCE code verifier used for the DigiLocker authorization flow

## Response `200`

DigiLocker authorization result

- GenericVerificationResponse — Standard pass-through verification response returned by the configured provider.
  - `status` string — Result status, usually success or failed
  - `message` string — Human-readable result message
  - `result` object
  - `data` object
  - `error_code` string, nullable — Provider or IDTO error code
  - `tranx_id` string, nullable — Transaction identifier
  - `timestamp` string, date-time, nullable — Response timestamp
  - `chargeble` string — Billing flag returned by existing APIs
  - `user_consent` string — Consent flag returned by existing APIs

## Other responses

- `400` — Invalid request or business validation failed
- `401` — Unauthorized - Invalid or missing API key or client ID
- `422` — Request body validation failed
- `500` — Internal server error

---

[API](https://skmtc.dev/idto/apis/verification-api.md) · [All operations](https://skmtc.dev/idto/apis/verification-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/idto/verification-api/revisions/e3d57dab8db4/schema)
