Skip to main content

Webhook Integration

Overview

Whoxa CRM uses webhooks in two directions:

DirectionDescription
Inbound (Meta → Whoxa)Meta sends all WhatsApp events (messages, status updates) to your API server
Outbound (Whoxa → Your System)Whoxa sends events to your e-commerce or third-party system

Inbound Webhooks (Meta → Whoxa CRM)

These endpoints are public — Meta calls them directly. Security is verified via the webhook verify token and Meta request signature.

Verification Flow

When you register a webhook URL in Meta, Meta sends a one-time verification request. The server checks that the verify token matches the stored token for the WABA, then responds with the challenge. Meta marks the webhook as verified.

Inbound Event Processing Flow

When Meta sends a message event, the server:

  1. Identifies the WhatsApp account by phone number ID.
  2. Creates or updates the conversation and saves the message.
  3. Downloads any media attachments.
  4. Checks for an active automation session — resumes if one exists, or starts a new flow if the trigger matches.
  5. If no automation matches, falls back to default messages (welcome, out-of-hours, or delayed reply).
  6. Pushes a real-time update to all connected agents instantly.

Supported Inbound Message Types

TypeDescription
TextPlain text message
ImageImage file
VideoVideo file
AudioAudio/voice note
DocumentPDF or document
StickerWhatsApp sticker
LocationGPS coordinates
ContactsShared contact card
InteractiveButton reply or list reply
ButtonQuick reply button tap
OrderProduct order from catalog
ReactionEmoji reaction to a message

Message Status Updates

Meta also sends delivery and read receipts via the same webhook. Status flow: Sent → Delivered → Read → Failed


Outbound Webhooks (Whoxa → Your System)

Whoxa CRM can push events to your external system (e-commerce store, CRM, ERP) when specific WhatsApp events occur.

Configuration

Go to Settings → Webhooks → Manage Webhooks to:

  1. Add a webhook endpoint URL.
  2. Select which events to subscribe to.
  3. Save and test the connection.

Webhook Logs

Every outbound webhook delivery is logged with:

  • Timestamp
  • Payload sent
  • HTTP status received
  • Response body

View logs at Settings → Webhooks → Webhook Logs.

E-commerce Webhook

For e-commerce integrations (Shopify, WooCommerce, custom stores), Whoxa CRM provides a dedicated inbound webhook that receives order events from your store and can trigger automation flows or send order status messages to customers via WhatsApp.

Webhook Security

Outbound webhooks include a signature header so your server can verify the payload came from Whoxa CRM. Each delivery is signed using HMAC-SHA256 with your webhook secret.


Webhook Automation

Whoxa CRM also supports webhook-triggered automations. An incoming webhook payload can trigger a specific automation flow and pass variables from the payload into the flow execution.

Configure at Settings → Webhooks → Webhook Automation.