Developer Platform

REST API & Signed Event Webhooks

Trigger WhatsApp messages, approved templates, and CRM contact updates from any backend using standard Bearer token authentication and rate-limited JSON endpoints.

Authentication

Pass your Sanctum API token from Dashboard -> API Info in the Authorization header (legacy ?token= parameter is also supported for backward compatibility). Tokens can be rotated anytime.

Authorization: Bearer YOUR_API_TOKEN

Available Endpoints

POST /api/wpbox/sendmessage
Send a text or interactive button message to a phone number
POST /api/wpbox/sendtemplatemessage
Send an approved Meta WhatsApp template with dynamic components
POST /api/wpbox/sendcampaigns
Trigger a pre-configured API Campaign with runtime JSON data
POST /api/wpbox/makeContact
Create or update a CRM contact with groups and custom fields
GET /api/wpbox/getTemplates
List all synced Meta WhatsApp templates for your workspace
GET /api/wpbox/getGroups
List contact groups (pass ?showContacts=yes to include members)
GET /api/wpbox/getCampaigns
List regular, bot, or API campaigns (?type=regular|bot|api)
GET /api/wpbox/getContacts
Retrieve all contacts scoped to your workspace

Signed Outbound Webhooks

Every outbound webhook configured in Commerce & Hub -> Webhooks & Audit Logs includes an HMAC-SHA256 signature header so your server can verify authenticity:

X-WhatsCRMX-Event: message.received
X-WhatsCRMX-Signature: sha256=<hmac_sha256(raw_body, subscription_secret)>