Swagger Petstore - OpenAPI 3.0
GET/containers/{container_id}/files

List files in a container

Lists all files within a container with optional pagination and sorting. Results are sorted by creation timestamp and can be ordered ascending or descending. Use limit, order, and after to control the results returned.

4 parameters
container_idstringrequired
The unique identifier of the container whose files to list.
limitintegeroptional
Maximum number of files to return per page. Must be between 1 and 100. Defaults to 20 when omitted.
Default:20
orderstringoptional
Sort order by creation timestamp: `asc` for ascending or `desc` for descending. Defaults to `desc` when omitted.
Allowed:ascdescDefault:desc
afterstringoptional
Pagination cursor. Pass a file ID to fetch files created after that point in the list.

2 status codes
200Returns a paginated list of container file objects with metadata including the first and last file identifiers and a flag indicating whether more files 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.
429Returned when the request exceeds the rate limit.
errorobjectrequired

Error handling

A 429 is returned when the request exceeds the rate limit. container_id must identify an existing container. limit must be between 1 and 100, defaulting to 20 when omitted. order must be either asc or desc, defaulting to desc. after is a cursor for pagination — pass a file ID to fetch the next page.