List files
Request
- Base URL: https://api.tokenlab.sh
- URL: https://api.tokenlab.sh/v1/files
- Auth: HTTP bearer
Query parameters
Anthropic Files cursor. Return files after this public file id. Requires the Anthropic Files beta header and cannot be combined with before_id.
Anthropic Files cursor. Return files before this public file id. Requires the Anthropic Files beta header and cannot be combined with after_id.
Reserved Anthropic Files scope cursor. TokenLab currently returns an explicit unsupported error rather than silently ignoring this value.
Optional file purpose filter. batch and batch_output cover Batch API files; user_data and vision cover TokenLab image/reference file bindings. Anthropic Files API mode is selected by Anthropic headers rather than this query parameter.
Headers
Include files-api-2025-04-14 to use Anthropic Files API mode.
Response
List of files
Example response
{
"data": [
{
"id": "file-abc123",
"bytes": 1234,
"created_at": 1741339200,
"filename": "batch.jsonl",
"status": "processed",
"expires_at": 1741425600
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.