Description
This endpoint allows you to send videos to individual contacts or groups on WhatsApp. The video must be sent in base64 format. Optionally, you can add a caption to the video.Body
Body Parameters
Property | Type | Required | Description |
---|---|---|---|
sessionId | string | ✅ Yes | Authenticated session ID that will send the video |
jid | string | ✅ Yes | Recipient identifier (WhatsApp JID). Format: 5511999999999@s.whatsapp.net for contacts or 120363XXXXX@g.us for groups |
video | object | ✅ Yes | Object containing the video data |
video.content | string | ✅ Yes | Video content encoded in base64 |
video.mimetype | string | ❌ No | Video MIME type (e.g., video/mp4 , video/avi ). If not specified, will be detected automatically |
video.filename | string | ❌ No | Video file name |
caption | string | ❌ No | Caption/text accompanying the video |
Status Codes
200
- Video sent successfully400
- Invalid parameters or video corrupted401
- Unauthorized session404
- Session not found413
- Video too large
Usage Example
Authorizations
Your Wappfy API key (get it at dash.wappfy.com.br)
Body
application/json
Chat ID (WhatsApp JID)
Example:
"5511999999999@c.us"
Video file (remote URL or base64 data)
- Option 1
- Option 2
Session name (instanceName)
Example:
"my-session"
Message ID you want to reply to
Example:
null
Send as video note
Example:
false
Caption/text that accompanies the video