Send plain text messages.

Request

cURL
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_abc123",
    "to": "6281234567890",
    "type": "text",
    "content": {
      "text": "Hello! Your order has been shipped."
    }
  }'

Notes

  • Use text as the type.
  • Prefer content.body for new integrations.
  • content.text is also accepted for backwards compatibility. It can be a plain string or an object with body.
  • To send a quoted reply, include content.reply_to.id. You can also add content.reply_to.participant when needed by the provider.