How to revoke a ClearRun API key
Open the API keys page, find the key by its name and first characters, and choose Revoke. The key stops working right away. Your other keys keep working.
Last updated
Steps
Open the API keys page
Go to api.clearrun.net/account/keys and sign in.
Revoke the key
Find the key by its name and first characters, and choose Revoke. It stops working right away.
Remove it where you used it
Take the old key out of your environment variables, CI secrets and MCP configs. On your own computer, run
clearrun logoutif you saved it withclearrun login.
Revoke one key or turn off API access?
| Revoke | Turn off API access | |
|---|---|---|
| Stops | One key | Every key on the account |
| When | Right away | Right away, until you turn it back on |
| Where | API keys page | Account settings |
What a revoked key returns
401 { "error": "Unauthorized" }, with no code field. That is the same reply as for a key that never existed. There is no delay: the next request with that key fails.
Replacing a key in use?
Create the new key and switch to it first, then revoke the old one. See How to rotate a ClearRun API key.