clerk.revoke_api_key
Revoke an API key in a connected Clerk application so it can no longer be used.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Returns the revoked API key summary.
Cost = 8 tokens.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"api_key_id": "<api_key_id>"
},
"name": "clerk.revoke_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key_id | Yes | Clerk API key id (ak_...) to retrieve, update, delete, or revoke. | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. | |
| revocation_reason | No | Optional reason recorded when revoking the API key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Revoked Clerk API key from the Backend API. |