Skip to main content
POST
/
api
/
sendVideo
Send a video
curl --request POST \
  --url https://{host}/api/sendVideo \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "session": "session",
  "chatId": "5511999999999@c.us",
  "url": "https://example.com/video.mp4",
  "caption": "Video caption"
}'
{
  "success": true,
  "messageId": "3EB0XXXXXX"
}

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

{
  "sessionId": "my-session",
  "jid": "5511999999999@s.whatsapp.net",
  "video": {
    "content": "iVBORw0KGgoAAAANSUhEUgAAAA...",
    "mimetype": "image/png",
    "filename": "Meu Group"
  },
  "caption": "Video caption"
}

Body Parameters

PropertyTypeRequiredDescription
sessionIdstring✅ YesAuthenticated session ID that will send the video
jidstring✅ YesRecipient identifier (WhatsApp JID). Format: 5511999999999@s.whatsapp.net for contacts or 120363XXXXX@g.us for groups
videoobject✅ YesObject containing the video data
video.contentstring✅ YesVideo content encoded in base64
video.mimetypestring❌ NoVideo MIME type (e.g., video/mp4, video/avi). If not specified, will be detected automatically
video.filenamestring❌ NoVideo file name
captionstring❌ NoCaption/text accompanying the video
{
  "success": true,
  "messageId": "3EB0XXXXXX"
}

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

curl -X POST https://api.wappfy.com.br/api/sendVideo \
  -H "Content-Type: application/json" \
  -d '{
    "sessionId": "my-session",
    "jid": "5511999999999@s.whatsapp.net",
    "video": {
      "content": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAA...",
      "mimetype": "video/mp4",
      "filename": "video.mp4"
    },
    "caption": "Check out this video!"
  }'

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)

  • Option 1
  • Option 2
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

I