POST
/
v1
/
messages
Reference: send message
curl --request POST \
  --url https://api.wazapin.com/v1/messages \
  --header 'Content-Type: <content-type>' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "channel_id": "<string>",
  "to": "<string>",
  "type": "<string>",
  "content": {}
}
'
Use this endpoint to send WhatsApp messages to customers. The payload shape in the content block changes depending on the message type you choose.
For the complete, interactive field reference and API playground, see the canonical Send a message API reference.

Headers

X-Api-Key
string
required
Your workspace API key. Create one in the dashboard.
Content-Type
string
required
Set to application/json.

Request body

channel_id
string
required
The ID of the WhatsApp channel sending the message.
to
string
required
Recipient phone number in international format (without the leading +).
type
string
required
The type of message being sent (e.g. text, image, template, buttons, list).
content
object
required
The payload structure specific to the chosen type.

Message type guides

Select a guide below to view detailed specifications, parameters, and code examples for each message type:

Interactive & templates

Media attachments

Location & contacts

Actions