Elaris Docs / Webhooks

Webhooks

Webhook endpoints connect provider events to Elaris records and automations.

EndpointMethodPurposeProtection
/twilio/voicePOSTTwilio voice call entrypointTwilio signature
/twilio/statusPOSTTwilio call status updatesTwilio signature
/twilio/smsPOSTSMS reply handlingTwilio signature
/retell/webhookPOSTRetell call eventsRetell signature or secret
/api/meta/webhookGET/POSTMeta lead verification and lead eventsVerify token + signature
/api/email-automation/{emailLog}/replyPOSTn8n email reply callbackShared token
/api/leads/webhookPOSTn8n lead creation callbackShared token

Webhook practices

  • Always use HTTPS in production.
  • Save raw provider IDs for idempotent updates.
  • Log provider failures with status code and body.
  • Never trust client-provided ownership fields without server-side checks.

Example shared-token callback

curl -X POST https://app.elarissolutionsllc.com/api/leads/webhook \
  -H "Authorization: Bearer $LEADS_WEBHOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"Jane Customer","phone":"+15551234567","source":"n8n-gmail"}'