Revoke an API key (superuser or org admin)
import requests
url = "https://eu.app.clarifeye.ai/api/v1/organization-api-keys/{id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/organization-api-keys/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://eu.app.clarifeye.ai/api/v1/organization-api-keys/{id}/ \
--header 'Authorization: Bearer <token>'Organization API Keys
Revoke an API key (superuser or org admin)
Soft revoke: the key stops authenticating immediately (403 API key revoked.) and
stays listed with status: revoked.
DELETE
/
organization-api-keys
/
{id}
/
Revoke an API key (superuser or org admin)
import requests
url = "https://eu.app.clarifeye.ai/api/v1/organization-api-keys/{id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/organization-api-keys/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://eu.app.clarifeye.ai/api/v1/organization-api-keys/{id}/ \
--header 'Authorization: Bearer <token>'Authorizations
BearerAuthTokenAuth
Use Authorization: Bearer <token>. The token is either a user token / OAuth access
token, or a service-account API key (cfk_...). A key is valid on every endpoint and
acts as its service account, an organization member with per-store permissions.
Refused keys answer 403 with Invalid API key., API key revoked.,
API key expired. or API key disabled..
Path Parameters
Response
Revoked.