WatificationDocs

Webhook events

Choose which event types an endpoint receives, and see the payload for each one.

Each webhook endpoint receives the event types you choose when you create it, or change them later under Events in Developers > Webhooks. Delivery, signatures, and retries are the same for every type. Verify signatures and deduplicate events as described in Webhooks.

Subscriptions

  • New endpoints must subscribe to at least one event type.
  • Existing endpoints that were created before event selection existed keep the original set: message.sent, message.failed, and the cod.* order events. The dashboard shows them as All message and order events (legacy). Select Choose events to switch them to an explicit list.
  • The endpoint list shows how many event types each endpoint subscribes to.
  • Conversation and contact events are opt-in. They are never sent to an endpoint on the legacy set; the endpoint must select them.
  • The message events message.received, message.outgoing, message.delivered, and message.read are opt-in too. Select them explicitly.
  • Each endpoint gets one delivery per matching event. The delivery uses the source event id, so a retry does not create a second delivery for the same endpoint.
  • Send test event always sends a ping, whatever the subscription.

Zapier and Make hooks receive the same events and signatures, but they are created through the API and do not appear in this list. See Zapier and Make.

Event types

Want a ready example? Use Examples.

TypeGroupSent when
message.sentMessagesAn OTP or API-sent message first reaches sent, delivered, read, or played.
message.failedMessagesAn OTP or API-sent message first reaches failed.
message.receivedMessagesA customer sends an inbound message on any channel. Opt-in.
message.outgoingMessagesAn agent, workflow, AI agent, or campaign sends a message. Opt-in.
message.deliveredMessagesAn API-sent message (OTP or the send route) is delivered. Opt-in.
message.readMessagesAn API-sent message (OTP or the send route) is read. Opt-in.
cod.confirmedOrder confirmationsThe customer confirms an order.
cod.cancelledOrder confirmationsThe customer cancels an order.
cod.reschedule_requestedOrder confirmationsA reschedule answer completes.
cod.no_responseOrder confirmationsThe initial confirmation-answer deadline passes.
cod.failedOrder confirmationsA confirmation or reminder fails while waiting for an answer.
cod.refusal_confirmedOrder confirmationsThe refusal reason or note step completes.
cod.refusal_deniedOrder confirmationsThe customer says they did not refuse delivery.
cod.refusal_no_responseOrder confirmationsThe initial refusal-answer deadline passes.
cod.refusal_failedOrder confirmationsA refusal message fails while waiting for an answer.
question.answeredQuestionsThe customer taps one of the buttons. Opt-in.
question.expiredQuestionsNo tap before expiresAt. Opt-in.
question.failedQuestionsThe question could not be sent. Opt-in.
conversation.openedConversationsA conversation is created.
conversation.assignedConversationsA conversation is assigned to a member or a team.
conversation.closedConversationsA conversation status changes to resolved or closed.
call.endedCallsA call ends. status is answered, missed, no_answer or failed. Opt-in.
contact.createdContactsA contact is created.
contact.updatedContactsA core field or a custom field of a contact changes.
contact.label_addedContactsA label is applied to a contact.
contact.label_removedContactsA label is removed from a contact. Opt-in.
contact.lifecycle_changedContactsA contact's lifecycle stage changes.
deal.createdDealsA deal is created. Opt-in.
deal.stage_changedDealsA deal moves to another stage. Opt-in.
deal.wonDealsA deal moves to a Won stage. Sent after deal.stage_changed. Opt-in.
deal.lostDealsA deal moves to a Lost stage. Sent after deal.stage_changed. Opt-in.
pingTestYou choose Send test event in the dashboard.

The cod.* payloads share one shape. They are described with examples in Webhooks. Message and COD payloads also carry data.occurredAt.

The payloads below use the same envelope as every event: id is the event UUID, type is the event type, createdAt is when Watification created the event, and data holds the event fields. Conversation and contact payloads are snapshots taken when the event is created. They are not a list of changes, so use the values in data to update your copy.

