API Documentation
Integrate WASaaS into your application with our REST API. Authenticate with API keys, send messages, manage contacts, and receive real-time events via webhooks.
Quick Start
Authenticate all requests by including your API key in the Authorization header.
curl -X POST https://api.wasaas.app/api/messages/send \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sessionId": "your-session-id",
"to": "5511999999999@s.whatsapp.net",
"text": "Hello from WASaaS!"
}'Base URL
https://api.wasaas.appAll API endpoints are versioned and served over HTTPS. Responses are in JSON format.
Sessions
Connect and manage WhatsApp sessions.
/api/sessions— Create a new WhatsApp session/api/sessions— List all active sessions/api/sessions/:id— Get session status & QR code/api/sessions/:id— Disconnect and remove a sessionMessages
Send text, media, and template messages.
/api/messages/send— Send a text message/api/messages/send-media— Send image, video, or document/api/messages/send-bulk— Send to multiple recipients/api/messages/:chatId— Fetch message history for a chatContacts
Manage your contact database.
/api/contacts— List all contacts with pagination/api/contacts— Create or import contacts/api/contacts/:id— Update contact details & tags/api/contacts/:id— Remove a contactCampaigns
Create and manage bulk message campaigns.
/api/campaigns— Create a new campaign/api/campaigns— List all campaigns/api/campaigns/:id— Get campaign details & stats/api/campaigns/:id/start— Start a campaignWebhooks
Receive real-time event notifications.
/api/webhooks— Register a webhook endpoint/api/webhooks— List all registered webhooks/api/webhooks/:id— Update webhook URL or events/api/webhooks/:id— Remove a webhookWebhook Events
Subscribe to real-time events to keep your systems in sync.
Rate Limits
API requests are rate-limited based on your plan. Free tier: 100 req/min. Pro: 1,000 req/min. Enterprise: custom. Rate limit headers (X-RateLimit-Remaining) are included in every response.