---
title: "Generate Verification Document URL"
method: POST
path: "/verifications/{id}/generate_document_url"
tags: ["Verifications"]
---

# Generate Verification Document URL

`POST /verifications/{id}/generate_document_url`

## Request

- Base URL: `https://api.whop.com/api/v1`
- URL: `https://api.whop.com/api/v1/verifications/{id}/generate_document_url`
- Auth: HTTP bearer

Generates a short-lived link to download one image that a person sent for an individual verification. Ask for `front`, `back`, or `selfie`. The link always downloads the document that passed the check, whatever its type.

## Path parameters

- `id` string, required

## Headers

- `Api-Version-Date` string
- `Idempotency-Key` string

## Request body

- object
  - `document` 'front' | 'back' | 'selfie', required: Image to download: the `front` or `back` of the identity document, or the `selfie`. A passport has no `back`.

## Response `200`

link generated

- object
  - `document` 'front' | 'back' | 'selfie', required: Image that the link downloads.
  - `expires_at` string, required: When the link stops working, as an ISO 8601 timestamp. Generate a new link after that.
  - `url` string, required: A short-lived link to download the image. Anyone holding the link can download the image until it expires.

## Other responses

- `400`: Invalid Parameters
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Resource not found
- `409`: Conflict

## Changes

- **2026-11-23** `08fe0ec6ae18`: 7 breaking, 2 warning, 9 info
  - removed the enum value `drivers_back` of the request property `document`
  - removed the enum value `drivers_front` of the request property `document`
  - removed the enum value `id_card_back` of the request property `document`
  - removed the enum value `id_card_front` of the request property `document`
  - …14 more
- **2026-11-23** `381668bc8a5a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/whop/apis/whop-api/changes/verifications/:id/generate_document_url/post.md)

---

[API](https://skmtc.dev/whop/apis/whop-api.md) - [All operations](https://skmtc.dev/whop/apis/whop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whop/apis/whop-api/revisions/b10d1ab093e8?raw)
