POST
https://api.wazapin.id
/
v1
/
messages
Send a message
curl --request POST \
  --url https://api.wazapin.id/v1/messages \
  --header 'Content-Type: <content-type>' \
  --header 'X-Api-Key: <x-api-key>' \
  --data '
{
  "channel_id": "<string>",
  "to": "<string>",
  "type": "<string>",
  "text": "<string>",
  "image": {},
  "video": {},
  "document": {},
  "template": {},
  "buttons": {},
  "list": {},
  "audio": {}
}
'

Endpoint

POST /v1/messages Send a message through a specific channel.

Headers

X-Api-Key
string
required
Primary auth header for public API requests.
Authorization
string
Alternative auth header. Format: Bearer YOUR_API_KEY.
Content-Type
string
required
Use application/json.

Request body

channel_id
string
required
Channel ID used to send the message.
to
string
required
Recipient phone number in international format.
type
string
required
Operation type, for example text.
text
string
Typed payload for type=text.
image
object
Typed payload for type=image with url and optional caption.
video
object
Typed payload for type=video with url and optional caption.
document
object
Typed payload for type=document with url, file_name, and optional caption.
template
object
Typed payload for type=template.
buttons
object
Typed payload for type=buttons.
list
object
Typed payload for type=list.
audio
object
Typed payload for type=audio.
curl -X POST "https://api.wazapin.id/v1/messages" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channel_id": "wzp_wu8f3k2p",
    "to": "6281234567890",
    "type": "text",
    "text": "Hello from Wazapin API"
  }'
201 Created
{
  "id": "9f1fd66d-c37a-4b50-a8c2-b4dca523f9c8",
  "channel_id": "wzp_wu8f3k2p",
  "to_phone": "6281234567890",
  "type": "text",
  "status": "queued",
  "provider_message_id": null,
  "created_at": "2026-03-04T06:20:10Z",
  "request_id": "req_123"
}
400 Bad Request
{
  "error": {
    "code": "validation_error",
    "message": "text is required for type=text",
    "details": [
      {
        "field": "text",
        "reason": "required"
      }
    ]
  },
  "request_id": "req_123"
}