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_idstringNoUse only when operating on Identity-owned resources. A PAT can explicitly supply this query parameter; omitting it uses administrator scope. SAT ownership is determined by the credential. Explicitly supplying this parameter with any SAT (including an empty value) returns HTTP 400. See Identity ownership.

Example request

curl -X GET "https://api.qoder.com.cn/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_errorQuery parameters are invalid; this includes explicitly supplying the query parameter identity_id with any SAT, even with an empty value.
401authentication_errorThe authentication token is missing or invalid.
403permission_errorAn Owner mismatch occurs in 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 authorized scope.
500/502/503api_errorForward or a dependent service failed.
Best Practices
API reference