Send outbound WhatsApp text messages programmatically using your team token. Messages are sent with the WhatsApp number configured for your team (local Baileys service or Twilio).
https://staging.humano.app/api/team/whatsapp/send
This endpoint uses team token authentication. The team is determined by the Bearer token, not by a team_id parameter.
Generate a token in Team Settings → API Tokens, then include it in every request:
Authorization: Bearer YOUR_API_TOKEN
https://staging.humano.app/api/team/whatsapp/send
| Field | Tipo | Required | Descripción |
|---|---|---|---|
to |
string | Sí | Recipient phone number (E.164 or digits only, 10–15 digits) |
message |
string | Sí | Text message body (max 4096 characters) |
curl -X POST "https://staging.humano.app/api/team/whatsapp/send" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"to": "+34722372858",
"message": "Mensaje de prueba desde la API de Humano"
}'
{
"success": true,
"message": "WhatsApp message sent",
"to": "34722372858"
}
| HTTP | When |
|---|---|
401 |
Missing or invalid team API token |
422 |
Validation error (missing fields or invalid phone number) |
503 |
WhatsApp not connected (local driver — scan QR in Chat) |
500 |
Send failed (provider misconfiguration, service unreachable, etc.) |
For interactive chat from a mobile app with user login (Sanctum), see also:
POST /api/chat/whatsapp-send — Send message (user token, supports audio and attachments)GET /api/chat/whatsapp-list — List WhatsApp conversationsGET /api/chat/whatsapp-messages/{phone} — Thread messages for a contact