Skip to main content
POST
Send a video

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

Status Codes

  • 200 - Video sent successfully
  • 400 - Invalid parameters or video corrupted
  • 401 - Unauthorized session
  • 404 - Session not found
  • 413 - Video too large

Usage Example

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Body

application/json
chatId
string
required

Chat ID (WhatsApp JID)

Example:

"5511999999999@c.us"

file
object
required

Video file (remote URL or base64 data)

session
string
required

Session name (instanceName)

Example:

"my-session"

reply_to
string

Message ID you want to reply to

Example:

null

asNote
boolean

Send as video note

Example:

false

caption
string
default:Check out this video!

Caption/text that accompanies the video

Response

201 - undefined