---
title: "Download File"
method: POST
path: "/v1/kyc/digilocker/file"
tags: ["Digilocker"]
---

# Download File

`POST /v1/kyc/digilocker/file`

This API will download a file from Digilocker from issued documents based on the URN passed in the parameter.

## Request body

- DigiLockerDownloadFile
  - `consent` string, required
  - `purpose` string, required
  - `initial_deepvue_transaction_id` string, required
  - `uri` string, required

## Response `200`

Successful Response

- DIGILOCKERDOWNLOADFILE
  - `code` integer
  - `timestamp` integer, required
  - `transaction_id` string, required
  - `sub_code` string
  - `message` string
  - `data` string

## Other responses

- `301` — Moved Permanently
- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.dev/deepvue/apis/deepvue-tech-developers-guide.md) · [All operations](https://skmtc.dev/deepvue/apis/deepvue-tech-developers-guide/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/deepvue/deepvue-tech-developers-guide/revisions/c1b0558e7d77/schema)
