create_webhook
Subscribe an HTTPS endpoint to Commish events for real-time POST notifications and save the returned whsec_ signing secret immediately to verify payload HMAC signatures.
Instructions
Create a new webhook subscription to receive real-time POST notifications when events occur in Commish. On success, returns the webhook record including a one-time signing secret (secret field, starts with 'whsec_') — save this immediately as it cannot be retrieved again. Use this secret to verify the HMAC signature of incoming webhook payloads. Use when integrating Commish with Slack, Zapier, a CRM, or a custom backend.
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>",
"events": "<events>"
},
"name": "create_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The HTTPS endpoint URL that will receive POST requests when events occur. Must be publicly accessible and return a 2xx response. | |
| events | Yes | Array of event types to subscribe to. Available events: 'deal.created' (new deal logged), 'deal.approved' (deal approved by admin), 'deal.rejected' (deal rejected), 'commission.calculated' (commission computed after deal approval), 'spiff.completed' (SPIFF program ended and payouts finalized). Invalid event types are silently filtered out. |