Create a new session:
POST /api/sessions
Content-Type: application/json
X-API-Key: YOUR_API_KEY
{
"sessionId": "my-session-1",
"usePairingCode": false
}
Send a message:
POST /api/messages/my-session-1/send
Content-Type: application/json
X-API-Key: YOUR_API_KEY
{
"to": "1234567890@s.whatsapp.net",
"content": {
"text": "Hello from Baileys API!"
}
}