Version 1.0.0
Base URL: https://wb.pvstravel.co.uk/api
API for sending WhatsApp messages
API documentation
Test endpoint
Send a WhatsApp message
| Parameter | Type | Required | Description |
|---|---|---|---|
| to | string | Yes | Recipient phone number |
| message | string | Yes | Message content or caption |
| type | string | Yes | Message type (text, image, document, audio, voice, video) |
| media_url | string | No* | URL of the media file (required for media types) |
| reference_id | string | No | Reference ID for tracking |
{
"to": "+201012121146",
"message": "Hello, this is a test message",
"type": "text"
}
{
"to": "+201012121146",
"message": "Check out this image",
"type": "image",
"media_url": "https://offline.umrah.software/images/logo.png"
}
{
"to": "+201012121146",
"message": "Listen to this audio message",
"type": "audio",
"media_url": "https://file-example.s3-accelerate.amazonaws.com/audio/2.mp3"
}
{
"to": "+201012121146",
"message": "Listen to this voice message",
"type": "voice",
"media_url": "https://file-example.s3-accelerate.amazonaws.com/voice/oog_example.ogg"
}