create_webhook
Set up webhooks to receive real-time notifications for MoySklad entity events (CREATE, UPDATE, DELETE, PROCESSED). Configure the callback URL, event action, and entity type to monitor.
Instructions
Register a new webhook for entity events (CREATE/UPDATE/DELETE/PROCESSED).
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>",
"action": "<action>",
"entityType": "<entityType>"
},
"name": "create_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Webhook callback URL (must be HTTPS) | |
| action | Yes | Which entity action triggers the webhook | |
| diffType | No | For UPDATE webhooks: NONE (default) or FIELDS to receive changed fields | |
| entityType | Yes | Entity type to watch, e.g. 'customerorder', 'product', 'demand', 'counterparty' |