WhatsApp API v2
Send
POST /send-message — JSON { number, message }
POST /send-image — multipart { number, caption?, file } OR JSON { number, caption?, url }
POST /send-video — multipart / JSON
POST /send-audio — multipart / JSON
POST /send-document — multipart / JSON
POST /send-sticker — multipart / JSON
POST /send-media — multipart { type, number, ... }
Messages & Conversations
GET /messages — ?limit &type &search &direction
GET /messages/:number
GET /messages/chat/:chat
GET /message/:id
DELETE /messages or POST /messages/clear
GET /conversations
GET /conversations/:number
Contacts
GET /contacts
GET /contacts/search?q=
GET /contacts/:number
GET /lid-mappings
POST /lid-mappings — JSON { lid, number } (manual only)
DELETE /lid-mappings/:lid
Calls
GET /calls
GET /calls/number/:number
POST /calls/:callId/reject
GET|POST /call-settings
POST /calls/clear
Webhook (env)
WEBHOOK_URL
WEBHOOK_EVENTS — call,message
WEBHOOK_SECRET