Revoke an API key
curl --request POST \
--url https://api.salessequencer.com/api/v1/workspaces/{ws_id}/api-keys/{key_id}/revoke \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.salessequencer.com/api/v1/workspaces/{ws_id}/api-keys/{key_id}/revoke"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.salessequencer.com/api/v1/workspaces/{ws_id}/api-keys/{key_id}/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));API keys
Revoke an API key
Marks the key revoked (it stops working immediately; not undoable). 404 if the key is not in this workspace. Admin of that workspace or super-admin.
Minimum role: admin (x-min-role). Destructive: true (x-destructive).
POST
/
workspaces
/
{ws_id}
/
api-keys
/
{key_id}
/
revoke
Revoke an API key
curl --request POST \
--url https://api.salessequencer.com/api/v1/workspaces/{ws_id}/api-keys/{key_id}/revoke \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.salessequencer.com/api/v1/workspaces/{ws_id}/api-keys/{key_id}/revoke"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.salessequencer.com/api/v1/workspaces/{ws_id}/api-keys/{key_id}/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));