## Retrieve container file

`containers.files.retrieve(file_id, **kwargs) -> FileRetrieveResponse`

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

Retrieve Container File

### Parameters

- `container_id: String`

- `file_id: String`

### Returns

- `class FileRetrieveResponse`

  - `id: String`

    Unique identifier for the file.

  - `bytes: Integer`

    Size of the file in bytes.

  - `container_id: String`

    The container this file belongs to.

  - `created_at: Integer`

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

    `format: unixtime`

  - `object: :"container.file"`

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

    - `:"container.file"`

  - `path: String`

    Path of the file in the container.

  - `source: String`

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

### Example

```ruby
require "openai"

openai = OpenAI::Client.new(api_key: "My API Key")

file = openai.containers.files.retrieve("file_id", container_id: "container_id")

puts(file)
```

#### 200 — Example

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