web3_revoke_key
Revoke an API key using a signed SIWE challenge and the key ID from web3_list_keys.
Instructions
Revoke a specific API key. Requires a fresh SIWE challenge signed with personal_sign. Use web3_list_keys first to get the key_id to revoke.
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": {
"message": "<message>",
"signature": "<signature>",
"key_id": "<key_id>"
},
"name": "web3_revoke_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The SIWE message from web3_challenge | |
| signature | Yes | Hex-encoded signature from personal_sign (0x-prefixed, 65 bytes) | |
| key_id | Yes | UUID of the API key to revoke (from web3_list_keys) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Result data object |