Skip to main content
GET
List files
Returns metadata, not contents. Download a file with GET /experimental/files/{id}/content. Pass a file’s id in file_ids on POST /experimental/tasks/{id}/messages to attach it to a task.

Authorizations

Authorization
string
header
required

Requires an API key. See the Authentication guide.

Query Parameters

project_id
string
required
limit
integer
default:20

Maximum objects to return.

Required range: 1 <= x <= 100
before_id
string | null
after_id
string | null

Response

200 - application/json

Page of files uploaded to the project, newest first.

data
File · object[]
required
type
string
default:list
Allowed value: "list"
has_more
boolean
default:false
first_id
string | null
last_id
string | null