XRToken API Docs

Get file metadata

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

Returns metadata plus a 1-hour signed read URL.

GET
/v1/files/{id}

Authorization

BearerAuth
AuthorizationBearer <token>

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

Authorization: Bearer tr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

Path Parameters

id*string

File ID (with file- prefix)

Response Body

application/json

application/json

application/json

curl -X get "https://api.xrtoken.ai/v1/files/string"
{
  "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"
}
{
  "error": "string",
  "type": "invalid_request_error"
}