Send WhatsApp Video Messages
Share high-quality videos seamlessly via WhatsApp using the DoubleTick API, enhancing customer interactions with dynamic multimedia content. π₯π
API Endpoint
Use the following endpoint to send a video message:
POST https://public.doubletick.io/whatsapp/message/video
Request Headers
{
"Authorization": "YOUR_API_KEY",
"Content-Type": "application/json"
}
Request Body Parameters
{
"to": "customer_number",
"from": "sender_number",
"messageId": "uuid-v4",
"content": {
"mediaUrl": "https://your-video-url.com/video.mp4",
"caption": "Sample Video"
}
}
Parameters
to
(string, required): Customerβs phone number in international format.from
(string, required): Your registered sender phone number in international format.messageId
(string, optional):- Message ID (UUID v4) to be used for the message.
- If not provided, a random UUID v4 will be generated automatically.
- Length to be exact 36 characters.
content
(object, required)mediaUrl
(string, required):- URL of the video file to be sent.
- Length to be in between 1 to 2048 characters.
caption
(string, optional):- Caption of the video file to be sent.
- Length to be in between 1 to 3000 characters.
Responses
Success Response (201)
{
"status": "SENT",
"recipient": "customer_number",
"messageId": "unique_message_id"
}
Bad Request (400)
{
"message": "error_message",
"error": "Bad Request",
"statusCode": 400
}
Unauthorized (401)
{
"message": "Invalid public api key",
"error": "Unauthorized",
"statusCode": 401
}
Unprocessable Entity (422)
{
"message": "invalid file type for audio: text/html; charset=utf-8",
"error": "Unprocessable Entity",
"statusCode": 422
}
Best Practices
- Ensure the video file is in a supported format (MP4).
- The media URL must be publicly accessible or hosted on a compatible server.
- If you donβt have a shareable media URL, upload your media to our cloud and use the generated URL to send it.
- Optimize video size for fast and smooth delivery.
Updated 14 days ago
Whatβs Next
Explore more message types and enhance your WhatsApp communication with DoubleTick API