Account
Revoke an API key
Revoke an API key. Revocation is immediate and cannot be undone.
DELETE
https://api.rankparse.com/v1/keys/:idFreeAPI keyRevokes a key in the workspace. Requests with that key fail with 401 invalid_api_key from then on. Owners and admins can revoke any key in the workspace; members can revoke only keys they created.
Path parameters
idstringrequiredThe key id from List API keys or Create an API key. Not the raw key.
Response
successbooleanAlways true.
You can revoke the key you are calling with. Every request after that returns 401. Create the replacement key first, deploy it, then revoke the old one.
Behavior
A notification email goes to the account email of the person revoking the key.
Errors
| HTTP | Code | When |
|---|---|---|
| 401 | invalid_api_key | Missing, invalid or revoked API key. |
| 403 | capability_missing | Client roles may not manage keys. |
| 404 | key_not_found | The id does not exist in this workspace, is already revoked, or (for members) belongs to someone else's key. |