Message events

message.failed
{
  "id": "44444444-4444-4444-8444-444444444445",
  "type": "message.failed",
  "createdAt": "2026-10-09T10:00:09.000Z",
  "data": {
    "messageId": "22222222-2222-4222-8222-222222222223",
    "reference": "login-example-003",
    "to": "+15555550124",
    "senderId": "11111111-1111-4111-8111-111111111111",
    "status": "failed",
    "occurredAt": "2026-10-09T10:00:08.000Z",
    "failure": null
  }
}

message.sent has the same fields with status set to the reported status. failure is null or an object with code and message. The supplied OTP code is never included.

A message sent through the send route (POST /api/v1/messages) uses a different shape: messageId, conversationId, contactId, status, occurredAt, and failure instead of reference, to, and senderId. message.failed, message.delivered, and message.read use that shape for these messages too.

message.delivered and message.read use the same data fields as message.sent, with status set to delivered or read. They cover only messages sent through the API: OTP and the send route. Each fires at most once per message.

Customer and agent message events

message.received and message.outgoing carry a message object, a contact snapshot, and a conversation snapshot. message.received also has replyWindow. Its open value is true while the 24-hour reply window is open, and expiresAt is when it closes. For channels with no reply window, expiresAt is null.

message.outgoing does not fire for messages that the API itself sent. Track those with message.sent, message.delivered, and message.read.

Message text is included in the payload. A media object, when present, has url, expiresAt, mimeType, filename, and sizeBytes. The media link expires after 24 hours, so download the file soon after you receive the event.

message.received
{
  "id": "evt_example",
  "type": "message.received",
  "createdAt": "2026-10-01T09:00:00.000Z",
  "data": {
    "message": {
      "id": "msg_example",
      "conversationId": "conv_example",
      "channelConnectionId": "conn_example",
      "channelType": "whatsapp",
      "direction": "inbound",
      "origin": null,
      "type": "text",
      "text": "Hello, is my order on the way?",
      "media": null,
      "location": null,
      "interactiveReply": null,
      "replyToMessageId": null,
      "occurredAt": "2026-10-01T09:00:00.000Z"
    },
    "contact": {
      "id": "contact_example",
      "name": "Sample contact",
      "phone": "+15555550100",
      "email": null,
      "lifecycleStage": { "id": "stage_example", "name": "Customer" },
      "labels": [{ "id": "label_example", "name": "Sample label" }],
      "fields": { "city": "Cairo" }
    },
    "conversation": {
      "id": "conv_example",
      "status": "open",
      "channelType": "whatsapp",
      "assigneeMembershipId": null,
      "teamId": null
    },
    "replyWindow": { "open": true, "expiresAt": "2026-10-02T09:00:00.000Z" }
  }
}
message.outgoing
{
  "id": "evt_example",
  "type": "message.outgoing",
  "createdAt": "2026-10-01T09:05:00.000Z",
  "data": {
    "message": {
      "id": "msg_example",
      "conversationId": "conv_example",
      "channelConnectionId": "conn_example",
      "channelType": "whatsapp",
      "direction": "outbound",
      "origin": "business_app",
      "type": "text",
      "text": "Your order is on the way.",
      "media": null,
      "location": null,
      "interactiveReply": null,
      "replyToMessageId": null,
      "occurredAt": "2026-10-01T09:05:00.000Z"
    },
    "contact": {
      "id": "contact_example",
      "name": "Sample contact",
      "phone": "+15555550100",
      "email": null,
      "lifecycleStage": { "id": "stage_example", "name": "Customer" },
      "labels": [{ "id": "label_example", "name": "Sample label" }],
      "fields": { "city": "Cairo" }
    },
    "conversation": {
      "id": "conv_example",
      "status": "open",
      "channelType": "whatsapp",
      "assigneeMembershipId": null,
      "teamId": null
    }
  }
}
contact.label_removed
{
  "id": "evt_example",
  "type": "contact.label_removed",
  "createdAt": "2026-10-01T09:00:00.000Z",
  "data": {
    "contact": {
      "id": "contact_example",
      "name": "Sample contact",
      "phone": "+15555550100",
      "email": null,
      "lifecycleStage": { "id": "stage_example", "name": "Customer" },
      "labels": [],
      "fields": { "city": "Cairo" }
    },
    "label": { "id": "label_example", "name": "Sample label" }
  }
}

