The Message object
Unique identifier for the message, prefixed with
msg_.ID of the conversation this message belongs to.
Either
inbound (received from a contact) or outbound (sent by your team or via the API).Message type. One of
text, template, image, or document.The text body of the message. Present for
text and template types.Delivery status of an outbound message. One of
sent, delivered, read, or failed.ISO 8601 timestamp of when the message was created.
Message status values
| Status | Meaning |
|---|---|
sent | The message has been accepted by the messaging provider. |
delivered | The message has been delivered to the recipient’s device. |
read | The recipient has read the message. |
failed | Delivery failed. Check the conversation for error details. |
Status updates from
sent to delivered and read are delivered asynchronously via webhooks. Subscribe to the message.delivered and message.read events to track status changes in real time.Send a message
POST /messages/send
Sends an outbound message to a contact. Thetype field determines which other body fields are required.
ID of the contact to send the message to.
The channel to send the message on. One of
whatsapp, instagram, messenger, or webchat.Message type. One of
text, template, image, or document.The text body of the message. Required when
type is text.The name of the approved WhatsApp message template to use. Required when
type is template.Ordered array of parameter values to substitute into the template’s variable placeholders. Required when the template contains variables.
Publicly accessible URL of the media file to send. Required when
type is image or document.Send a text message
Send a template message
WhatsApp requires pre-approved message templates for outbound messages sent outside the 24-hour customer service window. Provide the template name and an array of parameter values in the order they appear in the template.Template messages must be approved in WhatsApp Business Manager before you can send them. You can view your approved templates in Waply under Settings > Message Templates.