Appearance
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:
- An active WhatsGate account
- An API token for authentication
- 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: your_api_token_here
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: your_api_token_here' \
-H 'Content-Type: application/json' \
-d '{
"sender_device": "123456789",
"phone": "987654321",
"message": "Hello, this is a test message"
}'