Webhooks and APIOutbound

chat.deleted

Emitted when a chat is removed along with its contact

A thread goes away when its contact is removed - deleting a contact removes their threads and emits one chat.deleted per thread. There is no standalone "delete this thread" action, and the thread's messages do not each produce a message.*.deleted.

type: chat.deleted

Fired when a chat record is removed.

When it fires

  • A contact is removed, and Wexio removes each of their threads. You get one event per thread.

data shape

type Data = {
  chat: Pick<ChatPayload, "id" | "integrationId" | "channel">;
  deletedAt: string;  // ISO-8601 UTC
};

Only the slim identifying fields are included - by the time this event fires, the full record is gone. See ChatPayload slim variant.

Example envelope

{
  "id": "evt_c3d4e5f6-0a1b-2c3d-4e5f-6a7b8c9d0e1f",
  "type": "chat.deleted",
  "timestamp": "2026-04-24T14:10:00.000Z",
  "data": {
    "chat": {
      "id": "6804f4c2a6f9f35f6e66f1a1",
      "integrationId": "67f95b0126a4d1c9e3f0aa12",
      "channel": "WHATSAPP"
    },
    "deletedAt": "2026-04-24T14:10:00.000Z"
  },
  "meta": {
    "eventId": "evt_c3d4e5f6-0a1b-2c3d-4e5f-6a7b8c9d0e1f",
    "event": "chat.deleted",
    "occurredAt": "2026-04-24T14:10:00.000Z",
    "organisationId": "6640f3d5c8a0d7e8b7f20222",
    "connectionId": "6640f45ac8a0d7e8b7f2014a",
    "apiVersion": "2026-04-01",
    "attempt": 1
  }
}

Was this page helpful?

On this page