Skip to main content
v1 Subscribe to conversation updates to learn when a conversation in your workspace is created or changes: its status, its participants, a release, a reopen or a recreation. Each event uses the common envelope, and its payload carries the conversation as it is after the change. The payload identifies participants by id only. Use the REST Integrations API to read their details.

Event types


Envelope


Payload

Fields without a value are left out of the payload. No other conversation attribute is ever sent.

Lifecycle

When several transitions apply to the same change, lifecycle carries one of them, in this order: released, reopened, recreated.

When an event is sent

  • Only conversations with external participants emit events: types ONE_EXTERNAL, MANY_EXTERNAL and OUTBOUND_ONLY, plus the status change of a hard release. Conversations among Bridge Users only never emit.
  • A conversation.updated with no changedFields and no lifecycle is not sent. A change to an attribute the payload does not carry produces no event.
  • Releasing a conversation that has external participants produces two conversation.updated events: the participants change, then the released transition.
  • Recreating a conversation produces conversation.created for the new conversation, a conversation.updated with lifecycle recreated on the old one, and a conversation.updated on the new one.
  • A handoff to a Bridge User shows as status going from NOT_ASSIGNED_TO_HUMAN to ACTIVE, with the Bridge User in participantsDelta.added.internals.

Ordering

Delivery may be duplicated or out of order. sequence orders events of one conversation only; do not compare it across conversations.
  • Apply a conversation.updated only if its sequence is greater than the last one you stored for that conversation.
  • Compare sequence as a big integer or as a zero-padded string, never as a floating-point number.
  • Treat an update for a conversation you have not seen yet as an insert. Conversations that existed before you subscribed appear on their first change.

Examples