Base URL
Authentication
Every request requires two headers:| Header | Description |
|---|---|
X-Api-Key | Your account API key |
X-Instance-Id | The target WhatsApp instance identifier |
Request format
- Method: Use the appropriate HTTP method (
GET,POST,PUT,DELETE) - Headers: Include authentication headers and
Content-Type: application/json - Body: JSON-formatted request body for
POSTandPUTrequests
Example: Send a text message
Response codes
| Code | Meaning |
|---|---|
200 | Success — response body contains the result |
201 | Created — resource was created successfully |
202 | Accepted — request accepted for asynchronous processing |
204 | No Content — request succeeded with no response body |
400 | Bad Request — invalid parameters or payload |
401 | Unauthorized — invalid or missing API key |
403 | Forbidden — insufficient permissions |
404 | Not Found — resource doesn’t exist |
409 | Device Not Paired — instance is not connected to WhatsApp |
429 | Rate Limited — too many requests |
500 | Server Error — something went wrong on our end |
Phone number format
WhatsApp uses the JID (Jabber ID) format for phone numbers:- Individual chats:
{countryCode}{number}@s.whatsapp.net(e.g.,1234567890@s.whatsapp.net) - Group chats:
{groupId}@g.us
Do not include the
+ prefix in phone numbers. Use the raw digits with country code.Resources
The API is organized into the following resource groups:Messages
Send text, media, documents, stickers, locations, contacts, and reactions
Chats
List, archive, pin, mute, and manage chat settings
Contacts
List, create, update contacts and retrieve profile pictures
Groups
Create groups, manage participants, update settings and invite links
Session
Get QR codes, pairing codes, connection status, and logout
Instance
Manage instance settings, restart, and update configuration
Account
Get and update your WhatsApp profile name, picture, status, and presence
Media
Download and manage media files
Newsletters
Newsletter and channel management
Status
Status and stories posting
Calls
Call management
Communities
Community and sub-group management
Tools
- OpenAPI Spec — available for download and import into API clients
- Interactive Playground — test endpoints directly from the API Reference pages