0% found this document useful (0 votes)
26 views2 pages

API Document

The API allows users to send messages to Indian mobile numbers using a specified API key and message body, with optional parameters for images, PDFs, and videos. Responses indicate success or failure, with specific error codes for various issues such as invalid mobile numbers or expired API keys. The API can be accessed via POST or GET methods.

Uploaded by

webionindia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

API Document

The API allows users to send messages to Indian mobile numbers using a specified API key and message body, with optional parameters for images, PDFs, and videos. Responses indicate success or failure, with specific error codes for various issues such as invalid mobile numbers or expired API keys. The API can be accessed via POST or GET methods.

Uploaded by

webionindia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

API Document:

Request:
https://<< your Domain >>/api?apikey=< YourApiKey >&mobile=< MobileNumber >&msg=Hello World

Parameters:

Parameter Description Example:


apikey your api key which Example:
can be obtained 88d0486e7b7ded313c16ca16974c56cc
from your
account’s section

mobile 10 digit Indian 9999999999


mobile number
msg Message body Hello world

Optional Parameter

Parameter Name Parameter value


&img1= http://<< your Domain >>/image1.jpg (Live URL)
&img2= http://<< your Domain >>/image2.jpg (Live URL)
&img3= http://<< your Domain >>/image3.jpg (Live URL)
&img4= http://<< your Domain >>/image4.jpg (Live URL)
&pdf= http://<< your Domain >>/pdffile.pdf (Live URL)
&video= http://<< your Domain >>/myvideo.mp4 (Live URL)

Example: https://<< your Domain >>/api?apikey=< YourApiKey >&mobile=< MobileNumber >&msg=Hello


World&img1=https://<< your Domain >>/image1.jpg&pdf=https://<< your Domain
>>/pdffile.pdf&video=https://<< your Domain >>/myvideo.mp4

Notes: Parameter can be pass in POST/GET Methods


Response:
{"status":0,"message":"Failed"}

{"status":1,"message":"Success"}

Parameter name Description Example


status Success in case of proper submission else error with description Success/ERROR
in error msg parameter

errormsg Message status


statuscode 200 code if Success
400 code if Invalid Number
401 code if Empty Mobile Number
402 Invalid Mobile Number Only 10 digit Allow
403 Invalid API Key
404 API Key Expired
405 WhatsApp Session Inactive
406 API Key Validity Expired
407 Invalid Image Extension
408 Only Image file allow, size Must be less than 1MB
409 Only PDF file allow
410 PDF file Must be less than 3MB
411 Only Video Format Allow
412 Video File Must be less than 3MB

You might also like