Conversation events

conversation.opened
{
  "id": "99999999-9999-4999-8999-999999999991",
  "type": "conversation.opened",
  "createdAt": "2026-10-17T09:30:00.000Z",
  "data": {
    "conversation": {
      "id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
      "status": "open",
      "channelType": "whatsapp",
      "assigneeMembershipId": null,
      "teamId": null
    }
  }
}
conversation.assigned
{
  "id": "99999999-9999-4999-8999-999999999992",
  "type": "conversation.assigned",
  "createdAt": "2026-10-17T09:35:00.000Z",
  "data": {
    "conversation": {
      "id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
      "status": "open",
      "channelType": "whatsapp",
      "assigneeMembershipId": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
      "teamId": null
    }
  }
}
conversation.closed
{
  "id": "99999999-9999-4999-8999-999999999993",
  "type": "conversation.closed",
  "createdAt": "2026-10-17T10:15:00.000Z",
  "data": {
    "conversation": {
      "id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
      "status": "resolved",
      "channelType": "whatsapp",
      "assigneeMembershipId": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
      "teamId": null
    }
  }
}

assigneeMembershipId and teamId are null when nobody or no team is assigned. channelType is the channel the conversation belongs to.

call.ended
{
  "id": "99999999-9999-4999-8999-999999999994",
  "type": "call.ended",
  "createdAt": "2026-11-07T10:20:00.000Z",
  "data": {
    "callId": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
    "conversationId": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
    "contactId": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
    "channelType": "whatsapp",
    "direction": "inbound",
    "status": "missed",
    "durationSeconds": null
  }
}

durationSeconds is null unless the call was answered.

Deal events

deal.created, deal.stage_changed, deal.won and deal.lost describe a deal in the pipeline. Moving a deal into a Won or Lost stage sends two events: deal.stage_changed and then deal.won or deal.lost. Each has its own event id.

valueMinor is the deal value in minor units of currency, so 150000 with EGP means 1,500.00 EGP. expectedCloseDate is YYYY-MM-DD or null. ownerMembershipId is null when nobody owns the deal. Deal titles, notes and lost reasons are not sent in these events.

deal.stage_changed
{
  "id": "99999999-9999-4999-8999-999999999995",
  "type": "deal.stage_changed",
  "createdAt": "2026-11-10T09:15:00.000Z",
  "data": {
    "deal": {
      "id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd",
      "title": "Spring order",
      "valueMinor": 150000,
      "currency": "EGP",
      "pipeline": {
        "id": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
        "name": "Sales"
      },
      "stage": {
        "id": "ffffffff-ffff-4fff-8fff-ffffffffffff",
        "name": "Negotiation",
        "kind": "open"
      },
      "contact": {
        "id": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
        "name": "Sample contact",
        "phone": "+15555550100",
        "email": null
      },
      "ownerMembershipId": null,
      "expectedCloseDate": null
    },
    "fromStage": { "id": "11111111-1111-4111-8111-111111111111", "name": "New" }
  }
}

fromStage is present only on deal.stage_changed. deal.created, deal.won and deal.lost carry deal alone. stage.kind is open, won or lost. The deal object is read when the event is delivered, so it shows the stage the deal is in at that moment. fromStage.name is null when that stage was deleted later.

Contact events

A contact snapshot has this shape:

