v1

latestOpenAPI 3.0.02026-07-2612645160.3 KB
WhatsApp Message

Send a free-form WhatsApp session message

Sends a free-form text message inside an active WhatsApp conversation (the 24h customer-care window), without using a template. Target the recipient with "contact_id" or "phone". Only official WhatsApp API numbers are supported; WhatsApp rejects messages sent outside the 24h window.

post/api/public/whatsapp/message/session

Headers

x-api-keystring required

API key needed to authorize the request

Request body

messagestring required

Free-form text body to send inside the active 24h session

contact_idstring uuid

Vambe contact id to send the message to

phonestring

Recipient phone number, used when contact_id is not provided. Keep an explicit "+" for numbers in a different country than the sender

reply_message_idstring

Provider message id to quote when replying

from_phone_numberstring

Business WhatsApp number to send from. Required when targeting by "phone" and the account has more than one WhatsApp number

type'text'

Message type. Only "text" is supported for now

pause_assistantboolean

Pause the AI assistant for this contact (human handoff)

Response

Message accepted for delivery.