GET/containers/{container_id}/files

List files in a container

Lists files associated with a container. Use after to continue from a file ID returned in a previous page, and limit and order to control the result page. The container must exist and must not have expired.

4 parameters
container_idstringrequired
The unique identifier of the container whose files to list.
limitintegeroptional
Maximum number of files to return, from 1 to 100. Defaults to 20 when omitted.
Default:20
orderstringoptional
Sort order by creation time: `asc` or `desc`. Defaults to `desc` when omitted.
Allowed:ascdescDefault:desc
afterstringoptional
File ID cursor that marks where to continue listing from the previous page.

3 status codes
200Returns a list of container files with the first and last file IDs and a `has_more` value indicating whether more results are available.
objectstringrequired
The type of object returned, must be 'list'.
Allowed:list
dataarray<TheContainerFileObject>required
A list of container files.
first_idstringrequired
The ID of the first file in the list.
last_idstringrequired
The ID of the last file in the list.
has_morebooleanrequired
Whether there are more files available.
404Returned when the container is not found or has expired, or when the file specified by `after` is not found.
errorobjectrequired
429Returned when the request exceeds a rate limit.
errorobjectrequired

Error handling

A 404 is returned when the container is missing or expired, or when the file identified by the after cursor is not found. A 429 is returned when the request exceeds a rate limit. limit must be between 1 and 100, and order must be asc or desc.