Skip to main content
POST
Rotate Key

Authorizations

Authorization
string
header
required

Primary scheme: Authorization: Key <key_id>:<secret>.

Path Parameters

key_id
string
required

Body

application/json
grace_period_seconds
integer | null
Required range: x >= 0

Response

Successful Response

key_id
string
required
credential
string
required
kind
enum<string>
required

Personal keys die with the member; service keys belong to the workspace.

Available options:
personal,
service
name
string | null
scopes
string[] | null
workspace_id
string | null
expires_at
string<date-time> | null
previous_secret_expires_at
string<date-time> | null