Add an HTTPS endpoint below to start receiving events from this widget.
Allowed event types: conversation.started, conversation.ended, escalation.triggered, lead.captured
{
"event": "lead.captured",
"widget_id": "<your-widget-id>",
"data": {
"conversation_id": "ses_<id>",
"visitor_id": "vis_<id>",
"has_email": true,
"has_phone": false
}
}Each delivery includes an X-Alice-Signature header: HMAC-SHA256 of the raw body, prefixed v1=. Compare it to your server-side HMAC to verify authenticity.
curl -X POST https://your-endpoint.example.com/hooks/openalice \
-H 'content-type: application/json' \
-H 'x-openalice-signature: v1=<hmac-sha256 of the raw body with your signing secret>' \
-d '{"event":"lead.captured","widget_id":"<your-widget-id>","data":{"conversation_id":"ses_<id>","visitor_id":"vis_<id>","has_email":true,"has_phone":false}}'