Skip to main content
Rotate an API key

Authorizations

Authorization
string
header
required

The access token (JWT) of a signed-in console user, from POST /v1/auth/login. It lasts 30 minutes. It is not an API key: a partner API key is refused here. There is no cookie.

Path Parameters

key_id
string<uuid>
required

Body

application/json
grace_hours
integer
default:24
Required range: 0 <= x <= 168

Response

OK

The successor key (secret shown once) and the key it replaces.

key
object
required
raw_key
string
required
previous
object
required