Skip to main content
GET
/
v3
/
files
/
{id}
/
content
Get a file download URL
curl --request GET \
  --url https://api.opper.ai/v3/files/{id}/content \
  --header 'Authorization: Bearer <token>'
{
  "bytes": 123,
  "mime_type": "<string>",
  "url": "<string>"
}
Returns a short-TTL presigned download URL for the file’s bytes. See the Files guide.

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token.

Path Parameters

id
string
required

File ID (file_…)

Response

Successful response

bytes
integer
mime_type
string
url
string

Presigned download URL (valid ~1 hour)