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

Your API Token
*****************************************

WhatsApp QR Message API

You can use both GET and POST requests. For POST requests, parameters should be sent in the body, while for GET requests, parameters should be included in the URL as query strings.

 

 

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

text Message
Parameter Type Required Description Example
text string Required Text content to send 'Hello, this is a text message'
image 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!'
video Message
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!'
audio Message
Parameter Type Required Description Example
aacUrl string (URL) Required Publicly accessible AAC audio URL "https://example.com/audio.aac"
document Message
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'
location Message
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
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 Response
{
  "success": true,
  "message": "Message sent successfully",
  "data": {
    "messageId": "ABGFlh4sVgAHEwkSJQZk",
    "timestamp": "2023-05-15T12:34:56Z",
    "recipient": "+1234567890",
    "messageType": "text",
    "contentPreview": "Hello world..."
  }
}
Error Response
{
  "success": false,
  "message": "Message was not sent",
  "solution": "Reason why it was not sent"
}