Skip to main content

Generate a temporary download link for a document

GET 
/documents/:id/download_link

Generates a temporary pre-signed URL that can be used to download the document directly from the storage backend without authentication.

Request

Path Parameters

    id uuidrequired

    Uniquely identifies the document

Responses

200: Successfully generated download link

404: Resource not found

422: Unprocessable entity. Check the 'detail' field in response for details.

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/documents/:id/download_link' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": {
"url": "https://s3.amazonaws.com/bucket/path/to/document?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=..."
}
}