MCP is live.Set upAsk the community
OmniDimension
WhatsApp

Send a message

Send a text, template, image or document message to a customer.

Set up WhatsApp first. Connect a WhatsApp number in the dashboard or with Connect numbers. Included on every paid plan. See plans.

It goes out from phone_number_id. Set type and the field that matches it.

Outside the 24-hour window, only a template goes through. Text, image and document sends are refused with 409 window_closed. A template send works any time and can start a new conversation.

A send does not take the conversation over, so the agent keeps answering. Set take_over: true to stop the agent and answer yourself.

Idempotency-Key is required. The same key with the same body replays the first answer instead of sending again.

Headers

Idempotency-Keystringrequired

A unique string you choose, up to 255 characters. Required on this route. The same key with the same body replays the first answer for 24 hours instead of acting twice. A different body with the same key answers 409.

Length at most 255

Body

phone_number_idintegerrequired

The number to send from.

tostringrequired

The customer's number in international format, such as +15551234567.

typeenumrequired

One of: texttemplateimagedocument

textstring

Required when type is text.

Length at most 4096

templateobject

Required when type is template.

+ Show child fields (2)
idintegerrequired

An approved template on this number, from listWhatsappTemplates.

paramsobject

One value per field in the template's fields. Keys are those field keys. String, number or null values.

mediaobject

Required when type is image or document.

+ Show child fields (2)
media_idstringrequired

The media_id from uploadWhatsappMedia, uploaded within the last 24 hours.

captionstring

Length at most 1024

reply_tointeger

A message id in the same conversation to quote. Not allowed with a template.

take_overboolean

Stop the agent answering this conversation and let a person run it.

Default false

Was this page helpful?