Skip to content
API PlatformDevelopers

Webhook events · conversations

conversation.window.expiring/1

Conversation window expiring. An open conversation's messaging window closes within the lead time (`window.lead_minutes`, 60), so about 55–60 minutes before it expires. After it closes, only a template can reach the customer. Sent once per window; a new customer message rolls the window and arms a new one. Windows are 24 hours on WhatsApp, Messenger and Instagram, 48 hours on TikTok, and up to 72 hours from a free entry point (a Meta ad or page button). Web chat and closed or deleted conversations never send it. Carries the expiry, the minutes left and whether the customer is still waiting for a reply.

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 conversation.window.expiring
versionrequiredstringPayload version.always 1
api_versionrequiredstringThe endpoint's API version.
occurred_atrequiredstringWhen it happened.date-time
company_idrequiredintegerYour workspace id.
datarequiredobject
idrequiredintegerConversation id.
company_idrequiredintegerWorkspace id.
contactobject or nullThe contact.
idrequiredintegerId.
namerequiredstring or nullName.
channelobject or nullThe channel.
idrequiredintegerId.
namerequiredstring or nullName.
assigned_staffobject or nullAssigned staff member.
idrequiredintegerId.
namerequiredstring or nullName.
assigned_teamobject or nullAssigned team.
idrequiredintegerId.
namerequiredstring or nullName.
closed_reasonobject or nullThe close reason; null while open.
idrequiredintegerId.
namerequiredstring or nullName.
assigned_atstring or nullISO 8601.
created_atstring or nullISO 8601.
windowrequiredobject
expires_atrequiredstring or nullWhen the window closes, ISO 8601.
kindrequiredstring or nullWhich window: service (WhatsApp, 24 hours), standard (Messenger and Instagram, 24 hours) or tiktok (48 hours); null when unknown.one of: service, standard, tiktok
minutes_leftrequiredintegerMinutes until it closes.0–∞
lead_minutesrequiredintegerThe lead time this event is sent at, in minutes (a server setting, 60).1–∞
awaiting_replyrequiredbooleanTrue when the customer's last message has no reply yet.
last_customer_message_atstring or nullThe customer's last message, ISO 8601.
actorobject or nullWho did it, when it can be attributed; absent otherwise.
idinteger or nullId; null for the system.
namestring or nullName.
typerequiredstringstaff, system, bot or contact.one of: staff, system, bot, contact
originstring or nullai_agent when an AI agent made the change.
agent_idstring or nullThe AI agent id, with origin ai_agent.

Example

{
  "id": "evt_01J8Z7BZQ4F6G8J2K5N7Q9S1VC",
  "type": "conversation.window.expiring",
  "version": "1",
  "api_version": "2026-10-01",
  "occurred_at": "2026-09-24T09:20:00Z",
  "company_id": 42,
  "data": {
    "id": 98765,
    "window": {
      "kind": "service",
      "expires_at": "2026-05-02T11:02:00+00:00",
      "lead_minutes": 60,
      "minutes_left": 58
    },
    "channel": {
      "id": 7,
      "name": "WhatsApp"
    },
    "contact": {
      "id": 12345,
      "name": "Jane Doe"
    },
    "company_id": 42,
    "created_at": "2026-05-01T10:15:00+00:00",
    "assigned_at": "2026-05-01T10:20:00+00:00",
    "assigned_team": null,
    "closed_reason": null,
    "assigned_staff": {
      "id": 311,
      "name": "Riya Support"
    },
    "awaiting_reply": true,
    "last_customer_message_at": "2026-05-01T11:02:00+00:00"
  }
}

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