Revoke Key
DELETEhttps://api.confident-ai.com/v2/organization/api-keys/{apiKeyId}
Permanently revokes an organization-scoped API key. Both its current value and any replacement value in flight stop authenticating at once. This cannot be undone — a new key has to be created in its place.
curl -X DELETE "https://api.confident-ai.com/v2/organization/api-keys/{apiKeyId}" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"{
"success": true,
"data": {
"id": 1420
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
apiKeyIdintegerRequiredThe id of the API key.
Response
Revoke Key succeeded.
successbooleanIndicates if the request was successful.
dataobjectConfirmation that an API key was revoked. The key's row is deleted and both of its values stop authenticating at once.
Show 1 propertyHide 1 property
idintegerThe id of the API key that was revoked.
deprecatedbooleanIndicates if this endpoint is deprecated.