Skip to main content
POST

Continue building

Enable an API key

Enable the key again when needed.

Rotate an API key

Replace the credential rather than reusing it.

Authentication

Choose API-key or browser-session authentication.

Path Parameters

key_id
string
required

Public API key identifier returned by GET /v1/api-keys.

Response

Updated API key.

key_id
string
required
name
string
required
status
string
required
api_key
string | null
prefix
string | null
created_at
string | null
last_used_at
string | null
disabled_at
string | null
expires_at
string | null
rotated_from_key_id
string | null
rotated_at
string | null
credit_limit
number | null
credit_used
number
default:0
credit_reserved
number
default:0
credit_remaining
number | null
credit_budget_reset_at
string | null