List Files
Query parameters
Opaque page cursor returned in a prior list response's next_page. Prefixed page_.
Opaque page cursor returned in a prior list response's next_page. Prefixed page_.
Restrict the result set to Files whose id is in this list. At most 100 entries (after de-duplication). Mutually exclusive with page and limit. When supplied, the response is always a single page (next_page is null). IDs that do not resolve to a visible File — including deleted Files — are silently omitted.
Restrict the result set to Files whose id is in this list. At most 100 entries (after de-duplication). Mutually exclusive with page and limit. When supplied, the response is always a single page (next_page is null). IDs that do not resolve to a visible File — including deleted Files — are silently omitted.
Number of items to return per page.
Defaults to 20. Ranges from 1 to 1000.
Number of items to return per page.
Defaults to 20. Ranges from 1 to 1000.
Headers
The version of the Claude API you want to use.
Read more about versioning and our version history here.
The version of the Claude API you want to use.
Read more about versioning and our version history here.
Your unique API key for authentication.
This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the Console. Each key is scoped to a Workspace.
Your unique API key for authentication.
This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the Console. Each key is scoped to a Workspace.
Response
Successful Response
Example response
{
"data": [
{
"created_at": "2025-04-15T18:37:24.100435Z",
"expires_at": "2025-05-15T18:37:24.100435Z",
"filename": "document.pdf",
"id": "file_011CNha8iCJcU1wXNR6q4V8w",
"mime_type": "application/pdf",
"size_bytes": 102400
}
]
}