Skip to main content

Set WhatsApp Video Status

This endpoint will let you set an ephemeral video as the status of your WhatsApp account using a publicly accessible video URL.

This status will show up as an update similar to Instagram statuses.

Parameters

These parameters should be sent as JSON payload in the request body.

FieldDescriptionExample values
video_urlA publicly accessible URL pointing to the video filehttps://d1qqh7cleddlua.cloudfront.net/video/2chat-whatsapp-virtual-number.mp4

Invocation

Make a POST request to https://api.p.2chat.io/open/whatsapp/set-video-status/<number> where <number> is the phone number that you have connected to 2Chat.

curl --location --request POST 'https://api.p.2chat.io/open/whatsapp/set-video-status/+5491124837650' \
--header 'X-User-API-Key: your_api_key_here' \
--header 'Content-Type: application/json' \
--data-raw '{
"video_url": "https://d1qqh7cleddlua.cloudfront.net/video/2chat-whatsapp-virtual-number.mp4"
}'

Response

The API will return whether it succeded or not to queue the request for processing

{
"success": true,
}