API Reference · v1
Send SMS, WhatsApp and email from your own platform
Every message on this page is a real endpoint of the ACBIZ Communications API - the same one powering every message sent from the dashboard. Authenticate with an API key, call an endpoint, and your platform's event becomes your customer's notification.
Quickstart
Every request is authenticated with an API key generated from Settings → Developer API inside your organization (log in if you already have an account). Send it as a bearer token:
A successful send returns the message's status immediately:
Authentication
Pass your key in either header - both are accepted on every /api/comm/* route:
Authorization: Bearer YOUR_API_KEYX-Api-Key: YOUR_API_KEY
A missing or revoked key returns 401. Each key carries its own scopes (what it's allowed to do) and rate limit (requests/minute), both set when you create the key.
Endpoints
General
/api/commno scope requiredAPI info and a list of every endpoint below, returned live from the server.
Wallet
/api/comm/walletwallet:readYour organization's current credit balance and alert thresholds.
SMS
/api/comm/smssms:sendSend a single SMS. Numbers are normalised to the 260 country code automatically.
/api/comm/sms/:idsms:sendLook up a previously sent message's delivery status by the id returned when it was sent.
/api/comm/emailemail:sendSend a single transactional email.
/api/comm/email/:idemail:sendLook up a previously sent email's delivery status.
/api/comm/whatsapp/templatewhatsapp:sendSend an approved WhatsApp template message - the only way to message a customer outside an active 24-hour conversation window, same as WhatsApp's own rules.
/api/comm/whatsapp/messagewhatsapp:sendSend a free-form WhatsApp reply. Only works inside an open 24-hour window (i.e. the customer messaged you recently) - otherwise send a template instead.
/api/comm/whatsapp/:idwhatsapp:sendLook up a previously sent WhatsApp message's delivery status.
/api/comm/whatsapp/conversationswhatsapp:readList inbound WhatsApp conversations, newest first. Supports ?limit= (max 100) and ?offset=.
/api/comm/whatsapp/conversations/:idwhatsapp:readA single conversation's full message thread, inbound and outbound, in order.
Scopes
Each API key is created with one or more scopes - it can only call endpoints its scopes allow. A key can also be given * for full access.
| Scope | Grants |
|---|---|
sms:send | Send SMS messages and check their status |
email:send | Send emails and check their status |
whatsapp:send | Send WhatsApp template and free-form messages |
whatsapp:read | Read the WhatsApp inbox (conversations and threads) |
wallet:read | Read the credit wallet balance |
Idempotency
Every send endpoint accepts an optional idempotency_key. Retry the same request with the same key and you'll get back the original message instead of sending a duplicate - the response includes "idempotent_replay": true when that happens. Useful when a request times out on your end and you're not sure if it actually sent.
Rate limits
Each API key has its own per-minute rate limit, set when the key is created. Going over it returns 429 with the limit in the error message.
Errors
Every error follows the same shape: {"success": false, "error": "...", "code": 123}.
| Code | Meaning |
|---|---|
| 401 | Missing, invalid or revoked API key |
| 402 | Not enough wallet credits to send this message |
| 403 | This key doesn't have the required scope |
| 404 | Message or conversation not found |
| 409 | WhatsApp 24-hour window is closed - send a template instead |
| 422 | Missing or invalid request field |
| 429 | Rate limit exceeded for this key |
| 502 | The gateway (SMS/email/WhatsApp provider) rejected the message |
Ready to connect your platform?
Create a free account, generate an API key from Settings → Developer API, and start sending.