GET/files/{file_id}/content

Retrieve file content

Retrieves the contents of a specific uploaded file. Use file_id to identify the file, and note that some file purposes or account permissions do not allow downloads.

1 parameter
file_idstringrequired
The unique identifier of the file whose content to retrieve.

5 status codes
200Returns the file contents as binary data.
400Returned when the file cannot be downloaded for its purpose or the account does not have permission to download it.
errorobjectrequired
404Returned when the file is not found.
errorobjectrequired
429Returned when too many file requests are made; reduce the request rate and try again later.
errorobjectrequired
500Returned when a server error prevents the file from being downloaded.
errorobjectrequired

Error handling

A 400 is returned when the file cannot be downloaded for its purpose or the account does not have permission to download it. A 404 is returned when the file identified by the file_id path parameter is not found. A 429 is returned when too many file requests are made; a 500 indicates a server error prevented the download.