Status
Loading...
Send Message
Send Bulk Messages
Logs
Loading logs...
API Documentation
Authentication
The API is secured with a token. You must provide the API token in the x-api-token header for all API requests.
Your API token is stored in the api-token.json file in the application directory.
Your API Token:
Loading API Token...
GET /api/status
Get the current status of the WhatsApp session.
Success Response (200)
{
"sessionActive": true,
"loggedInNumber": "1234567890"
}
POST /api/send-message
Send a single message.
Request Body
{
"number": "1234567890",
"message": "Hello, world!"
}
Success Response (200)
{
"success": true,
"message": "Message sent successfully"
}
POST /api/send-bulk
Send a message to multiple numbers.
Request Body
{
"numbers": ["1234567890", "0987654321"],
"message": "This is a bulk message.",
"delay": 5
}
Success Response (200)
{
"success": true,
"message": "Bulk messaging complete."
}
GET /api/api-token
Get the current API token.
Success Response (200)
{
"token": "your-api-token"
}
POST /api/regenerate-token
Regenerate the API token.
Success Response (200)
{
"token": "your-new-api-token"
}