---
title: "Retrieve Container File"
method: GET
path: "/containers/{container_id}/files/{file_id}"
---

# Retrieve Container File

`GET /containers/{container_id}/files/{file_id}`

Retrieves a container file.

## Path parameters

- `container_id` string, required
- `file_id` string, required

## Response `200`

Success

- ContainerFileResource
  - `id` string, required — Unique identifier for the file.
  - `object` string, 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`).

## Other responses

- `429` — The request was rejected because a rate limit was exceeded.

## Changes

- **2026-08-14** `6ac2618eefd7` — 1 info
  - added the non-success response with the status `429`
- **2026-05-13** `74cbcf73838f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openai/apis/openapi/changes/containers/:container_id/files/:file_id/get.md)

---

[API](https://skmtc.dev/openai/apis/openapi.md) · [All operations](https://skmtc.dev/openai/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openai/openapi/revisions/959ef977e135/schema)
