Skip to main content

Send a message

POST 

/conversations/:conversation_id/messages

Send a message, an internal note, or a WhatsApp template. type selects the shape of the request:

typeWhat it sendsRequired
text (default)A plain text messagecontent
mediaA file by URLcontent (an https URL), content_type
noteAn internal note, never delivered to the customercontent
templateAn approved WhatsApp templatetemplate.name

The WhatsApp 24-hour window

WhatsApp only accepts free-form messages within 24 hours of the customer's last message. Outside it, this endpoint answers 409 with code: whatsapp_window_closed before contacting the provider, and the error carries details.last_customer_message_at so you can show the operator why. Send a template instead — that is what templates are for.

Other channel rules

  • TikTok — 48-hour window plus a per-window message cap; text and image only.
  • Voice — private notes only.
  • SMS — costs credits per segment. Insufficient credits answers 402.
  • Templates — cost credits by category (utility, marketing, authentication). Pass the right one: it decides the price.

Request

Responses

Message created and queued for delivery.

Response Headers
    X-Request-Id

    Correlation id for this request. Quote it when reporting a problem.