Simple API to send WhatsApp messages using secure tokens with support for text, media, and locations.
Send WhatsApp text and media instantly with a simple, secure, reliable API built for developers.
API Token
Use this token as your authentication Bearer token
WhatsApp QR Message API
GET POST https://botit.to/api/qr/rest/send_message
Required Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| messageType | string | Type of message to send | |
| requestType | string | HTTP method for parameters | |
| token | string | Authentication token | "your_api_token_here" |
| from | string | Sender phone number with country code | "1234567890" |
| to | string | Recipient phone number with country code | "9876543210" |
Message Type Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| text | string | Required | Text content to send | 'Hello, this is a text message' |
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| imageUrl | string (URL) | Required | Publicly accessible image URL | "https://example.com/image.jpg" |
| caption | string | Optional | Optional image caption | 'Check this out!' |
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| videoUrl | string (URL) | Required | Publicly accessible video URL | "https://example.com/video.mp4" |
| caption | string | Optional | Optional video caption | 'Watch this video!' |
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| aacUrl | string (URL) | Required | Publicly accessible AAC audio URL | "https://example.com/audio.aac" |
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| docUrl | string (URL) | Required | Publicly accessible document URL | "https://example.com/document.pdf" |
| caption | string | Optional | Optional document caption | 'Please review this document' |
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| lat | number | Required | Latitude coordinate | 37.7749 |
| long | number | Required | Longitude coordinate | -122.4194 |
| title | string | Optional | Location title or name | 'San Francisco Office' |
curl -X POST https://botit.to/api/qr/rest/send_message \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your_api_token" \
-d '{
"messageType": "text",
"requestType": "POST",
"token": "your_api_token",
"from": "+1234567890",
"to": "+9876543210",
"text": "Hello from the WhatsApp API!"
}'
{
"success": true,
"message": "Message sent successfully",
"data": {
"messageId": "ABGFlh4sVgAHEwkSJQZk",
"timestamp": "2023-05-15T12:34:56Z",
"recipient": "+1234567890",
"messageType": "text",
"contentPreview": "Hello world..."
}
}
{
"success": false,
"message": "Message was not sent",
"solution": "Reason why it was not sent"
}
