Skip to content
Primary navigation

Files

List container files
containers.files.list(container_id, **kwargs) -> CursorPage<FileListResponse { id, bytes, container_id, 4 more } >
GET/containers/{container_id}/files
Create container file
containers.files.create(container_id, **kwargs) -> FileCreateResponse { id, bytes, container_id, 4 more }
POST/containers/{container_id}/files
Retrieve container file
containers.files.retrieve(file_id, **kwargs) -> FileRetrieveResponse { id, bytes, container_id, 4 more }
GET/containers/{container_id}/files/{file_id}
Delete a container file
containers.files.delete(file_id, **kwargs) -> void
DELETE/containers/{container_id}/files/{file_id}
ModelsExpand Collapse
class FileListResponse { id, bytes, container_id, 4 more }
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.

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).

class FileCreateResponse { id, bytes, container_id, 4 more }
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.

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).

class FileRetrieveResponse { id, bytes, container_id, 4 more }
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.

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).

FilesContent

Retrieve container file content
containers.files.content.retrieve(file_id, **kwargs) -> StringIO
GET/containers/{container_id}/files/{file_id}/content