Rotate API Key
Rotates the API key's secret, invalidating the previous secret immediately. The response is the only place the new secret_key is returned.
Headers
A unique key that makes this request safe to retry. See Idempotent requests.
Response
api key rotated
Example response
{
"api_version_date": "2026-09-25",
"created_at": "2026-01-01T12:00:00.000Z",
"expires_at": "2026-01-01T12:00:00.000Z",
"grants": [
{
"actions": [
{
"action": "ai_prompt:create"
}
],
"resource_id": "biz_xxxxxxxxxxxxxx",
"resource_type": "account"
}
],
"id": "apik_xxxxxxxxxxxxxx",
"ip_allowlist": [
"203.0.113.0/24"
],
"name": "Shine Time Booking (admin role)",
"obfuscated_secret_key": "apik_xxxx....xxxx",
"secret_key": "apik_xxxxxxxxxxxxxx_C0000_C_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"system_role": "admin",
"updated_at": "2026-01-01T12:00:00.000Z"
}Changes
Changed in 24 of the 74 revisions of this API.296
- ●
added the new
2026-09-24-1enum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
2026-09-25enum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
- ●
added the new
2026-09-24enum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
- ●
added the new
2026-09-23enum value to theresponse property for the response statusresponse-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
added the new
2026-09-22enum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
2026-09-22-1enum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
2026-09-22-2enum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
2026-09-22-3enum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
2026-09-22-4enum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
- ●
added the new
2026-09-15enum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
- ●
added the new
2026-09-13enum value to theresponse property for the response statusresponse-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
added the new
2026-09-11-1enum value to theresponse property for the response statusresponse-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
added the new
2026-09-09-1enum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
2026-09-11enum value to theresponse property for the response statusresponse-property-enum-value-added
This revision's changelog hit the recording limit, so it may not list every change to this endpoint.
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
added the new
2026-09-09enum value to theresponse property for the response statusresponse-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
added the new
2026-09-06enum value to theresponse property for the response statusresponse-property-enum-value-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
Of the 74 revisions, 1 has no diff computed.