List Files
List Files through the OMA API.
anthropic-beta: files-api-2025-04-14.Authorizations
OMA workspace API key.
Headers
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
The version of the OMA API you want to use.
Read more about versioning and our version history here.
Query Parameters
Selects the beta API contract for this endpoint. Must be true.
true ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.
Number of items to return per page.
Defaults to 20. Ranges from 1 to 1000.
1 <= x <= 1000Filter by scope ID. Only returns files associated with the specified scope (e.g., a session ID).
Response
Successful Response
List of file metadata objects.
ID of the first file in this page of results.
"file_011CNha8iCJcU1wXNR6q4V8w"
Whether there are more results available.
ID of the last file in this page of results.
"file_013Zva2CMHLNnXjNJJKqJ2EF"