Skip to main content
POST
Rotate API Key (Revoke Old + Issue New)

Authorizations

Authorization
string
header
required

API Key. Example: sk_live_xxxxx or pk_live_xxxxx

Path Parameters

id
string
required

Resource ID

Response

200 - application/json

Success

id
string
name
string
type
enum<string>
Available options:
secret,
publishable
mode
enum<string>
Available options:
live,
test
key_hint
string

Masked key (sk_live_...abc)

is_active
boolean
last_used_at
string<date-time> | null
created_at
string<date-time>
key
string

New original key (returned once)