The Watzup API lets your own systems send approved WhatsApp templates to your customers, for example order confirmations, booking reminders or delivery updates, and list the templates you can send. It's included in the Enterprise plan.
The same documentation is inside the app under API Docs.
Base URL
https://app.watzup.se/api/v1Authentication
- In Watzup, go to API Keys and create a key. It looks like
wz_live_…and is shown only once, so store it safely. - Send it as a Bearer token in the
Authorizationheader of every request:
Authorization: Bearer wz_live_your_key_here- A missing or invalid key returns
401. - Keep keys on your server. Never put them in a website, browser code or a mobile app.
- Keys are stored hashed and can be revoked at any time under API Keys.
- If your subscription ends, existing keys stop working, and you create new ones after you choose a plan again.
Endpoints
GET /templates
Lists your approved templates and how many variables each one expects. A template published to several WhatsApp Business accounts appears once; its accounts array shows where it's live. To send, you only need the template name and language: Watzup picks the right account automatically.
Request:
curl https://app.watzup.se/api/v1/templates \
-H "Authorization: Bearer wz_live_your_key_here"Response 200 OK:
{
"data": [
{
"template": "order_update",
"language": "en_US",
"category": "UTILITY",
"variables": 2,
"variable_slots": { "body": 2, "header": 1, "buttons": 1 },
"accounts": [
{ "waba_id": "123456789012345", "name": "Your Company AB" }
]
}
]
}POST /messages/template
Sends one approved template to one recipient. The message appears in your Watzup inbox.
Body parameters:
Swipe sideways to see the whole table →
| Field | Type | Required | Description |
|---|---|---|---|
to |
string | Yes | Recipient: a phone in international format, e.g. +46701234567, or the WhatsApp user id of a customer who uses a WhatsApp username and hides their number, e.g. US.13491208655302741918 (shown on their conversation in Watzup). Use the phone when you have it. |
template |
string | Yes | The approved template name (from GET /templates). |
language |
string | Yes | The template's language code, e.g. en_US or sv. |
variables |
object or array | No | Body placeholders by number, {"1":"Jane","2":"#123"}, or a list in order, ["Jane","#123"]. Every placeholder the template uses needs a non-blank value; extra values are ignored. |
header_variables |
array | No | The text-header variable, if the template has one: ["Jane"]. |
button_variables |
array | No | Dynamic URL-button endings, in button order: ["order-12345"] for a button URL like https://shop.example/{{1}}. A fixed URL button needs nothing. |
Request:
curl -X POST https://app.watzup.se/api/v1/messages/template \
-H "Authorization: Bearer wz_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"to": "+46701234567",
"template": "order_update",
"language": "en_US",
"variables": { "1": "Jane", "2": "#12345" }
}'Response 201 Created:
{
"id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgAR",
"status": "sent",
"to": "+46701234567",
"template": "order_update"
}Errors
Errors return JSON with a message. Send failures also include Meta's raw error under meta_error.
Swipe sideways to see the whole table →
| Status | Meaning |
|---|---|
| 401 | Missing or invalid API key. |
| 402 | Your account is read-only because the trial or subscription has ended (code TRIAL_EXPIRED). Nothing is sent. |
| 403 | A Marketing template to a customer who opted out of marketing messages. Utility and Authentication templates are always sent. |
| 404 | No approved template with that name and language. |
| 422 | to isn't a valid phone number (code INVALID_RECIPIENT, for example a missing or extra digit; checked before sending, so nothing is sent) or a WhatsApp user id, a missing or blank variable (the message names it, for example Missing: {{2}}), no connected WhatsApp number, or Meta rejected the send (for example, an authentication template can't be sent to a user id). |
| 429 | Monthly message limit reached. Only on a plan with a message limit; standard plans have none. |
Before you go live
- Get your templates approved first. Create them under Message Templates (see Message templates and broadcasts, https://watzup.se/help/templates-broadcasts). Only approved templates can be sent.
- Add a payment method in Meta. Meta bills template messages directly to your WhatsApp Business account.
- Respect opt-ins. Only message customers who agreed to hear from you; complaints lower your number's quality and messaging limit.
- Messaging limits. A new number can start conversations with up to 250 unique customers per 24 hours until Meta raises it.
- Customers with a WhatsApp username. Some customers hide their phone number behind a WhatsApp username. Watzup then knows them by a WhatsApp user id instead, which you can pass as
to. Authentication templates can only go to a phone number. - Numbers not on WhatsApp. A valid number that doesn't use WhatsApp can't be caught up front: the API answers
sent, and Meta reports the message as failed shortly after. - Retry carefully. Retry
5xxand network errors with a delay. Don't retry401,402,403,404or422without fixing the request.
Calling your systems from a bot
The other direction works too: in the Flow Builder, the API / Webhook node (Enterprise) calls your own API during a conversation, for example to look up an order. It supports GET, POST, PUT, PATCH and DELETE, custom headers and a JSON body with {{variables}}. It saves part of the response to a variable using a dot path such as data.order.status, and branches on 2xx OK or Error (timeouts after 10 seconds). See the Flow Builder and node guide (https://watzup.se/help/flow-builder).
Need help?
WhatsApp us or email info@watzup.se with your request, the response and the time it happened. Never send your API key.