cloadyDocs
API ReferenceEndpointsWorkspaces

Revoke an AI key

Revoke a key that can only call the AI gateway. A token that can also do other things keeps them and only loses AI access. Its owner may, and so may an admin for a key pinned to this workspace (a token needs full scope).

DELETE
/api/workspaces/{workspaceSlug}/ai/keys/{keyId}
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
keyId*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api/workspaces/string/ai/keys/string"
{  "revoked": true}