{"info":{"_postman_id":"431d12ec-2756-4d09-8583-2b9db1129deb","name":"Whatsapp API","description":"<html><head></head><body><p>This documentation will provide instructions on how to quickly integrate whatsapp messaging services into various solutions by using HTTP API.</p>\n<ul>\n<li>Change <strong>server-address.com</strong> To Our <strong>Main Web Address</strong></li>\n</ul>\n<p><b>Parameters For API<br></b></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th><strong>Type</strong></th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>api_key</td>\n<td>required</td>\n<td>Your Api Key</td>\n</tr>\n<tr>\n<td>mobile</td>\n<td>required</td>\n<td>Phone with international format e.g. 923001234567</td>\n</tr>\n<tr>\n<td>message</td>\n<td>required</td>\n<td>Text Message</td>\n</tr>\n<tr>\n<td>priority</td>\n<td>optional</td>\n<td>This parameter is optional, You can use it to create a professional queue for messages  <br>The Messages with less priority value are sent first.  <br>  <br>example of usage :  <br><strong>priority = 0</strong>: for High priority like OTP messages.  <br><strong>priority = 10</strong>: used with general messages.  <br><strong>priority =20</strong>: Non-urgent notifications to your customers.  <br><strong>priority =30</strong>: Non-urgent promotional offers to your customers.  <br>Default value : 10</td>\n</tr>\n<tr>\n<td>type</td>\n<td>required</td>\n<td><strong>0</strong>=Text, <strong>1</strong>= Images, <strong>2</strong>= Documents  <br>Default Value: 0=Text  <br>  <br><strong>type=1</strong>, send images  <br>Supported extensions ( jpg , jpeg , gif , png , svg , webp , bmp ) .  <br>Max file size : 3 MB .  <br>  <br><strong>type=2,</strong> send documents  <br>Supported most extensions like ( zip , xlsx , csv , pptx , docx ....etc )  <br>Max file size : 3 MB</td>\n</tr>\n<tr>\n<td>url</td>\n<td>optional</td>\n<td>image / documents HTTP Link (if type = 1 or 2)  <br>  <br><strong>Sample</strong>: <a href=\"https://sample-videos.com/img/Sample-jpg-image-50kb.jpg\">https://sample-videos.com/img/Sample-jpg-image-50kb.jpg</a>  <br>  <br><strong>Example</strong>: <a href=\"https://server-address.com/api/send.php?api_key=???&amp;mobile=923???&amp;type=1&amp;url=https://sample-videos.com/img/Sample-jpg-image-50kb.jpg&amp;caption=ImageCaption&amp;priority=0\">https://server-address.com/api/send.php?api_key=???&amp;mobile=923???&amp;type=1&amp;url=https://sample-videos.com/img/Sample-jpg-image-50kb.jpg&amp;caption=ImageCaption&amp;priority=0</a></td>\n</tr>\n<tr>\n<td>file</td>\n<td>optional</td>\n<td>Use the following parameter file to send a direct file instead of any URL (POST Method using form-data )  <br><strong>Example</strong>:  <br>  <br><strong>file</strong>=C:/Users/Downloads/sample.jpg</td>\n</tr>\n<tr>\n<td>schedule</td>\n<td>optional</td>\n<td><strong>schedule=1</strong>  <br><strong>schedule_time</strong>=2023-12-22 05:38:06  <br>Example:  <br><a href=\"https://server-address.com/api/send.php?api_key=???&amp;mobile=923???&amp;message=HelloWorld&amp;schedule=1&amp;schedule_time=2023-12-22%2005:38:06&amp;priority=0\">https://server-address.com/api/send.php?api_key=???&amp;mobile=923???&amp;message=HelloWorld&amp;schedule=1&amp;schedule_time=2023-12-22%2005:38:06&amp;priority=0</a></td>\n</tr>\n<tr>\n<td>personalized</td>\n<td>optional</td>\n<td>Send Customized SMS (Text Data Will Be Change In Each &amp; Every Messages)  <br><strong>personalized=1</strong>  <br>**message=**[{\"mobile\":923101234567,\"message\":\"Hello Ahmad Shahzad\"},{\"mobile\":923011234567,\"message\":\"Hello Ali Ahmad\"},{\"mobile\":923331234567,\"message\":\"Hello Mustafa Kamal\"}]  <br>  <br><strong>Example</strong>:  <br><a href=\"https://server-address.com/api/send.php?api_key=???&amp;mobile=923???&amp;personalized=1&amp;message=%5B%7B%22mobile%22:923101234567,%22message%22:%22Hello%20%20Ahmad%20Shahzad%22%7D,%7B%22mobile%22:923011234567,%22message%22:%22Hello%20%20Ali%20Ahmad%22%7D,%7B%22mobile%22:923331234567,%22message%22:%22Hello%20%20Mustafa%20Kamal%22%7D%5D&amp;priority=0\">https://server-address.com/api/send.php?api_key=???&amp;mobile=923???&amp;personalized=1&amp;message=[{\"mobile\":923101234567,\"message\":\"Hello%20%20Ahmad%20Shahzad\"},{\"mobile\":923011234567,\"message\":\"Hello%20%20Ali%20Ahmad\"},{\"mobile\":923331234567,\"message\":\"Hello%20%20Mustafa%20Kamal\"}]&amp;priority=0</a></td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9576087","collectionId":"431d12ec-2756-4d09-8583-2b9db1129deb","publishedId":"2s9Ykraevk","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-12-22T08:10:33.000Z"},"item":[{"name":"Send Text Message","id":"5cc2a928-0769-45ab-98f1-18557b90a128","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"api_key","value":"YOUR_API_KEY","description":"<p>Your API-Key (Login Your Account Get It From Your Profile Or API Menu)</p>\n","type":"text"},{"key":"mobile","value":"92XXXX","description":"<p>Recipient Mobile Number (International Format) i.e 234xxx,234xxx,234xxx</p>\n","type":"text"},{"key":"message","value":"Hello World","description":"<p>Text Message</p>\n","type":"text"},{"key":"priority","value":"0","description":"<p>Message Queue (0 = Instant Delivery)</p>\n","type":"text"},{"key":"type","value":"0","description":"<p>Message Type (0=Text, 1=Image, 2=Documents)</p>\n","type":"text"}]},"url":"https://server-address.com/api/send.php","urlObject":{"protocol":"https","path":["api","send.php"],"host":["server-address","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5cc2a928-0769-45ab-98f1-18557b90a128"},{"name":"Send Image Message","id":"b2ec1d84-5c57-4b15-b00c-54278d6b07d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"api_key","value":"YOUR_API_KEY","description":"<p>Your API-Key (Login Your Account Get It From Your Profile Or API Menu)</p>\n","type":"text"},{"key":"mobile","value":"923XXXX","description":"<p>Recipient Mobile Number (International Format) i.e 234xxx,234xxx,234xxx</p>\n","type":"text"},{"key":"priority","value":"0","description":"<p>Message Queue (0 = Instant Delivery)</p>\n","type":"text"},{"key":"type","value":"1","description":"<p>Message Type (0=Text, 1=Image, 2=Documents)</p>\n","type":"text"},{"key":"url","value":"https://sample-videos.com/img/Sample-jpg-image-50kb.jpg","description":"<p>image Link (HTTP URL Address)</p>\n","type":"text"},{"key":"file","description":"<p>Use This Method If You Want To Send Direct Images From Your System</p>\n","type":"file","value":null,"disabled":true},{"key":"caption","value":"Type Image Caption Here","description":"<p>Image Caption</p>\n","type":"text"}]},"url":"https://server-address.com/api/send.php","urlObject":{"protocol":"https","path":["api","send.php"],"host":["server-address","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2ec1d84-5c57-4b15-b00c-54278d6b07d8"},{"name":"Send Document Message","id":"01a4a697-5820-4f13-af21-b6001f5231af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"api_key","value":"YOUR_API_KEY","description":"<p>Your API-Key (Login Your Account Get It From Your Profile Or API Menu)</p>\n","type":"text"},{"key":"mobile","value":"923XXXX","description":"<p>Recipient Mobile Number (International Format) i.e 234xxx,234xxx,234xxx</p>\n","type":"text"},{"key":"priority","value":"0","description":"<p>Message Queue (0 = Instant Delivery)</p>\n","type":"text"},{"key":"type","value":"2","description":"<p>Message Type (0=Text, 1=Image, 2=Documents)</p>\n","type":"text"},{"key":"url","value":"https://www.africau.edu/images/default/sample.pdf","description":"<p>Document Link (HTTP URL Address)</p>\n","type":"text"},{"key":"file","description":"<p>Use This Method If You Want To Send Direct Images From Your System</p>\n","type":"file","value":null,"disabled":true},{"key":"caption","value":"Type Your Document Caption Here","description":"<p>Document Caption</p>\n","type":"text"}]},"url":"https://server-address.com/api/send.php","urlObject":{"protocol":"https","path":["api","send.php"],"host":["server-address","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"01a4a697-5820-4f13-af21-b6001f5231af"},{"name":"Send Dynamic Message","id":"56914425-0005-4528-9c64-4a251d10ef4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"api_key","value":"YOUR_API_KEY","description":"<p>Your API-Key (Login Your Account Get It From Your Profile Or API Menu)</p>\n","type":"text"},{"key":"personalized","value":"1","type":"text"},{"key":"type","value":"0","description":"<p>Message Type (0=Text, 1=Image)</p>\n","type":"text"},{"key":"priority","value":"30","description":"<p>Message Queue (0 = Instant Delivery)</p>\n","type":"text"},{"key":"message","value":"[{\"mobile\":923101234567,\"message\":\"Hello Ahmad Shahzad\"},{\"mobile\":923011234567,\"message\":\"Hello Ali Ahmad\"},{\"mobile\":923331234567,\"message\":\"Hello Mustafa Kamal\"}]","description":"<p>specificed format in json</p>\n","type":"text"},{"key":"url","value":"https://sample-videos.com/img/Sample-jpg-image-50kb.jpg","description":"<p>if want to send image with with dynamic text caption then type=1</p>\n","type":"text","disabled":true}]},"url":"https://server-address.com/api/send.php","description":"<p>You can personalize your messages by adding the recipients first name, surname, account number etc, to the text or image messages that you send out. Personalizing your messages allows you to send messages with unique information for each contact in your database.</p>\n","urlObject":{"protocol":"https","path":["api","send.php"],"host":["server-address","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"56914425-0005-4528-9c64-4a251d10ef4f"},{"name":"Send Schedule Message","id":"e89fe445-0716-4efa-b080-85235840639f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"api_key","value":"YOUR_API_KEY","description":"<p>Your API-Key (Login Your Account Get It From Your Profile Or API Menu)</p>\n","type":"text"},{"key":"mobile","value":"923XXX","description":"<p>Recipient Mobile Number (International Format) i.e 234xxx,234xxx,234xxx</p>\n","type":"text"},{"key":"message","value":"Hello World","description":"<p>Text Message</p>\n","type":"text"},{"key":"priority","value":"0","description":"<p>Message Queue (0 = Instant Delivery)</p>\n","type":"text"},{"key":"type","value":"0","description":"<p>Message Type (0=Text, 1=Image, 2=Documents)</p>\n","type":"text"},{"key":"schedule","value":"1","description":"<p>Schedule SMS Parameter</p>\n","type":"text"},{"key":"schedule_time","value":"2024-12-22 07:18:43","description":"<p>Schdeule Date Time</p>\n","type":"text"}]},"url":"https://server-address.com/api/send.php","urlObject":{"protocol":"https","path":["api","send.php"],"host":["server-address","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e89fe445-0716-4efa-b080-85235840639f"},{"name":"Receive Incoming Message","id":"90ee3bfb-a73e-4c6b-9671-baf1f746fd84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"instance_id","value":"1XXX","description":"<p>Your Instance ID</p>\n","type":"text"},{"key":"from","value":"92XXXX","description":"<p>SMS Received From e.g. 923001234567</p>\n","type":"text"},{"key":"to","value":"92XXXX","description":"<p>Connected Whatsapp Number In Which New SMS Received</p>\n","type":"text"},{"key":"notify_name","value":"Contact_Name","description":"<p>If Name Saved In Your Contact List, Then It Will Send Name As Well</p>\n","type":"text"},{"key":"message","value":"Text_Message","description":"<p>Message Content</p>\n","type":"text"},{"key":"dlr_id","value":"ABCXXXX","description":"<p>SMS Unique ID</p>\n","type":"text"},{"key":"datetime","value":"XXX","description":"<p>Date Time</p>\n","type":"text"}]},"url":"https://your-server-address.com/incoming_sms_url.php","description":"<p>To Set <strong>Call Back URL</strong> For New Incoming Messages Login Your Account &amp; Click On <strong>Accounts</strong> Menu &amp; Click The Control Button of a Ready Instance, Then Click On <strong>Inbox URL</strong> Button &amp; Add Your Server URL Address To Receive New Incoming Messages</p>\n<p><b>All New Messages Will Be Delivered On Your Specified URL Address</b></p>\n<p>A <strong>POST REQUEST</strong> With The Following Paramaters Will Be Receive On Your Defined URL Address</p>\n","urlObject":{"protocol":"https","path":["incoming_sms_url.php"],"host":["your-server-address","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"90ee3bfb-a73e-4c6b-9671-baf1f746fd84"},{"name":"Check WhatsApp Availability","id":"1e7c045d-125c-4f24-bf47-b1c2e803eacc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"api_key","value":"{{API_KEY}}","type":"text"},{"key":"mobile","value":"{{923xxxx}}","type":"text"},{"key":"type","value":"2","description":"<p>type=1 for Bulk Check\ntype=2 for LIVE Check</p>\n<p>Bulk Check Results Find Here</p>\n<p><a href=\"https://your-server-address.com/dashboard/filter-numbers.php\">https://your-server-address.com/dashboard/filter-numbers.php</a></p>\n","type":"text"}]},"url":"https://your-server-address.com/api/whatsapp_numbers.php","urlObject":{"protocol":"https","path":["api","whatsapp_numbers.php"],"host":["your-server-address","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e7c045d-125c-4f24-bf47-b1c2e803eacc"},{"name":"getGroups","id":"828525c6-cdd5-4a98-8d98-296cdbdb494f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://your-server-address.com/apps/check_group.php?api_key={{API_KEY}}","urlObject":{"protocol":"https","path":["apps","check_group.php"],"host":["your-server-address","com"],"query":[{"key":"api_key","value":"{{API_KEY}}"}],"variable":[]}},"response":[],"_postman_id":"828525c6-cdd5-4a98-8d98-296cdbdb494f"},{"name":"Send Group Message","id":"24c356f1-4ea4-4f4e-881e-1c010b61b508","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"api_key","value":"{{API_KEY}}","description":"<p>Your API-Key (Login Your Account Get It From Your Profile Or API Menu)</p>\n","type":"text"},{"key":"group","value":"1","type":"text"},{"key":"mobile","value":"{{GROUP_ID}}","description":"<p>Provide Your Group ID\nFrom This API\n <a href=\"https://your-server-address.com/apps/check_group.php?api_key=XXXXX\">https://your-server-address.com/apps/check_group.php?api_key=XXXXX</a></p>\n","type":"text"},{"key":"message","value":"Hello World","description":"<p>Text Message</p>\n","type":"text"},{"key":"priority","value":"0","description":"<p>Message Queue (0 = Instant Delivery)</p>\n","type":"text"},{"key":"type","value":"0","description":"<p>Message Type (0=Text, 1=Image, 2=Documents)</p>\n","type":"text"}]},"url":"https://your-server-address.com/api/send.php","urlObject":{"protocol":"https","path":["api","send.php"],"host":["your-server-address","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"24c356f1-4ea4-4f4e-881e-1c010b61b508"}]}