Skip to main content
GET
Get API key
Never returns raw key secrets. Requires keys:read scope. Naturally idempotent. All parameters, request/response schemas, and examples are auto-generated from the OpenAPI specification.

Authorizations

Authorization
string
header
required

API key authentication. Keys start with ak_ prefix. Example: Authorization: Bearer ak_live_xxxxxxxxxxxx

Path Parameters

workspace_id
string<uuid>
required

Workspace identifier

api_key_id
string<uuid>
required

API key identifier

Response

OK

API key metadata (excludes the secret key value).

id
string<uuid>
required

Unique identifier for the API key

workspace_id
string<uuid>
required

Workspace this key belongs to

name
string
required

Human-readable name for the key

key_prefix
string
required

Key prefix for identification (e.g. "ak_live_abcdefgh")

profile
enum<string>
required

Key profile derived from granted scopes

Available options:
inference,
management,
mixed
scopes
string[]
required

Granted permission scopes

is_active
boolean
required

Whether the key is currently active

created_at
string<date-time>
required

When the key was created

rate_limit_rpm
integer | null

Per-key rate limit in requests per minute (null inherits workspace default)

expires_at
string<date-time> | null

Expiration timestamp (null means no expiration)

last_used_at
string<date-time> | null

When the key was last used (null if never used)

created_by_key_id
string<uuid> | null

ID of the API key that created this key (null if created via dashboard)