Skip to main content
POST
/
v1
/
sessions
/
{sessionId}
/
message
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. The flow engine processes the message, advances to the next node, and delivers the response to the callback URL.
X-Api-Key
string
required
Your API key (prefixed with wh_).
sessionId
string
required
The UUID of the active session.

Body

type
string
required
Message type: text, interactive, image, video, audio, or document.
text
object
Text payload. Send when type is text.
media
object
Media payload. Send when type is image, video, audio, or document.
interactive
object
Interactive payload. Send when type is interactive.

Payload examples

{
  "type": "text",
  "text": {
    "body": "Hello, how can I help?"
  }
}
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"
}