---
title: "List container files"
method: GET
path: "/containers/{container_id}/files"
---

# List container files

`GET /containers/{container_id}/files`

List Container files

## Path parameters

- `container_id` string, required

## Query parameters

- `limit` integer
- `order` 'asc' | 'desc'
- `after` string

## Response `200`

Success

- ContainerFileListResource
  - `object` 'list', required — The type of object returned, must be 'list'.
  - `data` ContainerFileResource[], required — A list of container files.
    - `id` string, required — Unique identifier for the file.
    - `object` 'container.file', required — The type of this object (`container.file`).
    - `container_id` string, required — The container this file belongs to.
    - `created_at` integer, required — Unix timestamp (in seconds) when the file was created.
    - `bytes` integer, required — Size of the file in bytes.
    - `path` string, required — Path of the file in the container.
    - `source` string, required — Source of the file (e.g., `user`, `assistant`).
  - `first_id` string, required — The ID of the first file in the list.
  - `last_id` string, required — The ID of the last file in the list.
  - `has_more` boolean, required — Whether there are more files available.

---

[API](https://skmtc.net/openai/apis/openai-api.md) · [All operations](https://skmtc.net/openai/apis/openai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openai/openai-api/versions/dcd35773a322/schema)
