Skip to Content
Wayits Gateway

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.

  1. Create an API key in the Wayits dashboard and save it on your server.
  2. List your sessions and copy the session ID from results[].id.
  3. Send a text message with your Bearer API key and the X-Device-Id header.

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

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
}

OpenAPI specification

On this page