Skip to main content
Files are org-scoped binary objects you upload once and reference by id. Uploads are virus-scanned before they become retrievable and are covered by the same BAA requirement as every other endpoint — see BAA gating.

Upload a file

Body

An upload that fails the malware scan is rejected with MALWARE_DETECTED and no file is stored.

List files

Cursor-paginated, scoped to the caller’s org. See Pagination.

Retrieve metadata

Returns the file’s metadata — id, purpose, size, content type, scan state, and creation time. It does not return the bytes.

Download content

Returns the stored bytes. This is a content read, so it is recorded in the audit chain as a disclosure — the metadata endpoint above is not.

Delete a file

Deletes the record and the underlying storage object. Files belonging to another org return 404.

Errors