{
"video": {
"content": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAAAs1tZGF0AAACrQYF...",
"mimetype": "video/mp4"
},
"caption": "Check out this amazing video!",
"participants": [
"5511999999999@s.whatsapp.net",
"5511888888888@s.whatsapp.net"
]
}
{
"video": {
"content": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAAAs1tZGF0AAACrQYF..."
}
}
{
"success": true,
"messageId": "3EB0796F91D8B2A4E053AC100F0A4D1E"
}
Status
Send Video Status
Send video status (story) with optional caption
POST
/
api
/
{session}
/
status
/
video
{
"video": {
"content": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAAAs1tZGF0AAACrQYF...",
"mimetype": "video/mp4"
},
"caption": "Check out this amazing video!",
"participants": [
"5511999999999@s.whatsapp.net",
"5511888888888@s.whatsapp.net"
]
}
{
"video": {
"content": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAAAs1tZGF0AAACrQYF..."
}
}
{
"success": true,
"messageId": "3EB0796F91D8B2A4E053AC100F0A4D1E"
}
Description
This endpoint allows you to send a video status (story) on WhatsApp. You can include a caption and define which contacts will be able to view the status.URL Parameters
Request Body
Array of contact JIDs who will be able to view the status. If not specified, the status will be visible to all contacts.JID format:
["5511999999999@s.whatsapp.net"]{
"video": {
"content": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAAAs1tZGF0AAACrQYF...",
"mimetype": "video/mp4"
},
"caption": "Check out this amazing video!",
"participants": [
"5511999999999@s.whatsapp.net",
"5511888888888@s.whatsapp.net"
]
}
{
"video": {
"content": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAAAs1tZGF0AAACrQYF..."
}
}
Response
{
"success": true,
"messageId": "3EB0796F91D8B2A4E053AC100F0A4D1E"
}
Status Codes
200- Status sent successfully400- Invalid parameters401- Unauthorized500- Server error
Usage Example
curl -X POST https://api.wappfy.com.br/api/my-session/status/video \
-H "Content-Type: application/json" \
-d '{
"video": {
"content": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAAAs1tZGF0AAACrQYF...",
"mimetype": "video/mp4"
},
"caption": "Check out this amazing video!"
}'
const session = 'my-session';
// Read video and convert to base64
const fs = require('fs');
const videoBuffer = fs.readFileSync('path/to/video.mp4');
const base64Video = videoBuffer.toString('base64');
const response = await fetch(`https://api.wappfy.com.br/api/${session}/status/video`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
video: {
content: base64Video,
mimetype: 'video/mp4'
},
caption: 'Check out this amazing video!',
participants: ['5511999999999@s.whatsapp.net']
})
});
const data = await response.json();
console.log(data);
import requests
import base64
session = 'my-session'
# Read video and convert to base64
with open('path/to/video.mp4', 'rb') as video_file:
base64_video = base64.b64encode(video_file.read()).decode('utf-8')
payload = {
'video': {
'content': base64_video,
'mimetype': 'video/mp4'
},
'caption': 'Check out this amazing video!',
'participants': ['5511999999999@s.whatsapp.net']
}
response = requests.post(
f'https://api.wappfy.com.br/api/{session}/status/video',
json=payload
)
data = response.json()
print(data)
Notes
- Status are temporary content (Stories) that disappear after 24 hours
- If the
participantsparameter is not specified, the status will be visible to all contacts - Video must be encoded in base64
- Supported video formats: MP4, AVI, MKV, MOV
- It is recommended to keep the video with a maximum duration of 30 seconds for better compatibility
Body
application/json
Response
201
