WhatsApp Bot Manager API endpoints and documentation
Full interactive API documentation with try-it-out functionality
Raw OpenAPI 3.0 specification in JSON format
API base URL for all endpoints
/api/botsGet all bots
/api/bots/{id}Get bot by ID
/api/botsCreate new bot
/api/bots/{id}Update bot
/api/bots/{id}Delete bot
/api/bots/{id}/statusGet bot operational status by ID
/api/bots/qr-codeGet QR code for WhatsApp authentication (botId in request body)
/api/bots/qr-code/updateUpdate QR code (botId in request body)
/api/bots/change-fallback-numberChange fallback number (botId in request body)
/api/bots/change-portChange bot port (botId in request body)
/api/bots/send-messageSend WhatsApp message with optional file (botId in request body)
/api/bots/get-groupsGet WhatsApp groups (botId in request body)
/api/bots/pendingSend pending message (botId in request body)
/api/bots/followupSend followup message (botId in request body)
/api/bots/receive-image-and-jsonSend image with JSON data (botId in request body)
/api/bots/confirmationSend confirmation message (botId in request body)
/api/bots/{id}/sendSend WhatsApp message with optional file attachment (Legacy)
/api/bots/spawn/whatsappSpawn new WhatsApp bot
/api/bots/{id}/terminateTerminate bot completely
/api/bots/{id}/startStart existing bot
/api/bots/{id}/stopStop existing bot
/api/bots/{id}/restartRestart existing bot
/api/bots/{id}/pm2/restartRestart PM2 service
/api/bots/{id}/pm2/recreateRecreate PM2 service
/api/bots/{id}/pm2/statusGet PM2 status
Note: Bot proxy endpoints now use botId in the request body instead of URL parameters
curl -X GET "/api/bots/{bot-id}/status" \
-H "Content-Type: application/json"curl -X POST "/api/bots/send-message" \
-H "Content-Type: application/json" \
-d '{
"botId": "whatsapp-bot-1234567890",
"phoneNumber": "+1234567890",
"message": "Hello from the API!"
}'curl -X POST "/api/bots/get-groups" \
-H "Content-Type: application/json" \
-d '{
"botId": "whatsapp-bot-1234567890"
}'curl -X POST "/api/bots/{bot-id}/restart" \
-H "Content-Type: application/json"curl -X GET "/api/bots" \ -H "Accept: application/json"
curl -X POST "/api/bots/spawn/whatsapp" \
-H "Content-Type: application/json" \
-d '{
"name": "My WhatsApp Bot",
"apiPort": 3000,
"apiHost": "localhost"
}'curl -X POST "/api/bots/{bot-id}/send" \
-H "Content-Type: application/json" \
-d '{
"phoneNumber": "+1234567890",
"message": "Hello from the API!"
}'New Unified Bot Proxy API: All bot operations now use a unified proxy API where the bot ID is passed in the request body instead of URL parameters.
Key Changes:
botId/api/bots/operation instead of /api/bots/{id}/operationBenefits: This new structure provides better consistency, easier payload management, and improved error handling across all bot operations.