Complete API Reference

Professional WhatsApp API
for Developers

Enterprise-grade REST API that allows you to send and receive WhatsApp messages, manage sessions, handle groups, and much more. Get started in minutes with comprehensive documentation and interactive examples.

Everything You Need to Build

Powerful features and flexible APIs to integrate WhatsApp into your applications seamlessly

Secure Authentication

Token-based authentication with Authorization or Token headers. Support for user tokens and admin tokens with granular permissions.

Rich Messaging

Send text, images, videos, audio, documents, stickers, locations, contacts, buttons, lists, and polls with full media support.

Group Management

Create groups, manage participants, set group settings, handle invites, and control announcements with complete administrative control.

Webhook Integration

Real-time event notifications with customizable webhooks. Receive instant updates for messages, status changes, and more.

AI Integration

Built-in AI configuration for automated responses, natural language processing, and intelligent message handling. Includes automatic message analysis to extract intent, sentiment, and key information.

HMAC Security

Optional HMAC signature verification for webhooks to ensure data integrity and prevent unauthorized access.

Send Your First Message in 4 Steps

Follow these simple steps to integrate WhatsApp messaging into your application

1

Create User Instance

Generate your API token by creating a user instance with admin credentials

2

Connect Session

Initialize a WhatsApp session and establish connection with the API

3

Scan QR Code

Get the QR code and scan it with your WhatsApp mobile app

4

Send Messages

Start sending WhatsApp messages programmatically via API

Getting Started
# Step 1: Create a user instance
curl -X POST https://wchatpro.com/admin/users \
  -H "Authorization: YOUR_ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "MyApp", "token": "my_secret_token", "events": "All"}'

# Step 2: Connect to WhatsApp
curl -X POST https://wchatpro.com/session/connect \
  -H "Token: my_secret_token"

# Step 3: Get QR code and scan with WhatsApp
curl https://wchatpro.com/session/qr \
  -H "Token: my_secret_token"

# Step 4: Send your first message 🚀
curl -X POST https://wchatpro.com/chat/send/text \
  -H "Token: my_secret_token" \
  -H "Content-Type: application/json" \
  -d '{"Phone": "447457424747", "Body": "Hello from WchatPro!"}'
99.9% API Uptime
50+ API Endpoints
<100ms Avg Response Time
24/7 Support Available

Authentication Methods

WchatPro uses token-based authentication for secure and flexible API access

User Token

Standard

For regular API endpoints, include your user token in the request header. This token provides access to message sending, session management, and user-specific operations.

Authorization: YOUR_USER_TOKEN

// OR as Token header
Token: YOUR_USER_TOKEN

// OR as query parameter
?token=YOUR_USER_TOKEN
Use this method for all message sending, session management, and user-specific operations.

Admin Token

Admin Only

For administrative endpoints (/admin/*), use the admin token. This provides elevated privileges for user management, database operations, and system configuration.

Authorization: YOUR_ADMIN_TOKEN

// Used for endpoints like:
POST   /admin/users
GET    /admin/users
DELETE /admin/users/{id}
Get your admin token from your environment configuration or dashboard settings. Keep it secure and never expose it in client-side code!

Complete Endpoint Documentation

Explore all available endpoints, test requests live, and view detailed response schemas