Skip to main content
GET
Python

Authorizations

Authorization
string
header
required

An account provisioning key. Send it as Authorization: Bearer <key>. Provisioning keys manage the account and cannot reach a model.

Path Parameters

key_id
integer<int64>
required

The key's id, as the listing reports it.

Response

The key, without its secret.

One API key of the account, without its secret.

id
integer<int64>
required

The key's id, which is the {key_id} the per-key routes take.

name
string
required

The label the key carries.

created_at
string
required

When the key was created: UTC to the second, without an offset.

expires_at
string | null
required

When the key stops working, or null for one that never expires.

is_enabled
boolean
required

Whether the key works at all.

credit_limit
number<double> | null
required

The key's own spending limit in credits, or null for none.

credit_limit_period
enum<string>
required

The window credit_limit covers; all on a key that never resets.

Available options:
day,
week,
month,
all
default_routing_strategy
enum<string> | null
required

The key's own default routing strategy, or null when it follows its workspace.

Available options:
reliability,
balanced,
latency,
throughput,
cache
workspace_id
integer<int64> | null
required

The workspace the key is in, or null for the Default workspace.