Skip to main content
POST
Rotate
🔑 Requires the api_keys.rotate scope.

Authorizations

Authorization
string
header
required

API key from your incident.io dashboard (Settings → API keys)

Path Parameters

id
string
required

Unique identifier of the API key to rotate

Example:

"01FCNDV6P870EA6S7TK1DSYDG0"

Body

application/json
grace_period_minutes
integer<int64>
default:30
required

How many minutes to keep the old access token alive.

Required range: 0 <= x <= 60
Example:

30

expires_at
string<date-time>

A new expiry for the API key. Leave it blank to keep its current expiry. It must be in the future and within your organization's maximum lifetime for API keys.

Example:

"2022-08-17T13:28:57.801578Z"

Response

Created response.

api_key
object
required
token
string
required

The new bearer token to use in API requests. This is the only time the token is returned — store it securely.

Example:

"inc_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"