Skip to main content
POST
Rotate API Key

Authorizations

Authorization
string
header
required

API key in the Authorization header: Bearer qr_live_… or Bearer qr_test_…. Token endpoints take a Clerk session JWT instead.

Body

application/json
key_id
string
required

Response

New API key (full key shown once)

id
string
Example:

"key_aB3dE5fG7hI9jK1m"

object
string
Example:

"api_key"

name
string
key_prefix
string
Example:

"qr_live_a1b2"

environment
enum<string>
Available options:
live,
test
scopes
string[]
last_used_at
string<date-time> | null
expires_at
string<date-time> | null
created_at
string<date-time>
key
string

The full API key — shown only once.