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.
| Field | Type | What it is |
|---|---|---|
| idrequired | string | Event id. The same on every retry: use it to skip duplicates.pattern ^evt_[0-9A-HJKMNP-TV-Z]{26}$ |
| typerequired | string | Event type.always conversation.window.expiring |
| versionrequired | string | Payload version.always 1 |
| api_versionrequired | string | The endpoint's API version. |
| occurred_atrequired | string | When it happened.date-time |
| company_idrequired | integer | Your workspace id. |
| datarequired | object | |
| idrequired | integer | Conversation id. |
| company_idrequired | integer | Workspace id. |
| contact | object or null | The contact. |
| idrequired | integer | Id. |
| namerequired | string or null | Name. |
| channel | object or null | The channel. |
| idrequired | integer | Id. |
| namerequired | string or null | Name. |
| assigned_staff | object or null | Assigned staff member. |
| idrequired | integer | Id. |
| namerequired | string or null | Name. |
| assigned_team | object or null | Assigned team. |
| idrequired | integer | Id. |
| namerequired | string or null | Name. |
| closed_reason | object or null | The close reason; null while open. |
| idrequired | integer | Id. |
| namerequired | string or null | Name. |
| assigned_at | string or null | ISO 8601. |
| created_at | string or null | ISO 8601. |
| windowrequired | object | |
| expires_atrequired | string or null | When the window closes, ISO 8601. |
| kindrequired | string or null | Which window: service (WhatsApp, 24 hours), standard (Messenger and Instagram, 24 hours) or tiktok (48 hours); null when unknown.one of: service, standard, tiktok |
| minutes_leftrequired | integer | Minutes until it closes.0–∞ |
| lead_minutesrequired | integer | The lead time this event is sent at, in minutes (a server setting, 60).1–∞ |
| awaiting_replyrequired | boolean | True when the customer's last message has no reply yet. |
| last_customer_message_at | string or null | The customer's last message, ISO 8601. |
| actor | object or null | Who did it, when it can be attributed; absent otherwise. |
| id | integer or null | Id; null for the system. |
| name | string or null | Name. |
| typerequired | string | staff, system, bot or contact.one of: staff, system, bot, contact |
| origin | string or null | ai_agent when an AI agent made the change. |
| agent_id | string or null | The 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 itWebhook-Id(alsoWebhook-Event-Id): the event id, the same on every retry — skip ones you have handledWebhook-Delivery-Id: this delivery attempt, new on every try