Revoke an API key
Ends an API key at once. Requests that send it are refused from then on.
DELETE
/_luna/tokens/{id}Authorization
AuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
Scopes:
tokens:writePath parameters
idstringrequiredThe key's id: 16 hex characters.
Responses
200
Whether a key was revoked.
revokedbooleanrequiredWhether there was a key with this id to revoke.
default
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.