---
title: "Fetch PAN PDF / image from DigiLocker"
method: POST
path: "/verify/digilocker/fetch_pan"
tags: ["DigiLocker"]
---

# Fetch PAN PDF / image from DigiLocker

`POST /verify/digilocker/fetch_pan`

Fetches the user's PAN document (PDF or image) from DigiLocker using a short-lived reference_key. Returns the file as binary (PDF or image).

## Request body

- DigilockerFetchPanRequest
  - `reference_key` string, required — Short-lived reference key obtained from /digilocker/get_reference.

## Response `200`

PAN document (PDF or image) returned as binary stream.

## Other responses

- `400` — Invalid request (e.g. missing or invalid reference_key).
- `401` — Unauthorized - invalid API key or client id.

---

[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)
