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
}