Skip to main content

Trigger selection

Use Integrating with Sela to choose between call-level, terminal, DNC, and reengagement updates. The full supported trigger enum is available in the Create a Webhook Subscription endpoint documentation.

Configuration

Webhooks created through the API send payloads in the format below. A subscription can include static string-valued HTTP headers, such as an API key or bearer token. Header values are encrypted at rest and are never returned by the API. Destination URLs must use https and resolve to a public internet host. Redirects are not followed, so a 3xx response counts as a failed delivery.
For security reasons, a subscription created through the API may start disabled (is_enabled: false) and will not fire until it is enabled. Editing or enabling a webhook also requires extra permissions. Contact support@trysela.com to have Sela staff enable your webhooks, or to grant your API user permission to edit and enable webhooks.
OAuth2 authentication is also supported, but its credentials must currently be configured and attached to the webhook by the Sela team. Contact support@trysela.com for OAuth2 or customized payload requirements.

Sample Payload

The exact fields depend on the trigger, lead configuration, and whether recent chat details are enabled.

Conditional Fields

last_chat is included only when the lead has a lead type and at least one completed call or SMS conversation. When present, it can also contain:
  • transcript: The full conversation transcript. Omitted unless the Sela team enables transcripts for the subscription.
  • messages: The ordered text messages of the conversation, each with id, index, role, text, and created_time. Sent only for SMS_COMPLETE and SMS_DNC.
  • recording_url: A shareable link to the call recording. Sent only for RECORDING_AVAILABLE.
  • warm_transfer: Details of the warm transfer, when the call included one.
  • sip_destination: The SIP address the call was transferred to, when the transfer used SIP.