v32

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-07-312881,4162.7 MB

Create container file

Create a Container File

You can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID.

post/containers/{container_id}/files

Path parameters

container_idstring required

Request body

file_idstring

Name of the file to create.

filestring binary

The File object (not file name) to be uploaded.

Response

Success

idstring required

Unique identifier for the file.

object'container.file' required

The type of this object (container.file).

container_idstring required

The container this file belongs to.

created_atinteger required

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

bytesinteger required

Size of the file in bytes.

pathstring required

Path of the file in the container.

sourcestring required

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