create_webhook
Create a new ERPNext webhook for a target DocType and URL in standard or smart mode, with validation and security checks.
Instructions
Create a new Webhook in ERPNext (unified – use mode = 'standard' | 'smart')
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_doctype": "<webhook_doctype>",
"webhook_url": "<webhook_url>"
},
"name": "create_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Creation mode: 'smart' (default) or 'standard' (legacy). Smart mode performs validation & security. | smart |
| enabled | No | Enabled (1/0, optional) | |
| timeout | No | Timeout in seconds (optional) | |
| condition | No | Condition (optional) | |
| webhook_url | Yes | Webhook URL | |
| webhook_events | No | Events to trigger webhook on (smart mode) | |
| request_headers | No | Request headers (optional) | |
| webhook_doctype | Yes | Target DocType | |
| request_structure | No | Request structure (Form URL-Encoded/JSON, optional) |