Revoke Key
DELETEhttps://api.confident-ai.com/v2/projects/{projectId}/api-keys/{apiKeyId}
Permanently revokes a project-scoped API key. Both its current value and any replacement value in flight stop authenticating at once, so anything still sending traces with it starts failing. This cannot be undone — a new key has to be created in its place.
curl -X DELETE "https://api.confident-ai.com/v2/projects/{projectId}/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
projectIdstringRequiredThe id of the project the key belongs to.
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.