Skip to main content
GET
Get Api Token By Id

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

xi-api-key
string | null
x-api-key
string | null

Path Parameters

token_id
string
required

Response

Successful Response

created_at
integer
required

creation unix timestamp

name
string
required
token_id
string
required
allowed_ips
string[] | null
prefix
string
default:""

sk-di-, or empty on a token minted before it

fragment
string
default:""

display suffix; last 5 chars of the secret

scopes
enum<string>[]

what the key may do

What an API key may do. A scope x also grants x:read; unrestricted grants every scope.

Available options:
inference,
models:read,
account:read,
models,
lora:read,
lora,
voice:read,
voice,
account_scoped_jwt:read,
account_scoped_jwt,
batch,
compute:sandbox,
compute:agents,
compute:containers,
billing:read,
metrics,
unrestricted