v10

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-02-05141768.5 KB
Files

List files

List all files uploaded by the current user.

get/v1/files

Query parameters

limitinteger

Maximum number of files to return.

Example:20

Maximum number of files to return.

afterstring nullable

Unique identifier for a file.

Example:file_01kfxgjd94fn9stqm414vjb0s8

A cursor for pagination. Use the last_id from a previous response to fetch the next page.

Response

Successful Response

object'list' required

The object type, which is always 'list'.

first_idstring nullable

Unique identifier for a file.

last_idstring nullable

Unique identifier for a file.

has_moreboolean required

Whether there are more results available after this page.

Example response

{
  "data": [
    {
      "content_type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
      "created_at": "2024-01-15T10:30:00Z",
      "file_name": "financial_report.xlsx",
      "id": "file_01kfxgjd94fn9stqm414vjb0s8",
      "object": "file",
      "size": 1048576
    }
  ],
  "first_id": "file_01kfxgjd94fn9stqm414vjb0s8",
  "has_more": false,
  "last_id": "file_01kfxgjd94fn9stqm414vjb0s8",
  "object": "list"
}
All 14 operations