Skip to main content
GET /v1/files/{file_id}/content Returns a File content link. The returned URL is time-limited and can be used to download the file content directly. Files can be downloaded only when status is ready.

Path parameters

ParameterTypeRequiredDescription
file_idstringYesFile ID with the file_ prefix

Headers

HeaderRequiredDescription
AuthorizationYesBearer $QODER_PAT

Example request

curl -X GET "https://api.qoder.com/api/v1/cloud/files/file_019e3bb9b0c2752688aeb5fdacf00565/content" \
  -H "Authorization: Bearer $QODER_PAT"

Example response

HTTP 200 OK
{
  "expires_at": "2026-05-18T16:34:52Z",
  "url": "https://storage.qoder.com/files/..."
}

Response fields

FieldTypeDescription
urlstringPresigned download URL
expires_atstringUTC expiration time for the URL in RFC 3339 format

Notes

  • Request a new URL after expires_at.
  • Clients should parse the JSON response, read the url field, and send a GET request to that URL.

Errors

HTTPTypeTrigger
401authentication_errorMissing or invalid authentication token
403permission_errorFile purpose does not allow downloads
404not_found_errorFile with the given ID does not exist
409conflict_errorFile exists but is not in ready status
410not_found_errorFile is in deleted status
See Errors for the full error envelope.

Attach and download files

Upload files to give your agent context, and download files it produces.