Create Webhook Subscription
mail_webhook_createCreate an outbound webhook subscription to notify a URL when mail arrives or approvals are requested for a specific address. Returns subscription metadata and signing secret.
Instructions
Create an outbound webhook subscription. Returns subscription metadata and the displayed signing secret (whs_...). Deny-by-default for OAuth 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": {
"url": "<url>",
"address": "<address>",
"events": "<events>"
},
"name": "mail_webhook_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Webhook target URL (https:// required unless private target granted) | |
| events | Yes | Events to subscribe to ('mail.received', 'approval.requested') | |
| address | Yes | Identity email address to receive events for | |
| description | No | Optional human-readable description (max 1000 characters) | |
| contentScope | No | Payload content scope: 'metadata' (default) or 'preview' (admin only) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| state | Yes | ||
| events | Yes | ||
| secret | No | ||
| address | Yes | ||
| createdAt | No | ||
| description | No | ||
| contentScope | No | ||
| secretPrefix | No | ||
| signatureScheme | No | ||
| timestampToleranceSec | No |