Files

List files

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

get/files

Query parameters

limitinteger

Maximum number of files to return (1–1000).

Example:100

Maximum number of files to return (1–1000).

cursorstring

Opaque pagination cursor from a previous response.

Example:eyJjdXJzb3IiOiJmaWxlXzAxMUNOaGE4aUNKY1Uxd1hOUjZxNFY4dyJ9

Opaque pagination cursor from a previous response.

workspace_idstring uuid

Workspace to scope the request to. Defaults to the caller’s default workspace.

Example:a103d8b6-42f0-4e50-9a3c-bf41e2c3c1a7

Workspace to scope the request to. Defaults to the caller’s default workspace.

Response

A page of files.

cursorstring nullable required

Opaque cursor for the next page; null when there are no more results.

first_idstring nullable required
has_moreboolean required
last_idstring nullable required

Example response

{
  "cursor": null,
  "data": [
    {
      "created_at": "2025-01-01T00:00:00Z",
      "downloadable": false,
      "filename": "document.pdf",
      "id": "file_011CNha8iCJcU1wXNR6q4V8w",
      "mime_type": "application/pdf",
      "size_bytes": 1024000,
      "type": "file"
    }
  ],
  "first_id": "file_011CNha8iCJcU1wXNR6q4V8w",
  "has_more": false,
  "last_id": "file_011CNha8iCJcU1wXNR6q4V8w"
}

Changes