Wayits WhatsApp API
Send WhatsApp messages, receive webhook events, and manage sessions from your application.
Quickstart
Use a connected WhatsApp session and a Wayits API key to send your first message.
- Create an API key in the Wayits dashboard and save it on your server.
- List your sessions and copy the session ID from
results[].id. - Send a text message with your Bearer API key and the
X-Device-Idheader.
API base URL
Use https://your-domain.com/api/gateway through the Wayits web proxy. If you access the API server directly, use /gateway on that server instead.
Guides and reference
Authentication
Authenticate requests using Bearer API keys.
API Reference
Explore all 108 WhatsApp Gateway endpoints across 10 categories.
Webhooks
Read event payloads and verify webhook signatures.
Response envelope
Every gateway response follows a predictable, consistent envelope:
{
"status": 200,
"code": "SUCCESS",
"message": "Message sent successfully",
"results": {
"message_id": "3EB0C8B729314C12821E",
"status": "Message sent successfully"
}
}For example, an invalid request returns:
{
"status": 400,
"code": "BAD_REQUEST",
"message": "Invalid send payload",
"results": null
}