Skip to content
API PlatformDevelopers

Webhook events · sla

sla.warning/1

SLA warning. An unmet SLA clock passed its warning threshold (business-hours aware) before it was due. Sent once, and never after the metric is met or breached.

Payload

We POST this JSON to your endpoint. Answer any 2xx within 30 seconds. The same id arrives again on a retry — skip ones you have handled.

Payload fields
FieldTypeWhat it is
idrequiredstringEvent id. The same on every retry: use it to skip duplicates.pattern ^evt_[0-9A-HJKMNP-TV-Z]{26}$
typerequiredstringEvent type.always sla.warning
versionrequiredstringPayload version.always 1
api_versionrequiredstringThe endpoint's API version.
occurred_atrequiredstringWhen it happened.date-time
company_idrequiredintegerYour workspace id.
datarequiredobject
breach_idrequiredinteger or nullBreach id; null when there is no breach (warning, met).
episode_idrequiredintegerConversation episode id.
conversation_idrequiredintegerConversation id.
company_idrequiredintegerWorkspace id.
metricrequiredstringWhich clock: first_response, next_response or resolution.one of: first_response, next_response, resolution
due_atrequiredstringWhen it was due, ISO 8601.
sla_policyobject or nullThe SLA policy.
idrequiredintegerId.
namerequiredstring or nullName.
ownerobject or nullWho owed the clock.
idrequiredintegerId.
namerequiredstring or nullName.
teamobject or nullThe team.
idrequiredintegerId.
namerequiredstring or nullName.
channelobject or nullThe channel.
idrequiredintegerChannel id.
namestring or nullName.
typestring or nullChannel type, e.g. WHATSAPP.
contactobject or nullThe contact.
idrequiredintegerId.
namerequiredstring or nullName.
warning_atrequiredstring or nullISO 8601.
seconds_to_duerequiredinteger or nullBusiness-hours seconds left.
wall_seconds_to_duerequiredinteger or nullWall-clock seconds left.

Example

{
  "id": "evt_01J8Z7BZQ4F6G8J2K5N7Q9S1VC",
  "type": "sla.warning",
  "version": "1",
  "api_version": "2026-10-01",
  "occurred_at": "2026-09-24T09:20:00Z",
  "company_id": 7,
  "data": {
    "team": {
      "id": 21,
      "name": "Support Tier 1"
    },
    "owner": {
      "id": 311,
      "name": "Riya Support"
    },
    "due_at": "2026-06-06T10:00:00+00:00",
    "metric": "first_response",
    "channel": {
      "id": 5,
      "name": "Support WhatsApp",
      "type": "WHATSAPP"
    },
    "contact": {
      "id": 12345,
      "name": "Jane Doe"
    },
    "breach_id": null,
    "company_id": 7,
    "episode_id": 456,
    "sla_policy": {
      "id": 12,
      "name": "Standard SLA"
    },
    "warning_at": "2026-06-06T09:48:00+00:00",
    "seconds_to_due": 720,
    "conversation_id": 123,
    "wall_seconds_to_due": 720
  }
}

Headers

  • Webhook-Signature: t=…,v1=… — how to check it
  • Webhook-Id (also Webhook-Event-Id): the event id, the same on every retry — skip ones you have handled
  • Webhook-Delivery-Id: this delivery attempt, new on every try