Create webhook subscription
create_webhookSubscribe an HTTPS URL to one event type (REST Hooks style). anymail will POST a signed JSON payload to target_url whenever the event happens in this workspace. Idempotent: subscribing the same (event, target_url) pair again returns the existing subscription. The URL must be public HTTPS (no private addresses, no credentials in the URL). Returns the subscription id needed by delete_webhook.
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": {
"event": "<event>",
"target_url": "<target_url>"
},
"name": "create_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | Event to subscribe to: new_reply (a prospect replied), positive_reply (reply classified as interested), bounce, unsubscribe, email_opened (weak signal: Apple Mail opens pixels itself), link_clicked, prospect_interested, prospect_maybe_later, prospect_not_interested, prospect_autoreplied (out-of-office), campaign_completed, campaign_paused, prospect_added, offer_opened (first visit to an offer), offer_returned (another visit), offer_read (read to the end, once per offer), offer_temperature_changed (offer moved between hot/warm/neutral/cooling/cold; metadata has from, to, reason). | |
| target_url | Yes | Public HTTPS URL that will receive the POST. |