---
title: "Send video"
description: "Send video messages with an optional caption."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.wazapin.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Send video

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 |

:::warning
Use a direct HTTPS URL to the video file. Hosting pages that require redirects or authentication often fail delivery.
:::

## 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

```bash
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"
}
  }'
```
### TypeScript

```typescript
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",
  }),
);
```
### Python

```python
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()
```

Source: https://docs.wazapin.id/getting-started/send-video/index.mdx
