Webhooks and callbacks
Voice (Retell)
2 endpoints.
/api/v1/voice/retell/eventsRetell Call Events
Retell call-lifecycle webhook: every ended/analyzed call becomes a contact + call record (see ingest.py for the notification posture).
``call_ended`` writes the base record; ``call_analyzed`` upserts the summary and the post-call capture onto the same row (idempotent by provider call id). The capture is the post-call analysis (``call_analysis.custom_analysis_data`` — whole-transcript extraction), only present on ``call_analyzed``. Always 200 — Retell retries 5xxs and duplicates are wasted work.
Authentication
x-retell-signature header.
Responses
200Successful Responseapplication/jsonobject400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/voice/retell/inboundRetell Inbound Webhook
Resolve dialed number → business, stamped on the call as its metadata.
Authentication
x-retell-signature header.
Request bodyrequired
application/jsonInboundWebhookRequest| Field | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eventrequired | string | ||||||||||||||||
call_inbound | InboundCallPayload | null | InboundCallPayload fields
|
Responses
200Successful Responseapplication/jsonInboundWebhookResponse| Field | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
call_inbound | InboundCallResponse | default {}InboundCallResponse fields
|
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.