Skip to content
Primary navigation

Files

List container files
containers.files.list(strcontainer_id, FileListParams**kwargs) -> SyncCursorPage[FileListResponse]
GET/containers/{container_id}/files
Create container file
containers.files.create(strcontainer_id, FileCreateParams**kwargs) -> FileCreateResponse
POST/containers/{container_id}/files
Retrieve container file
containers.files.retrieve(strfile_id, FileRetrieveParams**kwargs) -> FileRetrieveResponse
GET/containers/{container_id}/files/{file_id}
Delete a container file
containers.files.delete(strfile_id, FileDeleteParams**kwargs)
DELETE/containers/{container_id}/files/{file_id}
ModelsExpand Collapse
class FileListResponse:
id: str

Unique identifier for the file.

bytes: int

Size of the file in bytes.

container_id: str

The container this file belongs to.

created_at: int

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

object: Literal["container.file"]

The type of this object (container.file).

path: str

Path of the file in the container.

source: str

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

class FileCreateResponse:
id: str

Unique identifier for the file.

bytes: int

Size of the file in bytes.

container_id: str

The container this file belongs to.

created_at: int

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

object: Literal["container.file"]

The type of this object (container.file).

path: str

Path of the file in the container.

source: str

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

class FileRetrieveResponse:
id: str

Unique identifier for the file.

bytes: int

Size of the file in bytes.

container_id: str

The container this file belongs to.

created_at: int

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

object: Literal["container.file"]

The type of this object (container.file).

path: str

Path of the file in the container.

source: str

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

FilesContent

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