Skip to main content

Endpoint

Authentication

This endpoint requires authentication via API key. Include your API key in the X-API-Key header:

Path Parameters

Query Parameters

Request Example

Response

Success Response

Status Code: 200 OK

Response Fields

Error Responses

400 Bad Request

Returned when the file ID format is invalid.

401 Unauthorized

Returned when authentication fails. See the authentication errors section for details.

404 Not Found

Returned when the file doesn’t exist or you don’t have access to it.

500 Internal Server Error

Returned when the request fails due to a server error.

Notes

File IDs follow a specific format: document_{id} for documents and attachment_{id} for attachments. Use the complete file ID as returned from other endpoints.
The presigned download URL expires after a certain time (indicated by expires_at). Download the file before the URL expires or request a new URL.
Provide the user_email parameter for audit tracking. This helps maintain a record of who downloaded which files and when.

Common MIME Types

Use Cases

This endpoint is useful for:
  • File retrieval - Download files uploaded to or generated by workflows
  • Document export - Export documents to external systems
  • Archival - Save files to long-term storage
  • User downloads - Allow end users to download files through custom interfaces
  • Integration - Connect file storage with other business systems