curl -X POST https://api.whatabot.app/api/v1/sessions/{sessionId}/message \ -H "X-Api-Key: wh_your_api_key" \ -H "Content-Type: application/json" \ -d '{"type": "text", "text": {"body": "Hello, how can I help?"}}'
{ "messageId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "status": "queued" }
Send a message into an active session.
wh_
text
interactive
image
video
audio
document
type
Show Fields
image/png
video/mp4
button_reply
list_reply
{ "type": "text", "text": { "body": "Hello, how can I help?" } }
{ "type": "image", "media": { "mimeType": "image/png", "url": "https://example.com/photo.png", "caption": "Product photo" } }
{ "type": "video", "media": { "mimeType": "video/mp4", "url": "https://example.com/video.mp4", "caption": "Tutorial video" } }
{ "type": "audio", "media": { "mimeType": "audio/ogg", "url": "https://example.com/audio.ogg", "caption": "Voice message" } }
{ "type": "document", "media": { "mimeType": "application/pdf", "url": "https://example.com/contract.pdf", "caption": "Contract" } }
{ "type": "interactive", "interactive": { "type": "button_reply", "button_reply": { "id": "btn_support", "title": "Support" } } }
{ "type": "interactive", "interactive": { "type": "list_reply", "list_reply": { "id": "row_pricing", "title": "Plans & Pricing" } } }