Skip to main content
Files

Download File

Returns a temporary download URL for File content.

Path

GET /api/v1/forward/files/{file_id}/content

Request headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT or SAT>

Path parameters

ParameterTypeRequiredDescription
file_idstringYesFile ID to download.

Query parameters

ParameterTypeRequiredDescription
identity_idstringNoFor Identity-owned resources only. PATs may supply this query parameter; omitting it uses the administrator scope. SAT ownership is determined by the credential; any SAT (including Admin SAT) explicitly supplying this parameter, even with an empty value, receives HTTP 400. See Identity ownership.

Example request

curl -X GET "https://api.qoder.com/api/v1/forward/files/file_xxx/content" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

Example response

{
  "url": "https://example.com/signed-url",
  "expires_at": "2026-07-23T12:00:00Z"
}

Empty-list response

Not applicable; this endpoint does not return a list.

Response fields

FieldTypeDescription
urlstringTemporary download URL.
expires_atstringDownload URL expiration time.

Errors

HTTPTypeTrigger
400invalid_request_errorThe query parameters are invalid, including any SAT explicitly supplying query identity_id (even with an empty value).
401authentication_errorThe authentication token is missing or invalid.
403permission_errorAn owner mismatch occurs in the administrator scope, or a downstream service denies access.
404not_found_errorThe File does not exist or is not visible in the current Identity scope; the Identity specified by the PAT is invalid, disabled, deleted, or outside the caller's ownership.
500/502/503api_errorForward or a dependent service failed.
Best Practices
API reference