Skip to main content
GET
Retrieve file
This page documents the Legacy API. For new integrations, use Retrieve File in the Current API.

Autorizaciones

Authorization
string
header
requerido

An Account API key, account-scoped JWT, App API key, or user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************.

Parámetros de ruta

id
string
requerido

The unique identifier of the file to retrieve.

Ejemplo:

"file_xxxxxxxxxxxxx"

Respuesta

A successful response

A file that has been uploaded or is pending upload.

content_type
string | null
requerido

The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).

Ejemplo:

"image/jpeg"

filename
string | null
requerido

The original filename of the uploaded file, including its file extension.

Ejemplo:

"document.pdf"

id
string
requerido

The unique identifier for the file.

Ejemplo:

"file_xxxxxxxxxxxxx"

size
string | null
requerido

The file size in bytes. Null if the file has not finished uploading.

Ejemplo:

"123.45"

upload_status
enum<string>
requerido

The current upload status of the file (e.g., pending, ready).

Opciones disponibles:
pending,
processing,
ready,
failed
url
string | null
requerido

The URL for accessing the file. For public files, this is a permanent CDN URL. For private files, this is a signed URL that expires. Null if the file has not finished uploading.

visibility
enum<string>
requerido

Whether the file is publicly accessible or requires authentication.

Opciones disponibles:
public,
private