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).
Authorization
cloady 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}Change an AI key PATCH
Change a key's name, models, budget or rate limit, or pause and resume it. Its owner may, and so may an admin for a key pinned to this workspace (a token needs full scope).
Give an AI key a new secret POST
Replace the key's secret; the old one stops working at once. Limits, models and history stay. The new secret is returned only this once.