Create Message
Sends an outbound message in a conversation over any supported channel.
https://api.vantaxai.com/v1/conversations/{conversation_id}/messagesCreate a message to reply to a contact on their channel. The `channel` you pass determines which fields are required: • **SMS / WhatsApp** — set `content` and `from_phone_number_id` (the owned number to send from). Optionally attach `media_url` for MMS / media messages. • **Facebook Messenger / Instagram** — set `content`. The connected Page or IG account that owns the conversation is used automatically; `media_url` may carry images. • **Email** — set `content` plus a `subject`. You may also pass `html` for a rich-text body; `content` is used as the plain-text fallback. The message is sent immediately and returns with an initial `status` of `queued` or `sent`; delivery state is updated asynchronously to `delivered` or `failed`.
Channel-specific requirements
Messaging windows
Headers
AuthorizationstringrequiredBearer authentication with your secret API key.
example: Bearer vx_live_3fa9c2…
Content-TypestringrequiredMust be application/json for requests with a body.
example: application/json
Path Parameters
conversation_idstringrequiredThe conversation to post the message into.
example: conv_4b8e21
Body Parameters
channelstringrequiredThe channel to send on. Must match a channel the contact can be reached on.
smswhatsappfacebookinstagramemailexample: sms
contentstringrequiredThe message body (max 4000 chars). For email, this is the plain-text body / fallback.
example: Yes! We're open Saturday 9am–4pm.
subjectstringoptionalEmail subject line (max 255 chars). Required when channel is `email`, ignored otherwise.
example: Re: Saturday hours
htmlstringoptionalOptional rich-text HTML body for email. When omitted, `content` is sent as plain text.
example: <p>Yes! We're open <b>Saturday 9am–4pm</b>.</p>
from_phone_number_idstringoptionalOwned phone number to send from. Required for `sms` and `whatsapp` channels.
example: pn_55ad12
media_urlarrayoptionalOptional list of publicly accessible media URLs to attach (MMS / images). Ignored by `email`.
example: ["https://cdn.example.com/menu.jpg"]