Webhooks Overview
Webhooks let your backend receive call events without polling. Configure webhook targets on an agent, then FormantAI sends an HTTP POST to your endpoint whenever a subscribed terminal event occurs.
How webhooks work
Select events
Subscribe the target to events such as call.completed, call.no_answer, and call.failed.
Event lifecycle
Endpoint requirements
- Use HTTPS in production.
- Accept
POSTrequests withContent-Type: application/json. - Return a
2xxresponse quickly. - Verify
X-FormantAI-Signaturebefore trusting the payload. - Deduplicate events using
event_id. - Queue expensive work instead of blocking the webhook response.
Recommended starting point
For most production integrations, subscribe to call.completed, call.no_answer, call.busy, call.failed, and call.unreachable. Add lower-level failure events when your operations team needs more debugging detail.