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
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"
}