Skip to content
English - Australia
  • There are no suggestions because the search field is empty.

Webhook setup and payload reference

Short answer: Add your webhook URL in Admin > Integrations > Webhook and Enrola will send a message to it every time your agent or a lead sends an SMS. Each message includes the SMS, who sent it, and the lead's latest statuses, such as goal met, interest level and opt-outs, so you can log conversations, update outcomes and trigger alerts in your CRM.

Customers also ask:

  • How do we set up the webhook?
  • What fields does the webhook send?
  • How often does the webhook fire?
  • What format is the createdOn timestamp in?
  • Can the webhook include the product name and slug?
  • Can Enrola send the conversation outcome back to our CRM?

Set up your webhook

  1. In the Enrola Customer App, go to Admin > Integrations > Webhook (open Webhook).
  2. Enter your Webhook URL. This is the address in your CRM, automation tool (such as Zapier or Make) or own system that will receive the data.
  3. Optional: add a Custom Header (Header Name and Header Value) if your system needs one, for example to check that requests come from Enrola. See Securing your webhook.
  4. Select Save.
  5. Select Test to send a sample event to your URL.

When the webhook fires

Enrola sends an event every time an SMS is sent or received in a conversation. This includes:

  • your campaign's messages (the first message, Try Again and Re-Engage),
  • every reply from the lead,
  • every reply from the agent, and
  • the opt-out confirmation, if the lead replies STOP.

Each event is a POST request with Content-Type: application/json.

What the webhook sends

Each event has two top-level fields:

  • event: the type of event. There's currently one event, LEAD_TRANSCRIPT_MESSAGE. More may be added in future, so build your webhook to check this field.
  • payload: the details of the SMS and the lead.

Example

{
  "event": "LEAD_TRANSCRIPT_MESSAGE",
  "payload": {
    "leadId": "2c7878a4-59af-493e-bb85-bc683532f142",
    "leadCrmId": "crmId123",
    "leadPhone": "+61475111111",
    "leadEmail": "john.doe@example.com",
    "products": [
      {
        "name": "Certificate IV in Mental Health",
        "slug": "cert-iv-mental-health",
        "purchaseLink": "https://provider.edu.au/apply/12345"
      }
    ],
    "messageId": "2c2c62c7-5ad6-411d-9652-04167312e573",
    "replyToMessageId": "9d123d92-3f9a-4c0e-ba5c-2300bb776bef",
    "createdOn": "2026-08-13T05:53:31.686512Z",
    "sourcePhoneNumber": "+61475111111",
    "destinationPhoneNumber": "+61475333333",
    "direction": "INBOUND",
    "messageType": "INBOUND_LEAD",
    "phoneStatus": "CONFIRMED",
    "agentObjectiveStatus": "ENGAGED",
    "leadInterestClassification": "MEDIUM",
    "content": "I might be interested, but can you call me later?"
  }
}

Lead fields

  • leadId: the Enrola lead ID. Use it to look up or delete the lead with the Enrola API.
  • leadCrmId: the crmId you sent with the lead, if you sent one. The easiest way to match the event to the record in your CRM.

No CRM? If you're sending leads without a CRM, try putting the lead's full name in the crmId field. It comes back to you as leadCrmId on every event, so it's easy to see who each message is from.

  • leadPhone: the lead's mobile number.
  • leadEmail: the lead's email address, if you sent one.
  • products: the products the lead is interested in, each with name, slug and purchaseLink. This is a list: it may be empty or have more than one product, in the same order you sent them. Match products to your own catalogue using slug.

Message fields

  • messageId: a unique ID for this SMS.
  • replyToMessageId: the ID of the SMS this one replies to, if any.
  • createdOn: when the SMS was sent or received, as an ISO 8601 date and time, for example 2026-08-13T05:53:31.686512Z. Use a date parser that reads ISO 8601, including the time zone.
  • sourcePhoneNumber: the number that sent the SMS.
  • destinationPhoneNumber: the number that received the SMS.
  • direction: INBOUND (sent by the lead) or OUTBOUND (sent by Enrola).
  • messageType: what kind of SMS it is, for example the first message, a Try Again, or an agent reply.
  • content: the text of the SMS.

Status fields

These show where the lead is at as of this SMS:

  • phoneStatus: whether the number is confirmed, failed or opted out.
  • agentObjectiveStatus: whether the conversation has started, the lead has engaged, or the goal is met.
  • leadInterestClassification: how interested the lead is.

For every value and what it means, see Lead and agent status glossary.

What you can do with it

  • Log conversations in your CRM. Create a note or activity on the contact for each event. See Getting transcripts into your CRM.
  • Alert your team when a lead is ready. Filter for agentObjectiveStatus = GOAL_MET. See Goal met and handover notifications.
  • Prioritise leads. Use agentObjectiveStatus and leadInterestClassification together, for example ENGAGED and HIGH.
  • Keep opt-outs in sync. Update the contact's subscription status when phoneStatus is STOP. See How opt-outs work.

Good to know

  • One webhook URL per account. To send events to more than one place, point the webhook at an automation tool such as Zapier or Make and pass the events on from there.
  • Failed deliveries aren't resent. If your endpoint is down when an event is sent, that event isn't sent again. To catch up, use the Enrola API to get the lead, which includes the full conversation transcript. See Finding your API keys and API documentation.
  • Every SMS fires an event, including a first message that fails to deliver (phoneStatus = FAILED).
  • Full documentation is on the Webhook page itself, under Webhook Documentation.
  • Statuses are repeated on every event. You don't need to wait for a special event: check the status fields on each one.
  • Need a hand? Contact support@getenrola.com.

Related articles