XRToken API Docs

List files

API Configuration
After saving, the Try It panel below sends real requests with this key.
Base: api.xrtoken.ai

List the account's uploaded files, newest first.

GET
/v1/files

Authorization

BearerAuth
AuthorizationBearer <token>

API key authentication (OpenAI format). Pass in the Authorization header:

Authorization: Bearer tr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

Query Parameters

limit?integer

Max rows (1–100, default 20)

Default20
Range1 <= value <= 100

Response Body

application/json

application/json

curl -X get "https://api.xrtoken.ai/v1/files"
{
  "object": "list",
  "data": [
    {
      "id": "string",
      "object": "file",
      "bytes": 0,
      "created_at": 0,
      "filename": "string",
      "purpose": "string",
      "mime_type": "string",
      "type": "image",
      "url": "string",
      "expires_at": 0
    }
  ]
}
{
  "error": "invalid or missing API key",
  "type": "auth_error"
}