Complete API reference for WhatsScale WhatsApp automation
All API requests require an API key in the header:
X-Api-Key: your_api_key
Generate your API key from the Dashboard after connecting your WhatsApp.
https://proxy.whatsscale.com
POST /api/sendText{
"session": "your_session_id",
"chatId": "1234567890@c.us",
"text": "Hello from WhatsScale!"
}POST /api/sendImage{
"session": "your_session_id",
"chatId": "1234567890@c.us",
"file": "https://example.com/image.jpg",
"caption": "Optional caption"
}POST /api/sendVideo{
"session": "your_session_id",
"chatId": "1234567890@c.us",
"file": "https://example.com/video.mp4",
"caption": "Optional caption"
}Returns a jobId for async processing. Use Check Job Status to monitor.
POST /api/status/image{
"session": "your_session_id",
"file": "https://example.com/image.jpg",
"caption": "Optional caption"
}POST /api/status/video{
"session": "your_session_id",
"file": "https://example.com/video.mp4",
"caption": "Optional caption"
}POST /api/status/text{
"session": "your_session_id",
"text": "Your status text",
"backgroundColor": "#25D366"
}GET /api/sessionsReturns list of connected WhatsApp sessions for the authenticated user.
GET /api/:session/contactsReturns list of contacts for the specified session.
GET /api/:session/groupsReturns list of groups for the specified session.
GET /api/status/:jobIdCheck status of async video/story jobs. Returns: QUEUED, PROCESSING, COMPLETED, or FAILED.
Manage your contacts with tags and metadata for targeted messaging.
POST /api/crm/contacts{
"phone": "+1234567890",
"name": "John Doe",
"tags": ["customer", "vip"]
}Tags can be a comma-separated string or an array.
GET /api/crm/contactsQuery parameters:
page - Page number (default: 1)limit - Results per page (default: 50)tag - Filter by tagsearch - Search by name or phoneGET /api/crm/contacts/:idReturns contact details by ID.
GET /api/crm/contacts/phone/:phoneFind a contact by phone number. Returns 404 if not found.
PATCH /api/crm/contacts/:id{
"name": "John Smith",
"tags": ["customer", "premium"]
}DELETE /api/crm/contacts/:idPermanently deletes a contact.
POST /api/crm/contacts/:id/tags{
"tag": "vip"
}DELETE /api/crm/contacts/:id/tags/:tagRemoves a specific tag from a contact.
GET /api/crm/tagsReturns all unique tags used across your contacts.
1234567890@c.us (phone number without + or spaces)120363123456789@g.usQuestions? Contact support@whatsscale.com