For the complete documentation index, see llms.txt. This page is also available as Markdown.

Files

Upload File

post
/files

Upload a file with optional metadata.

Authorizations
AuthorizationstringRequired

Enter your bearer token in the format 'your-token' (without quotes or 'Bearer' prefix)

Body
filestring · binary[]Optional
purposestring · enumOptionalDefault: user_dataPossible values:
metadataany ofOptional

JSON string with file metadata

stringOptional
or
nullOptional
instructionsany ofOptional

Instructions used to process the file

stringOptional
or
nullOptional
workspacestringOptionalDefault: default
Responses
post
/files

List Files

get
/files

Returns a list of files, filtered by the organization.

Authorizations
AuthorizationstringRequired

Enter your bearer token in the format 'your-token' (without quotes or 'Bearer' prefix)

Query parameters
workspacestringOptional

List files in workspace

Default: default
afterany ofOptional

Cursor for pagination

stringOptional
or
nullOptional
limitinteger · min: 1 · max: 10000Optional

Limit the number of returned files

Default: 10000
orderstringOptional

Sort order by creation timestamp

Default: desc
purposeany ofOptional

Filter by purpose

string · enumOptionalPossible values:
or
nullOptional
filterany ofOptional

Filter by metadata

stringOptional
or
nullOptional
Responses
get
/files

Retrieve File

get
/files/{file_id}

Returns information about a specific file, verifying organization access.

Authorizations
AuthorizationstringRequired

Enter your bearer token in the format 'your-token' (without quotes or 'Bearer' prefix)

Path parameters
file_idstringRequired

The ID of the file

Query parameters
workspacestringOptional

Get file from workspace

Default: default
Responses
get
/files/{file_id}

Delete File

delete
/files/{file_id}

Delete a file, verifying organization access.

Authorizations
AuthorizationstringRequired

Enter your bearer token in the format 'your-token' (without quotes or 'Bearer' prefix)

Path parameters
file_idstringRequired

The ID of the file

Query parameters
workspacestringOptional

Delete file from workspace

Default: default
Responses
delete
/files/{file_id}

Retrieve File Content

get
/files/{file_id}/content

Returns the contents of the specified file, verifying organization access.

Authorizations
AuthorizationstringRequired

Enter your bearer token in the format 'your-token' (without quotes or 'Bearer' prefix)

Path parameters
file_idstringRequired

The ID of the file

Query parameters
workspacestringOptional

The workspace id to get file content from

Default: default
Responses
get
/files/{file_id}/content

No content

Update File Metadata

patch
/files/{file_id}/metadata

Update metadata for a specific file, verifying organization access.

Authorizations
AuthorizationstringRequired

Enter your bearer token in the format 'your-token' (without quotes or 'Bearer' prefix)

Path parameters
file_idstringRequired

The ID of the file

Query parameters
workspacestringOptional

The workspace id to update th file in

Default: default
Body

The metadata to update. instructions key is considered as an instruction to update metadata by AI.

Other propertiesanyOptional
Responses
patch
/files/{file_id}/metadata

Last updated