DocsAPIFiles

Get file download link

Returns a URL to download the file. For stored files this is a temporary, signed URL that expires after 300 seconds. For link-type files the stored URL is returned as-is and does not expire (expires_in and expires_at are null).

GET
/files/{id}/download-link
Path

File ID

Example: 550e8400-e29b-41d4-a716-446655440000

Path Parameters

idRequiredstring

File ID

Credentials

Bearer
curl -X GET "https://api.fundra.com/v1/files/550e8400-e29b-41d4-a716-446655440000/download-link" \
  -H "Authorization: Bearer <token>"

Download link

{
  "url": "https://storage.example.com/files/abc?token=...",
  "expires_in": 300,
  "expires_at": "2024-01-15T10:36:00Z"
}