Files

List files

get/v1/files

Request

  • Base URL: https://api.tokenlab.sh
  • URL: https://api.tokenlab.sh/v1/files
  • Auth: HTTP bearer

Query parameters

limitinteger
afterstring
after_idstring

Anthropic Files cursor. Return files after this public file id. Requires the Anthropic Files beta header and cannot be combined with before_id.

before_idstring

Anthropic Files cursor. Return files before this public file id. Requires the Anthropic Files beta header and cannot be combined with after_id.

scope_idstring

Reserved Anthropic Files scope cursor. TokenLab currently returns an explicit unsupported error rather than silently ignoring this value.

purpose'batch' | 'batch_output' | 'user_data' | 'vision'

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

anthropic-betastring

Include files-api-2025-04-14 to use Anthropic Files API mode.

Response

List of files

OR

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.