Developer API
Send messages, receive webhooks and automate conversations with our REST API.
No card needed.
curl https:/ / api.whats.team/ v1/ messages \ -H "Token: $API_KEY" \ -H "Content-Type: application/ json" \ -d '{ "phone": "+447700900123", "message": "Order 1042 has shipped" }'{ "id": "6745b1f0c2a9e8d4f1a3b7c2", "phone": "+447700900123", "deliveryStatus": "queued"}The same call in Node.js, Python, PHP, cURL and Go. Put your key in API_KEY and run it.
const response = await fetch('https:/ / api.whats.team/ v1/ messages', { method: 'POST', headers: { Token: process.env.API_KEY, 'Content-Type': 'application/ json' }, body: JSON.stringify({ phone: '+447700900123', message: 'Order 1042 has shipped' })})if (!response.ok) throw new Error(await response.text())const { id } = await response.json()console.log(id)import osimport requestsresponse = requests.post( "https:/ / api.whats.team/ v1/ messages", headers={"Token": os.environ["API_KEY"]}, json={"phone": "+447700900123", "message": "Order 1042 has shipped"},)response.raise_for_status()print(response.json()["id"])<?php$ch = curl_init("https:/ / api.whats.team/ v1/ messages");curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ "Token: " . getenv("API_KEY"), "Content-Type: application/ json" ], CURLOPT_POSTFIELDS => json_encode([ "phone" => "+447700900123", "message" => "Order 1042 has shipped" ])]);$body = curl_exec($ch);if (curl_getinfo($ch, CURLINFO_HTTP_CODE) !== 201) { exit($body);}echo json_decode($body)->id;curl https:/ / api.whats.team/ v1/ messages \ -H "Token: $API_KEY" \ -H "Content-Type: application/ json" \ -d '{ "phone": "+447700900123", "message": "Order 1042 has shipped" }'package mainimport ( "bytes" "encoding/ json" "fmt" "net/ http" "os")func main() { body, _ := json.Marshal(map[string]string{ "phone": "+447700900123", "message": "Order 1042 has shipped", }) req, err := http.NewRequest(http.MethodPost, "https:/ / api.whats.team/ v1/ messages", bytes.NewReader(body)) if err != nil { panic(err) } req.Header.Set("Token", os.Getenv("API_KEY")) req.Header.Set("Content-Type", "application/ json") res, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer res.Body.Close() if res.StatusCode != http.StatusCreated { panic(res.Status) } var sent struct { ID string `json:"id"` } if err := json.NewDecoder(res.Body).Decode(&sent); err != nil { panic(err) } fmt.Println(sent.ID)}Get your key, send your first message and listen for what comes back.
Sign up and create your key in the dashboard. No card needed. Open your API keys (opens in a new tab)
export API_KEY="your-key"Use the REST API to send messages, files and templates, and to see whether each one was read.
{ "deliveryStatus": "read"}Get incoming messages and delivery updates in real time, on your own URL.
{ "event": "message:in:new", "data": { … }}JSON in and out, webhooks for what happens, and limits you can read.
Simple REST endpoints for WhatsApp Business: messages, templates, files, webhooks, campaigns and your team. JSON in, JSON out.
Notifications for incoming messages, delivery and read updates, reactions and your number’s status. If your server does not answer, we retry.
Ready-to-use examples for Node.js, Python, PHP, cURL and Go on this page, and each call in more than 15 languages in the reference.
Your API key goes in the Token header or as a Bearer token. Create one per integration and name it, so you know which is which.
Up to 3,000 requests a minute, and 500 a minute to send messages. Over the limit, a 429 tells you when to try again.
Send now or at a set time: add deliverAt to the message and it waits in the queue until then.
Connect WhatsApp to any workflow or application.
Order confirmations, shipping updates, abandoned cart reminders and customer support.
Connect your ticketing system, CRM or help desk, so conversations reach the place your team already works.
Reminders, confirmations and rescheduling from your calendar or booking system.
Critical alerts, verification codes, status updates and other transactional messages.
More than 100 endpoints cover messages, templates, files, webhooks, campaigns, your team and more. Most integrations start with these six.
Every request carries your API key, in the Token header or as Authorization:Â Bearer. A key opens your chats, messages and contacts, so keep it like a password.
In the dashboard, open Developers and create a new key. Owners and admins can create them.
Give each key the name of the integration that uses it, so you always know which is which.
Store it in an environment variable, never in your code or in a public repository.
POST / v1/ messages HTTP/ 1.1Host: api.whats.teamToken: your-keyContent-Type: application/ jsonThe API works on the same account as these features.
Up to 3,000 requests a minute across the API, and 500 a minute to send messages. Over the limit you get a 429 with a Retry-After header that says when to try again. How many people you can message a day depends on your number’s messaging tier at Meta.
Add a webhook URL in the dashboard or through the API, and choose its events. We send it a POST with a JSON body for each one: incoming messages, delivery and read updates, reactions and changes to your number. If your server does not answer with a 2xx, we retry.
There is no separate sandbox. Every account starts with a 14-day free trial on its own number, and the API tester lets you try each call before you write any code.
Any language with an HTTP client. This page has examples for Node.js, Python, PHP, cURL and Go, and the reference shows each call in more than 15 languages.
Create and update them through the API or the dashboard. Meta has to approve a template before you can use it. The API has endpoints to create your templates, list them and check their status.
Start the free trial, create your key under Developers and send your first message from your own code.