POST
/api/send-message
Sends a message with a video attached via a URL.
Send Video Message
Send a message that includes a video. Provide the video via a publicly accessible URL in the videoUrl
parameter. You can optionally include caption text in the text
parameter.
Supported video formats: MP4, 3GPP. Maximum file size: 16MB.
Parameters
Name | Type | Required | Description |
---|---|---|---|
to | string | Yes | Recipient phone number in E.164 format or, Group JID. |
text | string | No | The text content of the message. Required if no media/contact/location is sent. |
videoUrl | string | Yes | URL of the video to send. |
Code Examples
curl -X POST "https://www.wasenderapi.com/api/send-message"
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{
"to": "+1234567890",
"text": "Training video!",
"videoUrl": "https://example.com/training-video.mp4"
}'
Response Examples
{
"success": true,
"data": {
"msgId": 100000,
"jid": "+123456789",
"status": "in_progress"
}
}