Skip to main content

Webhook Events

A webhook sends an HTTP POST with a JSON body to your URL whenever one of the subscribed events happens in the account. Optionally it can be limited to specific inboxes.

Create a webhook with Add Webhook and choose its events in subscriptions. Every payload has event, which tells you what happened.

Settings:

SettingValue
URLYour webhook URL
MethodJSON via POST

Events​

Every kind of payload has its own page, with an example and every field explained:

SubscriptionSent whenInbox filter appliesPayload
conversation_createdA conversation is created.YesConversation Events
conversation_status_changedA conversation's status changes (Bot, Manual, snoozed or resolved).YesConversation Events
conversation_updatedA conversation changes — assignee, team, labels, custom attributes, priority, … Includes changed_attributes.YesConversation Events
message_created_customerThe contact sent a message (message_type incoming).YesMessage Events
message_created_agentAn agent or an API user sent a message.YesMessage Events
message_created_botAn agent bot sent a message.YesMessage Events
message_updatedA message changed — status, content, deletion, …YesMessage Events
csat_survey_submittedThe contact answered a CSAT survey.YesMessage Events
ticket_resolvedA ticket was closed (the conversation was resolved).YesTicket Resolved
webwidget_triggeredA visitor opened the website widget.YesNot described yet
form_link_generatedA form link was generated.Yes, when the link belongs to a conversationForm Events
form_submittedA contact submitted a form.Yes, when the submission belongs to a conversationForm Events
contact_createdA contact was created.No (account-wide)Contact Events
contact_updatedA contact changed. Includes changed_attributes.NoContact Events
contact_deletedA contact was deleted.NoContact Events
block_list.contact_blockedA contact was blocked.NoBlock-List Events
block_list.contact_unblockedA contact was unblocked.NoBlock-List Events
inbox_created, inbox_updatedAn inbox was created or changed.NoNot described yet
agent_status_changedAn agent's availability changed (online, busy or offline).NoAgent Status Changed
signing_link_updatedA Docal signing link changed status.NoNot described yet

When the inbox filter applies, the event is sent only if its inbox is in the webhook's inbox_ids, or inbox_ids is empty. Account-wide events are always sent.

The three message_created_* subscriptions all deliver a payload with "event": "message_created": subscribe to each source you need. message_created itself is not a valid subscription.

Delivery​

  • Online sends a POST to the webhook's url, with the headers Content-Type: application/json and Accept: application/json, and waits up to 5 seconds for your answer.
  • There are no retries and no signature header. Use a hard-to-guess URL (for example with a secret token in the path), answer quickly with a 2xx, and process the event asynchronously.
  • Every payload has event. Online also adds allow_unverified_ssl (true or false).
  • For API inboxes, the same conversation and message events are also sent to the inbox's own Webhook URL (set in the inbox settings), independently of the account webhooks.

Remarks​

  • The payloads of webwidget_triggered, inbox_created, inbox_updated and signing_link_updated are not described yet. Like every payload, they have event.
  • Some examples are shortened; each page says so.