Skip to Content
Account

Revoke an API key

Revoke an API key. Revocation is immediate and cannot be undone.

DELETEhttps://api.rankparse.com/v1/keys/:idFreeAPI key

Revokes 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

idstringrequired

The key id from List API keys or Create an API key. Not the raw key.

Response

successboolean

Always 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

HTTPCodeWhen
401invalid_api_keyMissing, invalid or revoked API key.
403capability_missingClient roles may not manage keys.
404key_not_foundThe id does not exist in this workspace, is already revoked, or (for members) belongs to someone else's key.