List files
Lists files belonging to the workspace of the authenticating API key.
Query parameters
Maximum number of files to return (1–1000).
Maximum number of files to return (1–1000).
Opaque pagination cursor from a previous response.
Opaque pagination cursor from a previous response.
Workspace to scope the request to. Defaults to the caller’s default workspace.
Workspace to scope the request to. Defaults to the caller’s default workspace.
Store or read this file on the named provider using your own API key for it. Omit to use OpenRouter storage.
Store or read this file on the named provider using your own API key for it. Omit to use OpenRouter storage.
OpenAI-style forward cursor: the id to list after.
OpenAI-style forward cursor: the id to list after.
Anthropic-style forward cursor: the id to list after.
Anthropic-style forward cursor: the id to list after.
Anthropic-style reverse cursor. Not supported by OpenRouter storage.
Anthropic-style reverse cursor. Not supported by OpenRouter storage.
Sort direction. Only asc is supported by OpenRouter storage.
Sort direction. Only asc is supported by OpenRouter storage.
Response
A page of files.
Example response
{
"_shape": "openrouter",
"cursor": null,
"data": [],
"first_id": null,
"has_more": false,
"last_id": null
}Changes
Changed in 1 of the 303 revisions of this API.79
- ▲
added to the response body
oneOflist for the response statusresponse-body-one-of-added
- ▲
the response's body type changed from
objectto no type for statusresponse-body-type-changed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ○
added the new optional
queryrequest parameterafternew-optional-request-parameter
- ○
added the new optional
queryrequest parameterafter_idnew-optional-request-parameter
- ○
added the new optional
queryrequest parameterbefore_idnew-optional-request-parameter
- ○
added the new optional
queryrequest parameterordernew-optional-request-parameter
- ○
added the new optional
queryrequest parameterprovidernew-optional-request-parameter
- ○
added response discriminator for the response status
response-body-discriminator-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