Prerequisites
- A WSAPI account — sign up at wsapi.chat
- A WhatsApp-enabled phone number
- An API client (curl, Postman, or any HTTP library)
Create an account
Head to wsapi.chat and create your account. New accounts automatically receive a free trial with a fully functional instance.
Get your API key
Navigate to the Settings -> API Key section in your dashboard. Generate your API key and copy it, you’ll need it for every request.
Pair your WhatsApp instance
Go to Instances, find your instance, and click Pair. Scan the QR code with your phone’s WhatsApp app to connect.Once paired, your instance status changes to Logged In.Copy the Instance ID from the Instance Overview, as you’ll need it for API requests alongside your API Key.
Send your first message
Make your first API call to send a WhatsApp message:
Replace
1234567890 with the recipient’s phone number including country code (no + prefix).Configure event delivery
Click Settings on your dashboard to configure how you receive events. Choose between:
- Webhook — WSAPI sends events to your endpoint via HTTP POST
- Pull Mode (SSE) — Your app connects to WSAPI via Server-Sent Events