Sample - OpenAI API
GET/containers/{container_id}/files/{file_id}/content

Retrieve container file content

Retrieves the raw content of a file stored in a container. Use container_id and file_id to select the file whose contents you want to download. The successful response contains the file content rather than file metadata.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
container_idstringrequired
The unique identifier of the container that contains the file.
file_idstringrequired
The unique identifier of the container file whose content to retrieve.

2 status codes
200Returns the raw content of the specified container file.
429Returned when the request was rejected because a rate limit was exceeded.
errorobjectrequired

Error handling

A 429 is returned when the request rate exceeds the allowed limit. Both container_id and file_id must identify the container file whose content you want to retrieve.