Help Center

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.

ℹ️API access must be enabled for your workspace. If you do not see the API Credentials section under Settings → Advanced Settings, contact WBMSG support to enable API access for your account.

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.

  1. Sign in to your dashboard and go to Settings → Advanced Settings.
  2. In the API Credentials card, click Create credential.
  3. Enter a recognizable Name (for example, Production Backend).
  4. Optionally enter a Callback URL (HTTPS) for delivery status events and an Inbound URL (HTTPS) to forward incoming WhatsApp messages.
  5. Copy and store both the Auth ID and Auth Token immediately — for security, the Auth Token is shown only once when created or rotated.
⚠️Keep your Auth Token strictly server-side and never embed it in browser apps, mobile binaries, or public repositories. Use Rotate in Settings to issue a replacement token at any time, or Revoke to disable a key immediately.

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.

bashVerify credentials with cURL
curl -X GET "https://YOUR_API_HOST/v1/Account/YOUR_AUTH_ID/Message/?limit=5" \
  -u "YOUR_AUTH_ID:YOUR_AUTH_TOKEN"
javascriptNode.js Basic Auth request example
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.

Still need help with Developer API?
Start free with 500 monthly messages or message our team directly.