Send an audio URL to a user.

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": "audio",
    "content": {
      "media_url": "https://cdn.example.com/audio/voice-note.ogg"
    }
  }'

Notes

  • Use content.media_url as the canonical media field.
  • content.media, content.url, and content.media_type aliases are still accepted for compatibility.
  • The API infers the media kind from the top-level type: "audio" when content.media_type is omitted.