Webhooks
Real-time order notifications via webhooks
Webhooks allow your application to receive real-time notifications when events occur in the order management and shipping system. When an event is triggered, we send an HTTP POST request to your configured endpoint with detailed event information.
Quick Links
Order Events
- Getting Started - Complete setup guide with code examples
- Order Created - New order notifications
- Order Updated - Order modification notifications
- Order Deleted - Order deletion notifications
Shipment Events
- Shipment Created - Shipment creation notifications
- Shipment Updated - Shipment status updates
- Shipment Delivered - Delivery notifications
- Shipment Cancelled - Cancellation notifications
Conversation Events
- AI Agent Stopped - A conversation was handed to a person
- AI Agent Resumed - The AI took the conversation back
Message Events
- Message Received - A customer sent a message on any channel
- Button Tapped - A customer tapped Get Started, a menu item or a postback button
- Message Reaction - A customer reacted to a message
- Ad or Link Referral - A customer opened a conversation from an ad or link
- Message Seen - A customer saw a message you sent
Overview
What are Webhooks?
Webhooks are HTTP callbacks that notify your application when specific events occur. Instead of constantly polling our API for updates, webhooks push updates to your server in real-time.
Supported Events
Order Events
| Event | Description | Documentation |
|---|---|---|
order.created | Triggered when a new order is created | View → |
order.updated | Triggered when an order is modified | View → |
order.deleted | Triggered when an order is deleted | View → |
Shipment Events
| Event | Description | Documentation |
|---|---|---|
shipment.created | Triggered when a shipment is created | View → |
shipment.updated | Triggered when a shipment status is updated | View → |
shipment.delivered | Triggered when a shipment is delivered | View → |
shipment.cancelled | Triggered when a shipment is cancelled | View → |
Conversation Events
| Event | Description | Documentation |
|---|---|---|
conversation.bot_disabled | Triggered when the AI agent is switched off | View → |
conversation.bot_enabled | Triggered when the AI agent is switched back on | View → |
Message Events
| Event | Description | Documentation |
|---|---|---|
message.received | Triggered when a customer sends a message on any channel | View → |
message.sent | Triggered when a message is sent to a customer on any channel | View → |
message.created | Triggered when a customer sends a message through the Mobile Chat API only | View → |
message.postback | Triggered when a customer taps Get Started, a menu item or a postback button | View → |
message.reaction | Triggered when a customer reacts to a message, or removes a reaction | View → |
conversation.referral | Triggered when a customer opens a conversation from an ad or link without a message | View → |
message.read | Triggered when a customer sees a message you sent (a read receipt) | View → |
ticket.tagged | Triggered when a tag is added to a ticket by the tags API or a team member | View → |
conversation.tagged | Triggered when a team member adds a tag to a conversation | View → |
To reply on the same channel, use the Messaging API.
Event Details
Each event provides comprehensive data:
Order Events:
- ✅ Complete order data with all fields
- ✅ Customer information
- ✅ Order items and products
- ✅ Platform and metadata
- ✅ Timestamps and status
Shipment Events:
- ✅ Shipment tracking information
- ✅ Platform consignment details
- ✅ Associated order group data
- ✅ Customer shipping details
- ✅ Delivery status and timestamps
Message Events:
- ✅ One payload shape for Messenger, Instagram, WhatsApp, web chat, mobile and email
- ✅ Message text and attachments, with links to our copy of each file
- ✅ The IDs you need to reply through the Messaging API
- ✅ Whether the AI agent is answering the conversation
Click on any event above to see the complete payload structure, field descriptions, and code examples.
How It Works
- Configure - Set up your webhook endpoint URL in the dashboard
- Verify - We verify your endpoint during setup
- Receive - Get real-time notifications when events occur
- Process - Handle the webhook payload in your application
Key Features
- ✅ Real-time notifications - Instant updates when events occur
- ✅ Secure - HMAC-SHA256 signature verification
- ✅ Reliable - Failed message, button, reaction, referral, seen and AI agent on/off deliveries are retried automatically, up to 6 attempts over about 7½ hours. Order and shipment events are not retried yet; resend them from the webhook's logs
- ✅ Flexible - Choose which events to receive
- ✅ Complete data - Full order details in every webhook
Security
All webhook requests include an X-Webhook-Signature header containing an HMAC-SHA256 signature. You should verify this signature to ensure requests are legitimate.
const crypto = require('crypto');
function verifySignature(payload, signature, secret) {
const expectedSignature = crypto
.createHmac('sha256', secret)
.update(JSON.stringify(payload))
.digest('hex');
return crypto.timingSafeEqual(
Buffer.from(signature),
Buffer.from(expectedSignature),
);
}Getting Started
Ready to integrate webhooks? Follow our Getting Started Guide for step-by-step instructions.
You create webhooks, and copy each one's signing secret, on the Webhooks page.
Settings › Webhooks Open WebhooksRequirements
- HTTPS endpoint (HTTP not supported)
- Ability to return
200status within 30 seconds - HMAC-SHA256 signature verification
Quick Setup
- Create a webhook endpoint
- Register it in Settings › Webhooks
- Verify signatures
- Process events
Need Help?
- Check the Getting Started Guide for detailed setup instructions
- Review individual event documentation for payload details
- Contact support if you encounter issues
Best Practices
- ✅ Respond quickly (within 30 seconds)
- ✅ Always verify signatures
- ✅ Handle idempotency (same event may be sent multiple times)
- ✅ Use HTTPS endpoints only
- ✅ Process webhooks asynchronously
- ✅ Monitor webhook logs for failures