Authentication & API Setup
Create API credentials, configure HTTP Basic authentication, and review API request guidelines.
The WBMSG REST API lets your backend systems send WhatsApp messages, check delivery statuses, submit and manage WhatsApp templates, and receive signed status and inbound webhooks.
Messages sent through the API automatically appear inside your WBMSG inbox conversations and message logs alongside agent replies so your team and systems always stay in sync.
Create API Credentials
Workspace administrators and authorized team members can manage up to 10 active API credentials per organization. Each credential provides a unique Auth ID and a one-time Auth Token, plus optional HTTPS webhook URLs.
- Sign in to your dashboard and go to Settings → Advanced Settings.
- In the API Credentials card, click Create credential.
- Enter a recognizable Name (for example, Production Backend).
- Optionally enter a Callback URL (HTTPS) for delivery status events and an Inbound URL (HTTPS) to forward incoming WhatsApp messages.
- Copy and store both the Auth ID and Auth Token immediately — for security, the Auth Token is shown only once when created or rotated.
API Base URL & HTTP Basic Auth
Your exact API base URL is shown inside the credential reveal dialog right after you create or rotate a key, following the path /v1/Account/{auth_id}/ on your workspace API host. Include Content-Type: application/json on POST requests.
Authenticate every request with HTTP Basic Auth, using your Auth ID as the username and your Auth Token as the password. Ensure the Auth ID in the URL matches the Basic username.
curl -X GET "https://YOUR_API_HOST/v1/Account/YOUR_AUTH_ID/Message/?limit=5" \
-u "YOUR_AUTH_ID:YOUR_AUTH_TOKEN"const authId = process.env.WBMSG_AUTH_ID;
const authToken = process.env.WBMSG_AUTH_TOKEN;
const basic = Buffer.from(`${authId}:${authToken}`).toString("base64");
const res = await fetch(`${process.env.WBMSG_API_BASE}/v1/Account/${authId}/Message/?limit=5`, {
headers: { Authorization: `Basic ${basic}` },
});
const data = await res.json();Rate Limits & Retries
WBMSG enforces per-credential API rate limits to protect deliverability and workspace stability. If your integration exceeds the allowed request window, the API responds with HTTP 429 (Too Many Requests) and includes a Retry-After header.
Design your integration to respect the Retry-After duration and use exponential backoff for transient 429 or 5xx responses.