rotate_api_key
Rotate an API key's secret while preserving its identity and scopes, with an overlap period so callers can update before the previous key expires.
Instructions
Rotate an API key without changing its identity or scopes. The new secret is returned once and exposed to this MCP transcript, while the previous secret remains valid until key_transition_expires_at. Store the new key securely, update callers during the transition window, and never log either secret.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | API key UUID obtained from list_api_keys | |
| key_transition_period_ms | No | Overlap in milliseconds while the previous key remains valid; minimum 1,800,000 (30 minutes), for example 3,600,000 for 1 hour |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |