Skip to main content

Overview

Files endpoints

Available Operations

list

Lists files belonging to the workspace of the authenticating API key.

Example Usage

Parameters

Response

operations.ListFilesResponse

Errors

upload

Uploads a file to be referenced in future API calls. The file is stored under the workspace of the authenticating API key. Maximum file size: 100 MB; empty files are rejected. The file type is determined from the file contents — not the filename or the declared content type — and must be a PDF, a PNG/JPEG/GIF/WebP image, a DOCX/XLSX/PPTX document, an MP3/WAV/FLAC/OGG audio file, or UTF-8 text. Text is reported by its structure as application/json, application/x-ndjson, text/csv, text/markdown, or text/plain.

Example Usage

Parameters

Response

components.FileResponse

Errors

delete

Deletes a file owned by the requesting workspace. Deletion is irreversible.

Example Usage

Parameters

Response

components.FileDeleteResponse

Errors

retrieve

Retrieves metadata for a single file owned by the requesting workspace.

Example Usage

Parameters

Response

components.FileResponse

Errors

download

Downloads the raw bytes of a file. Only files created server-side are downloadable; uploaded files return 400.

Example Usage

Parameters

Response

httpx.Response

Errors