Revoke an API key
Revoke a local fixture API key when that identifier must no longer rotate. Beacon API records a revoke event and preserves the identifier in the local state file. This procedure changes disposable local state only.
Before changing an API key, keep a recovery credential in a secure location. Confirm the key name and project before continuing. Use a disposable fixture key for these exercises; never paste a live secret into a terminal transcript or documentation example.
Revoke the key #
For administrators, confirm that key-demo is the intended disposable key. Run node src/beacon.mjs key revoke --id key-demo.
The result is revoked API key key-demo. A later attempt to rotate that key reports that an active fixture API key is required. Creating a new key with a different name starts a separate identifier at generation 1.
For developers, keep an example's name consistent across its create, rotate and revoke commands. Never infer the request allowance from the generation number; use API key limits.