Skip to content

Getting Started with WhatsGate API ​

Welcome to the WhatsGate API guide. This guide will help you understand how to use our API to send WhatsApp messages and manage devices.

Prerequisites ​

Before you can start using the WhatsGate API, you'll need:

  1. An active WhatsGate account
  2. An API token for authentication
  3. At least one WhatsApp device linked to your account

Overview ​

The WhatsGate API allows you to:

  • Send various types of messages (text, images, videos, audio, files, location)
  • Connect and manage WhatsApp devices
  • Get device status and message delivery reports

Authentication ​

All API requests require authentication using an API token. You need to include your token in the request headers:

Access-Token: {api_token}

Learn more about creating and managing API tokens.

Basic Usage ​

Here's a simple example of sending a text message using the API:

bash
curl -X POST \
  https://{subdomain}.whatsgate.net/api/send/text \
  -H 'Access-Token: {api_token}' \
  -H 'Content-Type: application/json' \
  -d '{
    "sender_device": "123456789",
    "phone": "987654321",
    "message": "Hello, this is a test message"
}'

Next Steps ​

Released under the MIT License.