Create Webhook Subscription Tool
create-webhook-subscriptionUse this when the user wants to add a webhook, callback URL, n8n/Zapier endpoint, or integration subscription for supported DocuWriter events. State-changing external action: creates the subscription after authorization. Use list-webhook-events first for valid event keys; webhook test dispatch is not exposed.
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": {
"webhook_url": "<webhook_url>",
"events": "<events>"
},
"name": "create-webhook-subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | Event keys from list-webhook-events. | |
| metadata | No | Optional metadata object to store alongside the webhook subscription. | |
| webhook_url | Yes | HTTP/HTTPS webhook endpoint. |