## Retrieve container file

`$ openai containers:files retrieve`

**get** `/containers/{container_id}/files/{file_id}`

Retrieve Container File

### Parameters

- `--container-id: string`

- `--file-id: string`

### Returns

- `ContainerFileGetResponse: object { id, bytes, container_id, 4 more }`

  - `id: string`

    Unique identifier for the file.

  - `bytes: number`

    Size of the file in bytes.

  - `container_id: string`

    The container this file belongs to.

  - `created_at: number`

    Unix timestamp (in seconds) when the file was created.

  - `object: "container.file"`

    The type of this object (`container.file`).

  - `path: string`

    Path of the file in the container.

  - `source: string`

    Source of the file (e.g., `user`, `assistant`).

### Example

```cli
openai containers:files retrieve \
  --api-key 'My API Key' \
  --container-id container_id \
  --file-id file_id
```

#### Response

```json
{
  "id": "id",
  "bytes": 0,
  "container_id": "container_id",
  "created_at": 0,
  "object": "container.file",
  "path": "path",
  "source": "source"
}
```
