webhooks.subscribe
Register a webhook URL to receive real-time event notifications. Events are POST-ed as JSON with HMAC-SHA256 signature in X-Webhook-Signature header. Available events: lead_created, lead_updated, quote_created, quote_accepted, job_created, job_completed, invoice_sent, payment_received.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | HTTPS URL to receive webhook POST requests. Required. | |
| name | Yes | Human-readable name for this webhook (e.g. "My Agent Listener"). Required. | |
| events | Yes | Array of event types to subscribe to. Required. | |
| headers | No | Optional custom headers to include in webhook requests. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Webhook subscription ID | |
| events | No | Subscribed event types | |
| secret | No | HMAC-SHA256 signing secret. Store this — use it to verify webhook payloads. |