Send video
Send video messages with an optional caption.
Send short clips or demos with an optional caption — product walkthroughs, tutorials, or status updates with video.
At a glance
| Item | Detail |
|---|---|
type |
video |
| Supported formats | MP4, 3GP |
| Maximum file size | 16 MB |
| Media field | content.media_url (aliases: media, url) |
| Caption | Optional content.caption |
| Channel support | Official and unofficial |
Request body
| Field | Required | Description |
|---|---|---|
channel_id |
Yes | Sender channel ID |
to |
Yes | Recipient phone number |
type |
Yes | video |
content.media_url |
Yes | HTTPS URL to the video file |
content.caption |
No | Optional caption text |
Example
curl -X POST "https://api.wazapin.com/v1/messages" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"channel_id": "wzp_abc123",
"to": "6281234567890",
"type": "video",
"content": {
"media_url": "https://cdn.example.com/videos/product-demo.mp4",
"caption": "Ini video cara pakainya"
}
}'import { WazapinClient, videoMessage } from "@wazapin/sdk";
const wazapin = new WazapinClient({ apiKey: process.env.WAZAPIN_API_KEY! });
await wazapin.messages.send(
videoMessage({
channel_id: "wzp_abc123",
to: "6281234567890",
media_url: "https://cdn.example.com/videos/product-demo.mp4",
caption: "Ini video cara pakainya",
}),
);import requests
requests.post(
"https://api.wazapin.com/v1/messages",
headers={"X-Api-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
json={
"channel_id": "wzp_abc123",
"to": "6281234567890",
"type": "video",
"content": {
"media_url": "https://cdn.example.com/videos/product-demo.mp4",
"caption": "Ini video cara pakainya",
},
},
timeout=30,
).raise_for_status()