Skip to main content
POST
Rotate an API key for a service account

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

name
string
required
key_id
string
required
org
string
required

Body

application/json
grace_period_hours
integer
default:24

Number of hours the old key remains valid after rotation. Defaults to 24.

Required range: 1 <= x <= 720
expires_at
integer | null

Unix timestamp for the new key's expiry. Must not be in the past. Omit to keep the current key's expiry, bounded to at most 365 days from now.

Required range: x <= 4102444800

Response

Successful Response

id
string
required
key
string
required
description
string
required
created_at
number
required
expires_at
integer
required
grace_period_expires_at
integer
required
Last modified on September 10, 2026