When to use this
Security incident
Key was leaked in a public repo or logs. Delete it immediately.
User offboarding
Customer canceled or employee left. Revoke their API access.
Suspicious activity
Unusual traffic patterns. Disable the key while investigating.
Billing issues
Payment failed. Temporarily disable until resolved.
Delete vs Disable
Delete a key permanently
Use when the key should never work again:Disable a key temporarily
Use when you want to suspend access but may restore it later:Re-enable a disabled key
Propagation time
- Delete: Up to 60 seconds for global invalidation
- Disable: Up to 60 seconds for global propagation
- Rotate any affected secrets downstream
- Review audit logs for unauthorized access
- Alert the user if appropriate
Bulk revocation
To revoke all keys for a specific user, query their keys first:Next steps
Key rerolling
Replace a key while preserving its configuration
Audit logs
Track who revoked which keys