Skip to main content
DELETE
Revoke a capability token
Revocation takes effect immediately: no new request is accepted. In-flight requests that have already passed authentication complete. Returns 404 not_found if the token does not exist for this agent, or is already revoked. This endpoint addresses tokens belonging to an agent. A token minted without an agent is invisible here — revoke it with Revoke a gateway token.
The dashboard twin. The same operation exists on the admin host as DELETE /admin/ai-gateway/{gatewayId}/agents/{agentId}/keys/{tokenId}, session-authenticated with an X-Tenant-ID header and an owner/admin role. That is what the dashboard itself calls. Prefer the /v1 operation above for anything you write: it is the surface the five SDKs, the Postman collection and this spec cover.

Authorizations

Authorization
string
header
required

OAuth 2.1 authentication — recommended for new integrations. Access tokens (kc_ prefix) are minted at the root-host token endpoint https://api.knoxcall.com/oauth/token and passed as Authorization: Bearer <access_token>. Public clients must use PKCE with the authorization_code grant; confidential clients may use client_credentials. The first-party SDKs and the knoxcall login CLI handle token minting, caching, refresh, and DPoP for you.

Path Parameters

agentId
string<uuid>
required

The AI agent UUID.

tokenId
string<uuid>
required

The capability token UUID.

Response

The revoked token.

data
object
meta
object

Metadata included with every API response.