Skip to content
Developers

Webhook events

iChatUp posts eight business events to the one https address saved on its Integrations page: lead.created, lead.hot, booking.created, booking.cancelled, payment.receipt_received, conversation.needs_person, conversation.ai_needs_answer and message.not_delivered. Each is a JSON POST with the same envelope: an id, the event name, the time, the business, the customer and a data object.

更新于 2026年11月22日 · 由 Rahil · Markdown

要点一览

TransportHTTPS POST, JSON body
HeadersX-iChatUp-Event, X-iChatUp-Delivery, X-iChatUp-Signature
Expected answerAny 2xx within 10 seconds
RetriesThree attempts in total, a few minutes apart

The envelope

{
  "id": "6f1c2a9e-3b7d-4e21-9c55-0a8b1d2e3f40",
  "event": "lead.hot",
  "occurred_at": "2026-11-22T10:41:07+00:00",
  "business": {"id": 1234, "name": "Sunrise Dental"},
  "customer": {"name": "Asha Verma", "number": "+919876543210"},
  "data": {
    "message": "Can I book whitening this Saturday?",
    "interest": "Booking inquiry",
    "score": "85",
    "summary": "Wants teeth whitening, asked about Saturday.",
    "reply_link": "https://wa.me/919876543210",
    "chat_link": "https://ichatup.com/chats/919876543210",
    "teach_link": "https://ichatup.com/setup-assistant"
  }
}

id equals the X-iChatUp-Delivery header and stays the same on retries. Times are ISO 8601 in UTC.

What is in data, event by event

  • lead.created, lead.hot: message, interest, score, summary.
  • booking.created: service, date, time_slot, guests, amount, status, booking_ref, booking_link. Sent when a slot is held, so check status.
  • booking.cancelled: service, date, time_slot, reason, booking_ref, booking_link.
  • payment.receipt_received: amount, payment_app, payment_ref, booking_ref, note, booking_link. A receipt was read; the money still needs checking.
  • conversation.needs_person: message, reason.
  • conversation.ai_needs_answer: message, question.
  • message.not_delivered: reason, failed_link.

Most events also carry reply_link, chat_link and teach_link. Values are text and may be empty strings; amounts arrive already formatted with the account’s currency symbol.

Receiving well

  1. Answer 2xx quickly and do slow work afterwards.
  2. De-duplicate on id.
  3. Verify the signature before trusting the body; see verifying webhook signatures.
  4. Ignore event names you do not handle, so new ones cannot break you.

The test button on the Integrations page sends a lead.created with "test": true in data. Setup steps are on webhooks.

常见问题

Is every customer message sent as an event?

No. Only these eight business moments are sent, and the same moment is not sent twice.

Can I subscribe to only some events?

Every event goes to the one address; filter by the event field or the X-iChatUp-Event header on your side.

在您自己的号码上试试

两分钟完成连接,免费试用 7 天,无需信用卡。AI 员工会在顾客已经熟悉的 WhatsApp 号码上回复、预订并跟进。