Endpoint
WhatsApp or Transactional (either is accepted).
This single endpoint sends several kinds of WhatsApp message, selected by the type field:
type: "text"— a free-form session message, only valid inside the 24-hour customer-initiated window. This is what a bot uses to reply to an inbound message.type: "template"— a Meta-approved template, valid any time (subject to template category rules).type: "image" | "video" | "audio" | "document" | "sticker"— a free-form media message. Like a session text, media is only deliverable inside the 24-hour window.
The company is resolved from your API key. The body carries a deprecated
companyId field that is ignored — never
send it.Request body
template object
media object
Send a session text
Use this to reply to an inbound message from your bot. It only succeeds inside the 24-hour window opened by the customer’s last message — which is exactly the case when you are answering a reply.Send a template
Templates are required to start a conversation or to message outside the 24-hour window.Template authoring, categories (
UTILITY / AUTHENTICATION / MARKETING), the 24-hour window, named vs. positional
variables and the full component reference are covered in detail on Send WhatsApp
Template. This page documents the same endpoint from the
“connect your bot” angle.Send media
Settype to the media kind and pass a media object. The file is addressed exactly one way —
media.link (a public URL the provider fetches) or media.providerMediaId (a media already
uploaded to the sending number). A caption is supported on image / video / document; a
filename only on document; a sticker takes neither. Like a session text, media is only
deliverable inside the 24-hour customer window.
Response
success: true means Minimo accepted the message and dispatched it to the provider. Delivery
status (sent / delivered / read) is tracked in the Minimo inbox; it is not returned inline here.
Choosing the sender (multi-number)
If the company has more than one connected number, setsender to the number you want to send
from — either the phone number (any formatting) or the Meta phone_number_id:
sender returns WHATSAPP_SENDER_NOT_FOUND. Source valid values from
List WhatsApp Senders.
Related
- Inbound Webhook — receive the messages you reply to
- List WhatsApp Senders
- List WhatsApp Templates