contact snapshot
{
  "id": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
  "name": "Sara Example",
  "phone": "+15555550123",
  "email": null,
  "lifecycleStage": {
    "id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd",
    "name": "Customer"
  },
  "labels": [{ "id": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee", "name": "VIP" }],
  "fields": { "city": "Cairo", "order_value": "250" }
}

lifecycleStage is null when the contact has no stage. fields maps each custom field key to its value.

contact.created
{
  "id": "99999999-9999-4999-8999-999999999994",
  "type": "contact.created",
  "createdAt": "2026-10-17T11:00:00.000Z",
  "data": {
    "contact": {
      "id": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
      "name": "Sara Example",
      "phone": "+15555550123",
      "email": null,
      "lifecycleStage": null,
      "labels": [],
      "fields": {}
    }
  }
}
contact.updated
{
  "id": "99999999-9999-4999-8999-999999999995",
  "type": "contact.updated",
  "createdAt": "2026-10-17T11:05:00.000Z",
  "data": {
    "contact": {
      "id": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
      "name": "Sara Example",
      "phone": "+15555550123",
      "email": "sara@example.com",
      "lifecycleStage": null,
      "labels": [],
      "fields": { "city": "Alexandria" }
    }
  }
}
contact.label_added
{
  "id": "99999999-9999-4999-8999-999999999996",
  "type": "contact.label_added",
  "createdAt": "2026-10-17T11:10:00.000Z",
  "data": {
    "contact": {
      "id": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
      "name": "Sara Example",
      "phone": "+15555550123",
      "email": null,
      "lifecycleStage": null,
      "labels": [
        { "id": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee", "name": "VIP" }
      ],
      "fields": {}
    },
    "label": { "id": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee", "name": "VIP" }
  }
}
contact.lifecycle_changed
{
  "id": "99999999-9999-4999-8999-999999999997",
  "type": "contact.lifecycle_changed",
  "createdAt": "2026-10-17T11:20:00.000Z",
  "data": {
    "contact": {
      "id": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
      "name": "Sara Example",
      "phone": "+15555550123",
      "email": null,
      "lifecycleStage": {
        "id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd",
        "name": "Customer"
      },
      "labels": [],
      "fields": {}
    },
    "lifecycle": {
      "from": null,
      "to": { "id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd", "name": "Customer" }
    }
  }
}

lifecycle.from and lifecycle.to each hold a lifecycle stage ({ id, name }) or null. from is null when the contact had no stage before.

Question events

The question.* events carry the same body as GET /api/v1/questions/{questionId}. answer is set only on question.answered, and failure is set only on question.failed. See Ask a question.

question.answered
{
  "id": "5a1f0c9e-3b7d-4e2a-9c61-2d8f4b7a1e90",
  "type": "question.answered",
  "createdAt": "2026-10-01T09:00:00.000Z",
  "data": {
    "questionId": "question_example",
    "reference": "login-8f3k2x",
    "status": "answered",
    "answer": { "index": 0, "title": "Yes" },
    "answeredAt": "2026-10-01T09:00:00.000Z",
    "expiresAt": "2026-10-01T09:05:00.000Z",
    "messageId": "msg_example",
    "conversationId": "conv_example",
    "contactId": "contact_example",
    "failure": null,
    "createdAt": "2026-10-01T09:00:00.000Z"
  }
}

Verify and process

Verify the signature over the raw body, respond with a 2xx status quickly, then process the event. Use the body id to skip events you already handled. Events can arrive more than once or out of order. For conversation and contact events, compare the createdAt values of events for the same record before you overwrite your copy.

Unknown event types should be acknowledged with 2xx and ignored, so that new types can be added later.

Retries

Failed deliveries are retried with the same schedule and auto-disable rule described in Retries, disabling, and replay. The last retry waits 12 hours, so the final attempt can come about 22 hours after the first. Use View deliveries on the endpoint to see each attempt. Replay is available for retained events.

On this page