Skip to main content
GET
Download Document

Download a Document

Retrieve a presigned S3 URL to download your document. The URL is temporary and secure, expiring after the specified duration.

Path Parameters

string
required
The unique identifier of the document to download (UUID)

Query Parameters

integer
Number of seconds until the download URL expires (1-86400). Default is 3600 (1 hour).

Response

string
required
UUID of the document
string
required
Presigned S3 URL for downloading the document
integer
required
Number of seconds until the URL expires
string
required
Original filename of the document

Code Examples

Example Response

Complete Workflow Example

Here’s a complete example showing upload, edit, and download:

Presigned URL Security

The presigned URL allows anyone with the link to download the document. Keep URLs private and don’t share them publicly.

URL Expiration

  • Presigned URLs expire after the specified duration (default 1 hour)
  • You can generate a new URL at any time by calling the endpoint again
  • Expired URLs will return a 403 Forbidden error

Best Practices

Use shorter expiration times (e.g., 300 seconds) for sensitive documents
Generate a new URL for each download to maintain security
Download files programmatically instead of exposing URLs to end users

Error Responses

Documents are automatically deleted after their TTL expires. Make sure to download important documents before they expire.