Soft-revoke an API key (sets revoked_at, preserves the row for audit)
revoked_at timestamp. The row is preserved so audit logs and historical usage records remain valid. Once revoked, requests using the key return 401 unauthorized.
System keys cannot be revoked. Requires the api-keys:manage scope.
key_...).api_key.true on success.Rotate API Key — the old key remains valid for a 24-hour grace period.| Status | Type | Description |
|---|---|---|
| 400 | validation_error | Invalid API key ID |
| 401 | unauthorized | Missing or invalid API key |
| 403 | forbidden | API key lacks api-keys:manage or target is a system key |
| 404 | not_found | API key does not exist or belongs to another org |