List Files
/v1/files?beta=true
List Files
Query Parameters
after_id: optional string
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.
before_id: optional string
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.
limit: optional number
Number of items to return per page.
Defaults to 20. Ranges from 1 to 1000.
maximum1000
minimum1
Header Parameters
Returns
first_id: optional string
ID of the first file in this page of results.
has_more: optional boolean
Whether there are more results available.
last_id: optional string
ID of the last file in this page of results.
List Files
cURL
curl https://api.anthropic.com/v1/files?beta=true \
-H "X-Api-Key: $ANTHROPIC_API_KEY"{
"data": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"filename": "x",
"mime_type": "x",
"size_bytes": 0,
"type": "file",
"downloadable": true
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id"
}Returns Examples
{
"data": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"filename": "x",
"mime_type": "x",
"size_bytes": 0,
"type": "file",
"downloadable": true
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id"
}