REST API • Webhooks • Whitelabel Embedding

Developer-First WhatsApp API Without Building an Inbox From Scratch

Send WhatsApp template, text, and media messages via a clean REST API, verify real-time webhooks with HMAC-SHA256, trigger messages from Firestore, or embed a whitelabel WhatsApp inbox in your SaaS — half the message fee of Twilio.
Clean REST API (x-api-key) HMAC-SHA256 Webhooks Whitelabel Inbox Embed $0.0025/msg (50% Less Than Twilio)
curl -X POST "https://api.whatsbox.io/messages/template" \
  -H "Content-Type: application/json" \
  -H "x-api-key: sk.your_whatsbox_api_key" \
  -d '{
    "channel_id": "ch_support_main",
    "to": "+14155550192",
    "name": "Sarah Jenkins",
    "template_name": "order_shipped_update",
    "components": [
      {
        "type": "BODY",
        "parameters": [
          { "type": "text", "text": "Sarah" },
          { "type": "text", "text": "#WB-9821" }
        ]
      }
    ]
  }'
200 OK{ "id": "wamid.HBgL..." }Auth: x-api-key

Everything Engineers Need to Ship WhatsApp Fast

Clean JSON endpoints, signed webhooks, open-source embedding examples, and a full operations UI your non-technical teammates can use from day one.
Simple x-api-key Authentication
Create workspace API keys in Settings > API Keys, toggle keys Active/Paused without deleting integrations, rename keys by service, and revoke instantly when rotating secrets.
HMAC-SHA256 Signed Real-Time Webhooks
Subscribe per WhatsApp channel to message.incoming, message.outgoing.status_update, and message.smb_echo events — each signed with your Secret Token in the X-WhatsBox-Signature header.
Whitelabel Inbox Embedding for SaaS & Agencies
Embed the full WhatsBox inbox inside your own web application via /embedded and /embedded-login with URL parameters and postMessage events. Includes an open-source reference repository.
Explore
Firebase Firestore Extension
Building on Firebase? Install our open-source Firestore extension to send WhatsApp messages automatically whenever your app writes a document to a watched Firestore collection.
Explore
50% Lower Message Fee Than Twilio — Plus Full UI
Twilio charges $0.005/msg plus phone rental and gives you zero inbox UI (Twilio Flex costs $150/user/mo). WhatsBox charges $0.0025/msg with a complete Shared Inbox, Broadcasts, and AI Agents included.
Explore
Interactive OpenAPI Docs & Health Codes
Explore every request schema, try endpoints directly, and inspect exhaustive HTTP status codes at api.whatsbox.io/docs.
Explore

Core WhatsBox REST API Endpoints

Base URL: https://api.whatsbox.io — authenticated with your workspace x-api-key header.
MethodEndpointPurpose
POST/messages/templateSend approved Meta WhatsApp templates with dynamic header, body, and button variables.
POST/messages/textSend free-form session text replies inside an open 24-hour customer service window.
POST/messages/mediaSend images, videos, documents, and audio attachments programmatically.
GET/channelsList connected WhatsApp channels and retrieve channel_id values for messaging.
GET/templatesFetch synced WhatsApp templates and inspect parameter requirements.
POST/webhook-subscriptionsSubscribe to message.incoming, message.outgoing.status_update, and message.smb_echo.
GET/contact-listsQuery and manage contact lists and audience segments via API.
POST/auth/generate-auth-tokenGenerate short-lived authentication tokens for embedded whitelabel inbox sessions.

Go From API Key to Production in 3 Steps

Zero custom gateway hosting, zero Meta token refresh plumbing, and full dashboard observability.
01

Generate Your API Key

Connect your WhatsApp number in WhatsBox, open Settings > API Keys, create a key, and store the secret safely in your environment variables.

02

Send Your First Message

Call GET /channels to get your channel_id, then POST to /messages/template or /messages/text with your x-api-key header.

03

Subscribe to Webhooks or Embed Inbox

Configure a webhook endpoint for incoming messages, read receipts, and SMB echoes — or embed the WhatsBox inbox directly in your product.

Frequently Asked Questions

Answers for engineers integrating WhatsBox into apps, CRMs, and SaaS platforms.

Ship WhatsApp Integration Today — Not Next Quarter

Start free with $0 monthly base fees, $0.0025/message pay-per-use pricing, 0% Meta markup, and complete API + Shared Inbox infrastructure.