Verifications

Generate Verification Document URL

Changed on

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.

post/verifications/{id}/generate_document_url

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string required

Verification profile ID, prefixed idpf_.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Idempotency-Key, string
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Request body

object required
document, 'front' | 'back' | 'selfie' required

Image to download: the front or back of the identity document, or the selfie. A passport has no back.

Example request

{
  "document": "front"
}

Response

link generated

object required
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.

Example response

{
  "document": "front",
  "expires_at": "2026-06-01T12:01:00.000Z",
  "url": "https://content.whop.com/document"
}

Changes

    • breaking

      removed the enum value drivers_back of the request property document

    • breaking

      removed the enum value drivers_front of the request property document

    • breaking

      removed the enum value id_card_back of the request property document

    15 more changes in this revision