Revoke API key
curl --request POST \
--url https://api.trycomp.ai/v1/organization/api-keys/revoke \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"id": "apk_abc123def456"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: 'apk_abc123def456'})
};
fetch('https://api.trycomp.ai/v1/organization/api-keys/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/organization/api-keys/revoke"
payload = { "id": "apk_abc123def456" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Organization
Revoke API key | Comp AI API
Revoke an organization API key when an integration is retired, credentials rotate, or access should be removed.
POST
/
v1
/
organization
/
api-keys
/
revoke
Revoke API key
curl --request POST \
--url https://api.trycomp.ai/v1/organization/api-keys/revoke \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"id": "apk_abc123def456"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: 'apk_abc123def456'})
};
fetch('https://api.trycomp.ai/v1/organization/api-keys/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/organization/api-keys/revoke"
payload = { "id": "apk_abc123def456" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Was this page helpful?

