WhatsApp QR REST API

This works only for the WhatsApp QR

API ACCESS FOR: AUTOMATION, OTP, NOTIFICATIONS, MESSAGING

(WhatsApp Encrypted)

Developers are granted access to integrate Botify functionality into their operations, enabling them to:
• Send and Receive Messages
• Send OTP
• Send Transactional Messages
• Share Media

The API Access can be used by Financial Institutions, Real Estate Companies, Tech Companies, and Logistics/Delivery Companies

API Token

To generate token, please login to Chatentra Dashboard and click on “Rest API” menu, under “WhatsApp QR Plugin”.
 
Below are the Integration Codes
Use this REST API to send WhatsApp messages programmatically from any platform or language.

[http] Endpoint
Supports GET and POST

GET  POST   https://app.chatentra.com/api/qr/rest/send_message
 

Required Parameters

Parameter Type Description Example
messageType
string
Type of message to send text | image | video | audio | document | location
requestType
string
HTTP method GET or POST
token
string
Authentication token “your_api_token_here”
from
string
Sender phone with country code “1234567890”
to
string
Recipient phone with country code “9876543210”

Message Type Parameters (6types)

 
Text Message
Parameter Type Required Description Example
text
string
Required
Text to send “Hello!”
Image Message
Parameter Type Required Description Example
imageUrl
string (URL)
Required
Public image URL “https://example.com/image.jpg”
caption
string
Optional
Caption (optional) “Check this out”
Video Message
Parameter Type Required Description Example
videoUrl
string (URL)
Required
Public video URL “https://example.com/video.mp4”
caption
string
Optional
Optional caption “Watch this”
Audio Message
Parameter Type Required Description Example
aacUrl
string (URL)
Required
Public AAC audio URL “https://example.com/audio.aac”
Document Message
Parameter Type Required Description Example
docUrl
string (URL)
Required
Public document URL “https://example.com/doc.pdf”
caption
string
Optional
Document caption “See attached”
Location Message
Parameter Type Required Description Example
lat
number
Required
Latitude 37.7749
long
number
Required
Longitude -122.4194
title
string
Optional
Location title “San Francisco”
bt_bb_section_top_section_coverage_image

cURL Example

curl -X POST https://app.chatentra.com/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!"
  }'

Responses

 
Success Response
{
  "success": true,
  "message": "Sent",
  "data": {
    "messageId": "ABGFlh4sVgAHEwkSJQZk",
    "timestamp": "2023-05-15T12:34:56Z",
    "recipient": "+1234567890",
    "messageType": "text",
    "contentPreview": "Hello world..."
  }
}
 
Error
{
  "success": false,
  "message": "Message not sent",
  "solution": "Check your token and parameters"
}
Botify Free SignUp
bt_bb_section_bottom_section_coverage_image