Skip to main content
POST
Roll an API key
Dashboard session only. API keys cannot call this operation.

Authorizations

Authorization
string
header
required

ID token of a signed-in dashboard user. Operations that API keys cannot call use it.

Headers

Idempotency-Key
string

Optional on every POST: 1-255 printable ASCII characters without spaces (a UUID is recommended). The same key with the same request replays the stored response for 24 hours. See Idempotency.

Required string length: 1 - 255
Pattern: ^[\x21-\x7E]{1,255}$

Path Parameters

apiKeyId
integer<uint64>
required

Numeric id (apiKeyId). A non-numeric id is a 400 data-failed-validation; an unknown id or one of another partner is a 404. Unsigned 64-bit integer. May exceed 2^53; parse with a BigInt-safe JSON parser in JavaScript.

Required range: 0 <= x <= 18446744073709552000

Body

application/json

Roll an API key.

gracePeriodMinutes
integer
default:1440

1-10,080; default 1,440.

Required range: 1 <= x <= 10080

Response

Success.

Single-object envelope around ApiKeyWithSecret.

data
object
required

An API key with its secret, returned only by create and :roll.