Live Chat webhook information for integration providers

This reference is for the developer or integration provider connecting another system to Live Chat. For the customer setup steps, see how to connect Live Chat to another system using webhooks.

What can be sent

  • conversation_started: Sent when a new chat is created.
  • new_message: Sent for public visitor, greeting-flow and team messages. Internal-only messages are excluded.
  • conversation_updated: Sent when saved chat details, the linked customer or visitor feedback changes.
  • conversation_ended: Sent when a chat ends.
  • lead: Sent when a team member uses the !lead command to trigger a lead event.

Information for your integration provider

Give these details to the person connecting Live Chat to your other system.

  • application/json: The format used to send the data. The receiving system should read the request body as JSON to find the event and its details.
  • POST: The HTTP request method Live Chat uses to send an event to your receiving address.
  • meta_fields: The saved details included with the chat, such as a customer number or the service required. For conversation_started, conversation_updated, conversation_ended and lead, this object is at the top level of the request body.
  • conversation.meta_fields: The location of saved chat details in a new_message event. Read the meta_fields object inside conversation for these events.
  • UTC: The timezone used for event dates and times. Convert these to your local timezone when displaying them.
  • X-ChatBox-Secret: The request header containing your configured webhook code. The receiving system should compare it with its securely stored copy and reject requests if the code is missing or incorrect.
  • hash_equals(): A PHP function your developer can use to compare the webhook codes securely. Developers using another language should use its equivalent constant-time comparison function.
  • key: The identifier for the Live Chat product sending the event. It is not a secret and must not replace the webhook-code check.

Receiving and processing events

  • Successful response: Accept and safely record the event, then return a successful HTTP response promptly. Longer processing can happen afterwards.
  • Failed delivery: Live Chat attempts each delivery once and does not currently queue or retry it. If the receiving system is unavailable, the event will not automatically be sent again.
  • Internal-only messages: Internal messages, such as field-update commands, are excluded from message events.

For more about saved chat details, see how to populate chat fields from your website or an integration.