Developer API

WhatsApp Business API for your own code

Send messages, receive webhooks and automate conversations with our REST API.

No card needed.

terminal
curl https://api.whats.team/v1/messages \  -H "Token: $API_KEY" \  -H "Content-Type: application/json" \  -d '{    "phone": "+447700900123",    "message": "Order 1042 has shipped"  }'
201 Created
{  "id": "6745b1f0c2a9e8d4f1a3b7c2",  "phone": "+447700900123",  "deliveryStatus": "queued"}

Your first message, ready to paste

The same call in Node.js, Python, PHP, cURL and Go. Put your key in API_KEY and run it.

Node.js1/5
send-message.js
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)
Try it in the API tester (opens in a new tab)

Three steps, from key to reply

Get your key, send your first message and listen for what comes back.

  1. Get your API key

    Sign up and create your key in the dashboard. No card needed. Open your API keys (opens in a new tab)

    terminal
    export API_KEY="your-key"
  2. Make requests

    Use the REST API to send messages, files and templates, and to see whether each one was read.

    GET /v1/messages/{id}
    {  "deliveryStatus": "read"}
  3. Handle webhooks

    Get incoming messages and delivery updates in real time, on your own URL.

    webhook
    {  "event": "message:in:new",  "data": { … }}

REST, webhooks and clear limits

JSON in and out, webhooks for what happens, and limits you can read.

  • application/json

    REST API

    Simple REST endpoints for WhatsApp Business: messages, templates, files, webhooks, campaigns and your team. JSON in, JSON out.

  • message:in:new

    Real-time webhooks

    Notifications for incoming messages, delivery and read updates, reactions and your number’s status. If your server does not answer, we retry.

  • Node · Python · PHP · Go

    Code examples

    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.

  • Token

    Key authentication

    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.

  • 429 Retry-After

    Clear rate limits

    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.

  • deliverAt

    Scheduled sends

    Send now or at a set time: add deliverAt to the message and it waits in the queue until then.

What can you build? Four ideas to start

Connect WhatsApp to any workflow or application.

  • E-commerce

    Order confirmations, shipping updates, abandoned cart reminders and customer support.

    • Order updates
    • Shipping alerts
    • Cart recovery
  • Customer support

    Connect your ticketing system, CRM or help desk, so conversations reach the place your team already works.

    • Ticket updates
    • Live chat
    • Automatic replies
  • Appointments

    Reminders, confirmations and rescheduling from your calendar or booking system.

    • Reminders
    • Confirmations
    • Rescheduling
  • Notifications

    Critical alerts, verification codes, status updates and other transactional messages.

    • Verification codes
    • Alerts
    • Status updates

The endpoints you’ll use most

More than 100 endpoints cover messages, templates, files, webhooks, campaigns, your team and more. Most integrations start with these six.

  • POST/v1/messagesSend text, files or template messages
  • GET/v1/messages/{id}Get a message’s status and details
  • POST/v1/waba/templatesCreate and update message templates
  • POST/v1/filesUpload the files you send
  • POST/v1/webhooksChoose a URL and the events it receives
  • GET/v1/analyticsChat activity per number and team member
Open the full reference (opens in a new tab)

One key in every request

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.

  1. Create your key

    In the dashboard, open Developers and create a new key. Owners and admins can create them.

  2. Name it

    Give each key the name of the integration that uses it, so you always know which is which.

  3. Keep it safe

    Store it in an environment variable, never in your code or in a public repository.

HTTP
POST /v1/messages HTTP/1.1Host: api.whats.teamToken: your-keyContent-Type: application/json

Questions about the API

What are the API’s rate limits?

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.

How do webhooks work?

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.

Is there a sandbox for testing?

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.

Which programming languages can I use?

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.

How do I handle message templates?

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.

Your API key comes with your account

Start the free trial, create your key under Developers and send your first message from your own code.