Webhooks
lead.opted_out
The lead’s number went on the Do Not Call list. opt_out.source says how: api, ai (the AI’s tool during the call), outcome (a DNC outcome), manual, bulk or sms (a STOP reply). One event per lead of yours with that number.
Sent when: POST /leads/{id}/opt_out, or the DNC endpoints; The AI took the number off the list on a call; A DNC outcome; Mark DNC, the DNC page or bulk DNC in the app; A STOP reply by text.
Besides the lead object’s fields, it carries:
| Field | Type | Notes |
|---|---|---|
opt_out |
object |
{ "id": "evt_leadoptedoutxxxxxxxxxxxx", "type": "lead.opted_out", "created": "2026-10-06T17:01:40Z", "livemode": true, "api_version": "2026-10-01", "data": { "object": { "id": "2b8e4c1d-9f3a-4b7e-8c21-6a5d4e3f2b10", "external_id": "crm-10442", "campaign_id": "7c1f2b9e-4a3d-4e8f-9b21-5d6a7e8f9a01", "name": "LEAD_NAME", "phone": "+15555550142", "email": "lead@example.com", "address": "1 Example Street, Springfield", "fields": { "roof_age": "12" }, "consent": { "source": "web_form", "agreed_at": "2026-10-06T16:58:02Z", "url": "https://example.com/quote" }, "lead_source": "Example CRM", "owner": null, "created": "2026-10-06T16:58:04.000Z", "updated": "2026-10-06T17:01:40.000Z", "status": "out_of_queue", "call_now": true, "place_in_line": null, "estimated_wait_seconds": null, "scheduled_for": null, "scheduled_reason": null, "held_reason": null, "callback_at": null, "late": false, "attempts": 0, "last_outcome": "dnc", "last_outcome_label": "DNC", "next_dial_at": null, "calls": [], "livemode": true, "opt_out": { "source": "ai", "at": "2026-10-06T17:01:40.000Z" } } }}Every event comes in the same envelope. See Events for the list, and Webhooks and signatures for checking the signature.