{"info":{"_postman_id":"47a8c5ad-e717-4a1a-a1e8-f51fa1f432c0","name":"Wapichat API","description":"<html><head></head><body><p>WAPICHAT is a WhatsApp API gateway service to send and receive messages, notifications, scheduler, reminders, group messages, tracking and chat with simple integration for your business<br>Our API is designed to be extremely easy to use and accessible to everyone, no matter what programming language or framework you use</p>\n<p>Steps to get started:</p>\n<p>1. Select the Device menu then click settings to scan the QR Code section, please scan the QR Code that appears<br>2. If you successfully scan the QR Code, please wait a few minutes or contact us (IT support) to activate the service.<br>3. We will activate your service. If this service is active, you can send text messages or images, with the API that we have provided.</p>\n<p>notes:</p>\n<p>Accessing the website <a href=\"https://web.whatsapp.com\">https://web.whatsapp.com</a> is prohibited<br>If you exit your WhatsApp application or change your WhatsApp number, make sure to scan the QR code again<br>it's better not to use WhatsApp business.</p>\n<h1 id=\"law\"><strong>Law:</strong></h1>\n<p>This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by WhatsApp or its affiliates or subsidiaries. This is independent and unofficial software. Use at your own risk.<br>Cryptography Notice<br>This distribution includes cryptographic software. The country in which you reside may have restrictions on the import, possession, use, and/or re-export to other countries, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies regarding the import, possession or use and re-export of encryption software, to see if this is permitted.<br>The US Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. This form and manner of distribution makes it eligible for export under the ENC Technology Software Unrestricted (TSU) License Exception (see BIS Export Administration Regulations, Section 740.13) for object code and source code.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Law:","slug":"law"}],"owner":"27705922","collectionId":"47a8c5ad-e717-4a1a-a1e8-f51fa1f432c0","publishedId":"2s9YC8wAwr","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"008025"},"publishDate":"2023-09-22T09:26:03.000Z"},"item":[{"name":"Scan QR Code","id":"1df0a9d4-9e12-4cb1-933a-cf5b4a6726a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"}]},"url":"https://login.wapichat.com/api/qrcode.php","description":"<p>This function is to view and scan the QR Code and connect to WhatsApp. The value issued is in the form of a base64 QR Code.</p>\n","urlObject":{"protocol":"https","path":["api","qrcode.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1df0a9d4-9e12-4cb1-933a-cf5b4a6726a7"},{"name":"Scan QR Code - Image","id":"6c644aa0-a180-42a2-8f28-75a11722f628","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"}]},"url":"https://login.wapichat.com/api/qrcode-image.php","description":"<p>This function is to view and scan the QR Code and connect to WhatsApp. The value issued is in the form of a QR Code image.4.</p>\n","urlObject":{"protocol":"https","path":["api","qrcode-image.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6c644aa0-a180-42a2-8f28-75a11722f628"},{"name":"Info","id":"d2e4b337-db2d-4884-a554-bc5f59466e48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"},{"key":"username","value":"fill in your username","type":"text"}]},"url":"https://login.wapichat.com/api/info.php","description":"<p>This function contains account and device information. For example: name, balance, token, device expiry date and so on.</p>\n","urlObject":{"protocol":"https","path":["api","info.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2e4b337-db2d-4884-a554-bc5f59466e48"},{"name":"Send Message","id":"8e247b44-5451-48ae-a94a-d0ef25114597","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"Get your token from device tab. Example token : \n16WogeBHqjdDVnB1u9X2wZVgQaSqB6Rn9Khg1O9azzAKVZodtm","type":"text"},{"key":"phone","value":"92310xxxxxxx","type":"text"},{"key":"message","value":"Your Message ","type":"text"}]},"url":"https://login.wapichat.com/api/send-message.php?phone=92310xxxxxxx&type=text&message=Your Message &token=Get your token from device tab. Example token : \n16WogeBHqjdDVnB1u9X2wZVgQaSqB6Rn9Khg1O9azzAKVZodtm","description":"<p>This request serves to send a text message to WhatsApp - It is important to remember that one of the parameters 'token' and 'phone' must be specified, in addition, the parameter 'message' which contains the content of the message is also required. This request can be used to send information, promos, news or other messages to users.<br />Example PHP Script Send Message:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>// Make sure the phone uses a country code or\n// 92 in front for Pakistan \n$token = 'Your Token Key';\n$phone = '92301xxxxxxxx';\n$message = 'Your Message';\n$url = 'http://login.wapichat.com/api/send-message.php';\n$curl = curl_init();\ncurl_setopt($curl, CURLOPT_URL, $url);\ncurl_setopt($curl, CURLOPT_HEADER, 0);\ncurl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);\ncurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl, CURLOPT_TIMEOUT,30);\ncurl_setopt($curl, CURLOPT_POST, 1);\ncurl_setopt($curl, CURLOPT_POSTFIELDS, array(\n    'token'    =&gt; $token,\n    'phone'     =&gt; $phone,\n    'message'   =&gt; $message,\n));\n$response = curl_exec($curl);\ncurl_close($curl); \n\n</code></pre>","urlObject":{"protocol":"https","path":["api","send-message.php"],"host":["login","wapichat","com"],"query":[{"key":"phone","value":"92310xxxxxxx"},{"key":"type","value":"text"},{"key":"message","value":"Your Message "},{"key":"token","value":"Get your token from device tab. Example token : \n16WogeBHqjdDVnB1u9X2wZVgQaSqB6Rn9Khg1O9azzAKVZodtm"}],"variable":[]}},"response":[],"_postman_id":"8e247b44-5451-48ae-a94a-d0ef25114597"},{"name":"Send Image","id":"e377b71a-a9c0-48ac-af05-122dd8ff623e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"},{"key":"phone","value":"92310xxxxxxx","type":"text"},{"key":"image","value":"url image. Example: https://wapichat.com/test/image.jpg","type":"text"},{"key":"caption","value":"contains the caption that will be sent","type":"text"}]},"url":"https://login.wapichat.com/api/send-image.php","description":"<p>This request serves to send an image message to WhatsApp - It is important to remember that one of the parameters 'token' and 'phone' must be specified, in addition, the parameter 'image' which contains the URL of the image, 'filename' which contains the name of the file, 'caption ' which contains a caption is also required. This request can be used to send information, promos, news or other messages to users.</p>\n","urlObject":{"protocol":"https","path":["api","send-image.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e377b71a-a9c0-48ac-af05-122dd8ff623e"},{"name":"Send Video","id":"04ac9c11-0214-4f67-b366-39686befb84d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"},{"key":"phone","value":"92310xxxxxxx","type":"text"},{"key":"video","value":"{{video}}","type":"text"},{"key":"filename","value":"{{filename}}","type":"text"},{"key":"caption","value":"contains the caption that will be sent","type":"text"}]},"url":"https://login.wapichat.com/api/send-video.php","description":"<p>This request serves to send a video message to WhatsApp - It is important to remember that one of the parameters 'token' and 'phone' must be specified, in addition, the parameters 'video' which contains the URL of the video, 'filename' which contains the name of the file, 'caption ' which contains a caption is also required. This request can be used to send information, promos, news or other messages to users.</p>\n","urlObject":{"protocol":"https","path":["api","send-video.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"04ac9c11-0214-4f67-b366-39686befb84d"},{"name":"Send Document","id":"c3c8af21-91b7-4647-bfff-ba0405abb5e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"},{"key":"phone","value":"92310xxxxxxx","type":"text"},{"key":"document","value":"{{document}}","type":"text"},{"key":"filename","value":"{{filename}}","type":"text"},{"key":"caption","value":"contains the caption that will be sent","type":"text"}]},"url":"https://login.wapichat.com/api/send-document.php","description":"<p>This request serves to send a message containing a document file to WhatsApp - It is important to remember that one of the parameters 'token' and 'phone' must be specified, in addition, the parameter 'document' which contains the URL of the document/file, 'filename' which contains filename, 'caption' containing the caption is also required. This request can be used to send information, promos, news or other messages to users.</p>\n","urlObject":{"protocol":"https","path":["api","send-document.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3c8af21-91b7-4647-bfff-ba0405abb5e5"},{"name":"Send Link","id":"98b885e5-9271-4879-8d90-ebf10838d740","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"},{"key":"phone","value":"92301xxxxxxx","type":"text"},{"key":"link","value":"contains the URL link that will be sent","type":"text"},{"key":"text","value":"{{text}}","type":"text"}]},"url":"https://login.wapichat.com/api/send-link.php","description":"<p>This request serves to send a message containing a Website Link to WhatsApp - It is important to remember that one of the parameters 'token' and 'phone' must be specified, in addition, the parameter 'link' which contains the website URL, 'text' which contains the message as well required. This request can be used to send information, promos, news or other messages to users.</p>\n","urlObject":{"protocol":"https","path":["api","send-link.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"98b885e5-9271-4879-8d90-ebf10838d740"},{"name":"Send Location","id":"b31e75ba-99ea-42e2-bdb9-d986f6d956e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"},{"key":"phone","value":"92310xxxxxxx","type":"text"},{"key":"lat","value":"contains the latitude of the location","type":"text"},{"key":"lng","value":"contains the longitude of the location","type":"text"},{"key":"address","value":"contains the location address","type":"text"}]},"url":"https://login.wapichat.com/api/send-location.php","description":"<p>This request serves to send a message containing a Website Link to WhatsApp - It is important to remember that one of the parameters 'token' and 'phone' must be specified, in addition, the parameter 'link' which contains the website URL, 'text' which contains the message as well required. This request can be used to send information, promos, news or other messages to users.</p>\n","urlObject":{"protocol":"https","path":["api","send-location.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b31e75ba-99ea-42e2-bdb9-d986f6d956e8"},{"name":"Contoh Google Script","id":"8ef9ae89-78d4-4f17-b991-6117635e6187","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"","description":"<p>This request serves to send a text message to WhatsApp using Google Script in Google Sheets - It is important to remember that one of the parameters 'token' and 'phone' must be specified, in addition, the parameter 'message' containing the content of the message is also required. This request can be used to send information, promos, news or other messages to users.<br />Example of Sending a Message in a Google Sheet using Google Script:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>// Make sure the phone uses a country code or\nfunction onOpen( ){\n  var ui = SpreadsheetApp.getUi();\n  ui.createMenu('WapiChat')\n      .addItem('Send Whatsapp Message', 'myFunction')\n      .addToUi();\n}\nfunction myFunction() {\n  var sheet = SpreadsheetApp.getActiveSheet();\n  var startRow = 2;  // Data starts from row 2\n  var numRows = sheet.getLastRow();   // Column number to be processed\n  var numColumns = sheet.getLastColumn();\n  var dataRange = sheet.getRange(startRow, 1, numRows-1, numColumns); \n  var data = dataRange.getValues();\n  for (var i = 0; i &lt; data.length; ++i) {\n    //The column order and number of free columns can be set by yourself\n    var row = data[i];\n    var mobileNo = row[0]; //column 1 contains wa number\n    var mess = row[1]; //2nd column contains the contents of the message\n    Logger.log(mess);   \n    var my_apikey = \"fill it with the token in the device menu\";\n    var destination = mobileNo; \n    var message = mess; \n    var payload = {\n    \"token\" : my_apikey,\n    \"phone\" : destination,\n    \"message\" : message\n    };\n    var options = {\n      \"method\" : \"POST\",\n      \"payload\" : payload\n    };\n    var api_url = \"http://login.wapichat.com/api/send-message.php\";\n    var response = UrlFetchApp.fetch(api_url, options);\n    Logger.log(response.getContentText());   \n  }\n}\n\n</code></pre>","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"8ef9ae89-78d4-4f17-b991-6117635e6187"},{"name":"Get Profile Picture","id":"2aa7eb95-9dc6-45df-b93c-20ade03842e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"},{"key":"phone","value":"92301xxxxxxx","type":"text"}]},"url":"https://login.wapichat.com/api/get-profilepic.php","description":"<p>This request functions to retrieve a profile photo based on the destination number - It is important to remember that one of the parameters 'token' and 'phone' must be specified.</p>\n","urlObject":{"protocol":"https","path":["api","get-profilepic.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2aa7eb95-9dc6-45df-b93c-20ade03842e4"},{"name":"Take Over","id":"0470f55f-2105-486f-b3ee-4b824f1b6ebd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"}]},"url":"https://login.wapichat.com/api/takeover.php","description":"<p>This function is to restore an active session if the device has been connected to another device from WhatsApp Web.</p>\n","urlObject":{"protocol":"https","path":["api","takeover.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0470f55f-2105-486f-b3ee-4b824f1b6ebd"},{"name":"Restart","id":"c7ece994-a0c1-483f-87bd-48ee733073d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"}]},"url":"https://login.wapichat.com/api/restart.php","description":"<p>This function is to restart the device.</p>\n","urlObject":{"protocol":"https","path":["api","restart.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7ece994-a0c1-483f-87bd-48ee733073d6"},{"name":"Delete Session","id":"413d4bcf-de4a-4daa-820b-69f63f7bc927","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"}]},"url":"https://login.wapichat.com/api/del-session.php","description":"<p>This function is to delete the session if you want to replace it with a new number.</p>\n","urlObject":{"protocol":"https","path":["api","del-session.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"413d4bcf-de4a-4daa-820b-69f63f7bc927"},{"name":"Check Number","id":"cd518e11-7c63-4422-b8c1-b176ac19efeb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"},{"key":"phone","value":"92310xxxxxxx","type":"text"}]},"url":"https://login.wapichat.com/api/check-number.php","description":"<p>This request serves to check whether the number is registered on WhatsApp or not - It is important to remember that the 'token' and 'phone' parameters must be specified.</p>\n","urlObject":{"protocol":"https","path":["api","check-number.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd518e11-7c63-4422-b8c1-b176ac19efeb"},{"name":"Battery Level","id":"57b779fc-15d7-45d6-a81b-f42256fb3fe1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"token service","type":"text"}]},"url":"https://login.wapichat.com/api/battery-level.php","description":"<p>This function is to view the device battery level status.</p>\n","urlObject":{"protocol":"https","path":["api","battery-level.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"57b779fc-15d7-45d6-a81b-f42256fb3fe1"},{"name":"Webhook","id":"05fe2839-9ac6-42df-b3c0-50e4cbff1863","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n        \"ischat\":true,\n        \"message\":\"callback test\",\n        \"phone\":\"92310xxxxxxx\",\n        \"category\":\"private\",\n        \"chatid\":\"92310xxxxx@c.us\",\n        \"id\":\"false_92310xxxxx@c.us_82A2809584FFB4AD6BDDC88131D905A8\",\n        \"pushname\":\"Contact Name\",\n        \"instance\":16,\n        \"time\":1589054616,\n        \"type\":\"chat\",\n        \"lat\":null,\n        \"lng\":null,\n        \"caption\":null,\n        \"isForwarded\":false,\n        \"quotemsgbody\":null,\n        \"profilepic\":null,\n        \"groupname\":null\n    }","options":{"raw":{"language":"json"}}},"url":"http://www.yourdomain.com/callback.php","description":"<p>Fetch new incoming messages from WhatsApp, so whenever a new message is sent, we'll forward it to this URL. The webhooks URL can be set in the menu: Device settings - receive webhooks. Make sure you have a publicly accessible domain as namadomain.com, then place the webhook file in that folder, so that later your webhook URL will be <a href=\"https://yourdomain.com/callback.php\">https://yourdomain.com/callback.php</a> The following is the data that will be sent to your webhook URL :<br />Incoming Message Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"ischat\":true, //true if the callback received is chat or message type\n        \"message\":\"callback test\",\n        \"phone\":\"92310xxxxxxx\",\n        \"category\":\"private\",\n        \"chatid\":\"92310xxxxxxx@c.us\",\n        \"id\":\"false_92310xxxxxxx@c.us_82A2809584FFB4AD6BDDC88131D905A8\",\n        \"pushname\":\"Contact Name\",\n        \"instance\":16,\n        \"time\":1589054616,\n        \"type\":\"chat\",\n        \"lat\":null,\n        \"lng\":null,\n        \"caption\":null,\n        \"isForwarded\":false,\n        \"quotemsgbody\":null,\n        \"profilepic\":null,\n        \"groupname\":null\n    }\n\n</code></pre><p>Response Update Status:</p>\n\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"ischat\":false, //false if a callback was received to update the status of a sent message\n        \"phone\":\"92310xxxxxxx\",\n        \"chatid\":\"92310xxxxxxx@c.us\",\n        \"id\":\"false_92310xxxxxxxc.us_82A2809584FFB4AD6BDDC88131D905A8\",\n        \"status\":\"viewed\", //sent, delivered, viewed\n}\n\n</code></pre><p>Contoh script PHP:</p>\n\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>        $json = file_get_contents(\"php://input\");\n        $array = json_decode($json, true);\n    $pengirim = $array[\"phone\"];\n    $chatid = $array[\"chatid\"];\n    $pesan = $array[\"message\"];\n    $waktu = date(\"Y-m-d H:i:s\", $array[\"time\"]);\n //create a script to save to the database\n\n</code></pre>","urlObject":{"protocol":"http","path":["callback.php"],"host":["www","yourdomain","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"05fe2839-9ac6-42df-b3c0-50e4cbff1863"},{"name":"Send Button","id":"763a6308-12b7-4787-b009-655914179a07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"token","value":"token service","type":"text"},{"key":"phone","value":"92310xxxxxxx","type":"text"},{"key":"contenttext","value":"fill in the text content","type":"text"},{"key":"footertext","value":"fill in the footer text","type":"text"},{"key":"buttonid","value":"contains the button id. example: id1, id2","type":"text"},{"key":"buttontext","value":"contains button text. example: Button1, Button2","type":"text"}]},"url":"https://login.wapichat.com/api/send-button.php","description":"<p>This request serves to send a button text message to WhatsApp - It is important to remember that one of the parameters 'token' and 'number' must be specified, in addition, the parameter 'message' which contains the message content is also required. This request can be used to send information, promos, news or other messages to users.<br />Example PHP Script:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>$token = \"xxxx\";\n$phone = \"92310xxxxxxx\"; //for groups use groupid example: 62812xxxxxx-xxxxx\n$contenttext= \"Testing send button\";\n$footertext= \"by WapiChat\";\n$buttonid= \"id1,id2\";\n$buttontext= \"Button1,Button2\";\n$curl = curl_init();\ncurl_setopt_array($curl, array(\n  CURLOPT_URL =&gt; 'https://login.wapichhat.com/api/send-button.php',\n  CURLOPT_RETURNTRANSFER =&gt; true,\n  CURLOPT_ENCODING =&gt; '',\n  CURLOPT_MAXREDIRS =&gt; 10,\n  CURLOPT_TIMEOUT =&gt; 0,\n  CURLOPT_FOLLOWLOCATION =&gt; true,\n  CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n  CURLOPT_CUSTOMREQUEST =&gt; 'POST',\n  CURLOPT_POSTFIELDS =&gt; 'token='.$token.'&amp;number='.$phone.'&amp;contenttext='.$contenttext.'&amp;footertext='.$footertext.'&amp;buttonid='.$buttonid.'&amp;buttontext='.$buttontext,\n  CURLOPT_HTTPHEADER =&gt; array(\n    'Content-Type: application/x-www-form-urlencoded'\n  ),\n));\n$response = curl_exec($curl);\ncurl_close($curl);\necho $response;\n\n</code></pre>","urlObject":{"protocol":"https","path":["api","send-button.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"763a6308-12b7-4787-b009-655914179a07"},{"name":"Send Button Link / URL","id":"429b2dd6-7c7e-4c58-ac0c-fd037cfcc7ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"token","value":"token service","type":"text"},{"key":"phone","value":"92310xxxxxxx","type":"text"},{"key":"text","value":"message content","type":"text"},{"key":"buttonlabel","value":"label1,label2","type":"text"},{"key":"buttonurl","value":"url1,url2","type":"text"}]},"url":"https://login.wapichat.com/api/send-buttonurl.php","description":"<p>This request serves to send a message button URL to WhatsApp - It is important to remember that one of the parameters 'token' and 'number' must be specified, in addition, the parameter 'message' which contains the message content is also required. This request can be used to send information, promos, news or other messages to users.<br />Example PHP Script:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>$token = \"xxxx\";\n$phone = \"92310xxxxxxx\"\"; //for groups use groupid example: 62812xxxxxx-xxxxx\n$text= \"Testing send button\";\n$buttonlabel= \"Google,Facebook\";\n$buttonurl= \"https://www.google.com,https://www.facebook.com\";\n$curl = curl_init();\ncurl_setopt_array($curl, array(\n  CURLOPT_URL =&gt; 'https://login.wapichat.com/api/send-buttonurl.php',\n  CURLOPT_RETURNTRANSFER =&gt; true,\n  CURLOPT_ENCODING =&gt; '',\n  CURLOPT_MAXREDIRS =&gt; 10,\n  CURLOPT_TIMEOUT =&gt; 0,\n  CURLOPT_FOLLOWLOCATION =&gt; true,\n  CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n  CURLOPT_CUSTOMREQUEST =&gt; 'POST',\n  CURLOPT_POSTFIELDS =&gt; 'token='.$token.'&amp;number='.$phone.'&amp;text='.$text.'&amp;buttonlabel='.$buttonlabel.'&amp;buttonurl='.$buttonurl,\n  CURLOPT_HTTPHEADER =&gt; array(\n    'Content-Type: application/x-www-form-urlencoded'\n  ),\n));\n$response = curl_exec($curl);\ncurl_close($curl);\necho $response;\nBodyurlencoded\n\n</code></pre>","urlObject":{"protocol":"https","path":["api","send-buttonurl.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"429b2dd6-7c7e-4c58-ac0c-fd037cfcc7ca"},{"name":"Send Button Link Image","id":"1b437bef-bcb0-43ee-afb3-9725b59cc07a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"token","value":"token service","type":"text"},{"key":"phone","value":"92310xxxxxxx","type":"text"},{"key":"text","value":"message content","type":"text"},{"key":"buttonlabel","value":"label1,label2","type":"text"},{"key":"buttonurl","value":"url1,url2","type":"text"},{"key":"image","value":"url image. Example: https://wapichat.com/test/image.jpg","type":"text"}]},"url":"https://login.wapichat.com/api/send-buttonimage.php","description":"<p>This request serves to send button URL and Image messages to WhatsApp - It is important to remember that one of the parameters 'token' and 'number' must be specified, in addition, the 'message' parameter which contains the message content is also required. This request can be used to send information, promos, news or other messages to users.<br />Example PHP Script:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>$token = \"xxxx\";\n$phone = \"92310xxxxxxx\"\"; //for groups use groupid example: 62812xxxxxx-xxxxx\n$text= \"Testing send button\";\n$buttonlabel= \"Google,Facebook\";\n$buttonurl= \"https://www.google.com,https://www.facebook.com\";\n$image= \"http://www.namadomain.com/gambar1.png,http://www.namadomain.com/gambar2.png\";\n$curl = curl_init();\ncurl_setopt_array($curl, array(\n  CURLOPT_URL =&gt; 'https://login.wapichat.com/api/send-buttonurl.php',\n  CURLOPT_RETURNTRANSFER =&gt; true,\n  CURLOPT_ENCODING =&gt; '',\n  CURLOPT_MAXREDIRS =&gt; 10,\n  CURLOPT_TIMEOUT =&gt; 0,\n  CURLOPT_FOLLOWLOCATION =&gt; true,\n  CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n  CURLOPT_CUSTOMREQUEST =&gt; 'POST',\n  CURLOPT_POSTFIELDS =&gt; 'token='.$token.'&amp;number='.$phone.'&amp;text='.$text.'&amp;buttonlabel='.$buttonlabel.'&amp;buttonurl='.$buttonurl,\n  CURLOPT_HTTPHEADER =&gt; array(\n    'Content-Type: application/x-www-form-urlencoded'\n  ),\n));\n$response = curl_exec($curl);\ncurl_close($curl);\necho $response;\nBodyurlencoded\n\n</code></pre>","urlObject":{"protocol":"https","path":["api","send-buttonimage.php"],"host":["login","wapichat","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b437bef-bcb0-43ee-afb3-9725b59cc07a"}],"event":[{"listen":"prerequest","script":{"id":"c63d8c0a-566c-424d-9295-5b77fb723a84","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e1d4344e-d6ef-4271-a5b2-3dfe2b162a85","type":"text/javascript","exec":[""]}}],"variable":[{"key":"apiurl","value":"https://login.wapichat.com/api","type":"string"},{"key":"token","value":"token service","type":"string"},{"key":"username","value":"fill in your username","type":"string"},{"key":"phone","value":"92310xxxxxxxx","type":"string"},{"key":"message","value":"Your Message","type":"string"},{"key":"caption","value":"contains the caption that will be sent","type":"string"},{"key":"url_webhook","value":"http://www.yourdomain.com/callback.php","type":"string"},{"key":"lat","value":"contains the latitude of the location","type":"string"},{"key":"lng","value":"contains the longitude of the location","type":"string"},{"key":"address","value":"contains the location address","type":"string"},{"key":"urlfile","value":"berisi URL file yang akan dikirim contoh: \"http://www.namadomain.com/gambar.png\"","type":"string"},{"key":"date","value":"berisi URL file yang akan dikirim contoh: \"http://www.namadomain.com/gambar.png\"","type":"string"},{"key":"time","value":"hh:mm:ss","type":"string"},{"key":"ptt","value":"contains true or false. used for audio messages","type":"string"},{"key":"link","value":"contains the URL link that will be sent","type":"string"},{"key":"paket","value":"fill in the package code","type":"string"},{"key":"sender","value":"fill in the name of the sender","type":"string"},{"key":"webhook","value":"fill in the webhook url or fill in the - (minus) sign if you don't have a webhook","type":"string"},{"key":"password","value":"fill in the account password","type":"string"},{"key":"contenttext","value":"fill in the text content","type":"string"},{"key":"footertext","value":"fill in the footer text","type":"string"},{"key":"buttonid","value":"contains the button id. example: id1, id2","type":"string"},{"key":"buttontext","value":"contains button text. example: Button1, Button2","type":"string"},{"key":"button_text","value":"contains Button Text","type":"string"},{"key":"description","value":"contains description","type":"string"},{"key":"sectiontitle","value":"contains section title","type":"string"},{"key":"title","value":"contains title. Example: Title 1, Title 2","type":"string"},{"key":"descriptionlist","value":"contains description. Example: Hello 1, Hello  2","type":"string"},{"key":"rowid","value":"contains rowid. Contoh: id1,id2","type":"string"},{"key":"image","value":"url image. Example: https://wapichat.com/test/image.jpg","type":"string"}]}