rotate_api_key
Rotate an API key to generate a new secret while keeping the previous one valid during a configurable transition period. Update callers and store the new key securely before the old secret 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 |