Rotate API key
Issues a new secret for the key and revokes the old one at the same moment. The key keeps its id, name and scopes. The new secret (token) is in this response only.
Authorizations
API key in the format: Bearer {api_token}
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
255Path Parameters
The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
Response
The key with its new secret
personal acts as the person who made it; team sees only what the whole account sees.
personal, team What the key may call. Null for a key made before scopes existed, which reaches everything.

