{"info":{"_postman_id":"28684ba6-0008-4212-944d-28ddf14a2bbe","name":"Cunnekt APIs","description":"<html><head></head><body><p>Cunnekt Whatsapp API allows you to automate notifications, replies, and other integrations with your platform. To get started, you need to have an active plan with API feature. You can also sign up for <a href=\"https://www.cunnekt.com/\">Free Trial</a> to test the live APIs</p>\n<h3 id=\"base-url\">Base URL:</h3>\n<p>The default base URL for Cunnekt Messaging API is:</p>\n<blockquote>\n<p><a href=\"https://app2.cunnekt.com/v1/\">https://app2.cunnekt.com/v1/</a> </p>\n</blockquote>\n<h3 id=\"api-key\">API-KEY:</h3>\n<p>Endpoints of this API need to be accessed by providing <strong>API-KEY</strong> in the header. You can generate API Key from <a href=\"https://app2.cunnekt.com/dashboard/apisetup\">Cunnekt API Settings</a> page.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1300884","collectionId":"28684ba6-0008-4212-944d-28ddf14a2bbe","publishedId":"2s93m33iJc","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"12BF7C"},"publishDate":"2023-05-22T10:06:37.000Z"},"item":[{"name":"Template Sending API","item":[{"name":"Send Template Message","id":"301c2c66-8ab9-4c33-be92-5971b274b548","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"API-KEY","value":"yourAPIkey","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"mobile\": \"919999999999\",\r\n    \"templateid\": \"asdasdDSDsd\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app2.cunnekt.com/v1/sendnotification","description":"<p>Body Payload in JSON format:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{“mobile”: “mobile_number_with_country_code”,\n“templateid”: “template_id”}\n\n</code></pre>\n<p>\"mobile\": Receiver's mobile number with country code</p>\n<p>\"templateid\": Template ID of the template you want to send. Template ID can be retreived from Template List page on Cunnekt in Payload.</p>\n","urlObject":{"protocol":"https","path":["v1","sendnotification"],"host":["app2","cunnekt","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"301c2c66-8ab9-4c33-be92-5971b274b548"},{"name":"Send Template Message (with media files and variables in body)","id":"27bc6067-2a0a-4973-bb26-bf98b02be420","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"API-KEY","value":"yourAPIkey","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"mobile\": \"919999999999\",\r\n    \"templateid\": \"sdsdDSDdssd\",\r\n    \"template\": {\r\n        \"components\": [{\r\n                \"type\": \"header\",\r\n                \"parameters\": [{\r\n                        \"type\": \"image\",\r\n                        \"image\": {\r\n                            \"link\": \"https://yourdomain.com/filename.jpg\"\r\n                        }\r\n                    }\r\n                ]\r\n            }, \r\n            {\r\n                \"type\": \"body\",\r\n                \"parameters\": [{\r\n                        \"type\": \"text\",\r\n                        \"text\": \"variable_1_value\"\r\n                    }, {\r\n                        \"type\": \"text\",\r\n                        \"text\": \"variable_2_value\"\r\n                    }\r\n                ]\r\n            }\r\n        ]\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app2.cunnekt.com/v1/sendnotification","description":"<p>Assuming your template has IMAGE as Header and has 2 variables.</p>\n<p>Body Payload in JSON format:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"mobile\": \"mobile_number_with_country_code\",\n\"templateid\": \"DFasdfdfFSFDF\",\n\"template\": {\n    \"components\": [{\n            \"type\": \"header\",\n            \"parameters\": [{\n                    \"type\": \"image\",\n                    \"image\": {\n                        \"link\": \"https://www.cunnekt.com/wp-content/themes/twentytwenty-child/images/wts_4.jpg\"\n                    }\n                }\n            ]\n        }, {\n            \"type\": \"body\",\n            \"parameters\": [{\n                    \"type\": \"text\",\n                    \"text\": \"Vivek\"\n                }, {\n                    \"type\": \"text\",\n                    \"text\": \"Rs. 999\"\n                }\n            ]\n        }\n    ]\n}\n}\n\n</code></pre>\n<p>If your HEADER contains DOCUMENT or VIDEO,</p>\n<p>\"paramters\" in above JSON example can be modified with following for DOCUMENT:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\"parameters\": [{\n                    \"type\": \"document\",\n                    \"document\": {\n                        \"link\": \"https://drive.google.com/file/d/1J9BE2hmI57WE34Z5anM2RDahc1qtGpsF/view?usp=sharing\"\n                        \"filename\": \"file_name\"\n                    }\n                }\n            ]\n\n</code></pre>\n<p>\"paramters\" in above JSON example can be modified with following for VIDEO:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\"parameters\": [{\n                    \"type\": \"video\",\n                    \"video\": {\n                        \"link\": \"https://drive.google.com/file/d/1g_ZuPlyAhhDstz3UrUPOZJWIexU6rbW_/view?usp=sharing\"\n                    }\n                }\n            ]\n\n</code></pre>\n<p>Note: If your template has no variable in the template BODY, you can remove</p>\n<p>{\"type\": \"body\",</p>\n<p>\"parameters\": ....</p>\n<p>.......................</p>\n<p>}</p>\n","urlObject":{"protocol":"https","path":["v1","sendnotification"],"host":["app2","cunnekt","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"27bc6067-2a0a-4973-bb26-bf98b02be420"},{"name":"Send Carousel Template","id":"327e3c6e-076b-4d73-9548-a47aa0ce0615","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"API-KEY","value":"yourAPIkey","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"mobile\": \"919999999999\",\r\n    \"templateid\": \"1036659577939498\",\r\n    \"overridebot\": \"yes/no\",\r\n    \"template\": {\r\n        \"components\": [\r\n            {\r\n                \"type\": \"CAROUSEL\",\r\n                \"cards\": [\r\n                    {\r\n                        \"card_index\": 0,\r\n                        \"components\": [\r\n                            {\r\n                                \"type\": \"HEADER\",\r\n                                \"parameters\": [\r\n                                    {\r\n                                        \"type\": \"IMAGE\",\r\n                                        \"image\": {\r\n                                            \"link\": \"{URL}\"\r\n                                        }\r\n                                    }\r\n                                ]\r\n                            },\r\n                            {\r\n                                \"type\": \"BUTTON\",\r\n                                \"sub_type\": \"QUICK_REPLY\",\r\n                                \"index\": 0,\r\n                                \"parameters\": [\r\n                                    {\r\n                                        \"type\": \"PAYLOAD\",\r\n                                        \"payload\": \"card_0_button_0\"\r\n                                    }\r\n                                ]\r\n                            },\r\n                            {\r\n                                \"type\": \"BUTTON\",\r\n                                \"sub_type\": \"URL\",\r\n                                \"index\": 1,\r\n                                \"parameters\": [\r\n                                    {\r\n                                        \"type\": \"PAYLOAD\",\r\n                                        \"payload\": \"card_0_button_1\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"card_index\": 1,\r\n                        \"components\": [\r\n                            {\r\n                                \"type\": \"HEADER\",\r\n                                \"parameters\": [\r\n                                    {\r\n                                        \"type\": \"IMAGE\",\r\n                                        \"image\": {\r\n                                            \"link\": \"{URL}\"\r\n                                        }\r\n                                    }\r\n                                ]\r\n                            },\r\n                            {\r\n                                \"type\": \"BUTTON\",\r\n                                \"sub_type\": \"QUICK_REPLY\",\r\n                                \"index\": 0,\r\n                                \"parameters\": [\r\n                                    {\r\n                                        \"type\": \"PAYLOAD\",\r\n                                        \"payload\": \"card_1_button_0\"\r\n                                    }\r\n                                ]\r\n                            },\r\n                            {\r\n                                \"type\": \"BUTTON\",\r\n                                \"sub_type\": \"URL\",\r\n                                \"index\": 1,\r\n                                \"parameters\": [\r\n                                    {\r\n                                        \"type\": \"PAYLOAD\",\r\n                                        \"payload\": \"card_1_button_1\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"card_index\": 2,\r\n                        \"components\": [\r\n                            {\r\n                                \"type\": \"HEADER\",\r\n                                \"parameters\": [\r\n                                    {\r\n                                        \"type\": \"IMAGE\",\r\n                                        \"image\": {\r\n                                            \"link\": \"{URL}\"\r\n                                        }\r\n                                    }\r\n                                ]\r\n                            },\r\n                            {\r\n                                \"type\": \"BUTTON\",\r\n                                \"sub_type\": \"QUICK_REPLY\",\r\n                                \"index\": 0,\r\n                                \"parameters\": [\r\n                                    {\r\n                                        \"type\": \"PAYLOAD\",\r\n                                        \"payload\": \"card_2_button_0\"\r\n                                    }\r\n                                ]\r\n                            },\r\n                            {\r\n                                \"type\": \"BUTTON\",\r\n                                \"sub_type\": \"URL\",\r\n                                \"index\": 1,\r\n                                \"parameters\": [\r\n                                    {\r\n                                        \"type\": \"PAYLOAD\",\r\n                                        \"payload\": \"card_2_button_1\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        ]\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app2.cunnekt.com/v1/sendnotification","description":"<p>For any type of template, you should copy the JSON format from Template Page under Payload table column.</p>\n<p>Example Body Payload in JSON format: Will change based on the template you've created.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"mobile\": \"{CountryCodeMobileNumber}\",\n    \"templateid\": \"1036659577939498\",\n    \"overridebot\": \"yes/no\",\n    \"template\": {\n        \"components\": [\n            {\n                \"type\": \"CAROUSEL\",\n                \"cards\": [\n                    {\n                        \"card_index\": 0,\n                        \"components\": [\n                            {\n                                \"type\": \"HEADER\",\n                                \"parameters\": [\n                                    {\n                                        \"type\": \"IMAGE\",\n                                        \"image\": {\n                                            \"link\": \"{URL}\"\n                                        }\n                                    }\n                                ]\n                            },\n                            {\n                                \"type\": \"BUTTON\",\n                                \"sub_type\": \"QUICK_REPLY\",\n                                \"index\": 0,\n                                \"parameters\": [\n                                    {\n                                        \"type\": \"PAYLOAD\",\n                                        \"payload\": \"card_0_button_0\"\n                                    }\n                                ]\n                            },\n                            {\n                                \"type\": \"BUTTON\",\n                                \"sub_type\": \"URL\",\n                                \"index\": 1,\n                                \"parameters\": [\n                                    {\n                                        \"type\": \"PAYLOAD\",\n                                        \"payload\": \"card_0_button_1\"\n                                    }\n                                ]\n                            }\n                        ]\n                    },\n                    {\n                        \"card_index\": 1,\n                        \"components\": [\n                            {\n                                \"type\": \"HEADER\",\n                                \"parameters\": [\n                                    {\n                                        \"type\": \"IMAGE\",\n                                        \"image\": {\n                                            \"link\": \"{URL}\"\n                                        }\n                                    }\n                                ]\n                            },\n                            {\n                                \"type\": \"BUTTON\",\n                                \"sub_type\": \"QUICK_REPLY\",\n                                \"index\": 0,\n                                \"parameters\": [\n                                    {\n                                        \"type\": \"PAYLOAD\",\n                                        \"payload\": \"card_1_button_0\"\n                                    }\n                                ]\n                            },\n                            {\n                                \"type\": \"BUTTON\",\n                                \"sub_type\": \"URL\",\n                                \"index\": 1,\n                                \"parameters\": [\n                                    {\n                                        \"type\": \"PAYLOAD\",\n                                        \"payload\": \"card_1_button_1\"\n                                    }\n                                ]\n                            }\n                        ]\n                    },\n                    {\n                        \"card_index\": 2,\n                        \"components\": [\n                            {\n                                \"type\": \"HEADER\",\n                                \"parameters\": [\n                                    {\n                                        \"type\": \"IMAGE\",\n                                        \"image\": {\n                                            \"link\": \"{URL}\"\n                                        }\n                                    }\n                                ]\n                            },\n                            {\n                                \"type\": \"BUTTON\",\n                                \"sub_type\": \"QUICK_REPLY\",\n                                \"index\": 0,\n                                \"parameters\": [\n                                    {\n                                        \"type\": \"PAYLOAD\",\n                                        \"payload\": \"card_2_button_0\"\n                                    }\n                                ]\n                            },\n                            {\n                                \"type\": \"BUTTON\",\n                                \"sub_type\": \"URL\",\n                                \"index\": 1,\n                                \"parameters\": [\n                                    {\n                                        \"type\": \"PAYLOAD\",\n                                        \"payload\": \"card_2_button_1\"\n                                    }\n                                ]\n                            }\n                        ]\n                    }\n                ]\n            }\n        ]\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","sendnotification"],"host":["app2","cunnekt","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"327e3c6e-076b-4d73-9548-a47aa0ce0615"}],"id":"3fc471ee-8fac-43a2-89be-95f8b00fab26","_postman_id":"3fc471ee-8fac-43a2-89be-95f8b00fab26","description":""},{"name":"Reply Message API","item":[{"name":"Send Plain Text","id":"87b0e238-e55b-4c98-a4d9-961f997c25cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"API-KEY","value":"yourAPIkey","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"mobile\": \"mobile_number_with_country_code\",\r\n    \"type\": \"text\",\r\n    \"text\": \"Hi. how are you doing?\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app2.cunnekt.com/v1/sendreplymessage","description":"<p>You can use Reply Message API to send free form message to your users with whom Service Conversation window is open i.e. the end user has sent you a message and you want to reply to them in the 24 hour service window.</p>\n<p>Service conversation window only opens when a User has replied to you on WhatsApp in last 24 hours.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"mobile\": \"919999999999\",\n    \"type\": \"text\",\n    \"text\": \"Hi. how are you doing?\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","sendreplymessage"],"host":["app2","cunnekt","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"87b0e238-e55b-4c98-a4d9-961f997c25cc"},{"name":"Send Message with Button","id":"dff24519-de14-4e55-b567-e3eeb9cb99ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"API-KEY","value":"yourAPIkey","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"mobile\": \"mobile_number_with_country_code\",\r\n    \"type\": \"button\",\r\n    \"header\": {\r\n        \"type\": \"text\",\r\n        \"text\": \"header_text_message\"\r\n    },\r\n    \"body\": \"body_text_message\",\r\n    \"buttons\": [\r\n        {\r\n            \"type\": \"reply\",\r\n            \"reply\": {\r\n                \"id\": \"1\",\r\n                \"title\": \"button_1_label\"\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"reply\",\r\n            \"reply\": {\r\n                \"id\": \"2\",\r\n                \"title\": \"button_2_label\"\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"reply\",\r\n            \"reply\": {\r\n                \"id\": \"3\",\r\n                \"title\": \"button_3_label\"\r\n            }\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app2.cunnekt.com/v1/sendreplymessage","description":"<p>Reply to your customers with message containing buttons.</p>\n<ul>\n<li>A Maximum 3 buttons can be sent</li>\n<li>Button title value can only be upto 24 characters</li>\n<li>Button body text value can only be upto 1024 characters</li>\n</ul>\n<p>Note: This API can only be used if Service Conversation window is open with the customer.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"mobile\": \"919999999999\",\n    \"type\": \"button\",\n    \"header\": {\n        \"type\": \"text\",\n        \"text\": \"Dear Customer!\"\n    },\n    \"body\": \"How would you like to rate our Services?\",\n    \"buttons\": [\n        {\n            \"type\": \"reply\",\n            \"reply\": {\n                \"id\": \"1\",\n                \"title\": \"Good\"\n            }\n        },\n        {\n            \"type\": \"reply\",\n            \"reply\": {\n                \"id\": \"2\",\n                \"title\": \"Excellent\"\n            }\n        },\n        {\n            \"type\": \"reply\",\n            \"reply\": {\n                \"id\": \"3\",\n                \"title\": \"Could be better\"\n            }\n        }\n    ]\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","sendreplymessage"],"host":["app2","cunnekt","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"dff24519-de14-4e55-b567-e3eeb9cb99ac"},{"name":"Send Message with List","id":"308f5c41-4cdb-4195-ab32-f3e712134b00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"API-KEY","value":"yourAPIkey","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"mobile\": \"mobile_number_with_country_code\",\r\n    \"type\": \"list\",\r\n    \"header\": {\r\n        \"type\": \"text\",\r\n        \"text\": \"header_text_message\"\r\n    },\r\n    \"body\": \"body_text_message\",\r\n    \"list_title\": \"list_heading\",\r\n    \"list\": [\r\n        {\r\n            \"id\": \"1\",\r\n            \"title\": \"list_row_title_1\",\r\n            \"description\": \"list_row_title_1_description\"\r\n        },\r\n        {\r\n            \"id\": \"2\",\r\n            \"title\": \"list_row_title_2\",\r\n            \"description\": \"list_row_title_2_description\"\r\n        },\r\n        {\r\n            \"id\": \"3\",\r\n            \"title\": \"list_row_title_3\",\r\n            \"description\": \"list_row_title_3_description\"\r\n        },\r\n        {\r\n            \"id\": \"4\",\r\n            \"title\": \"list_row_title_4\",\r\n            \"description\": \"list_row_title_4_description\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app2.cunnekt.com/v1/sendreplymessage","description":"<p>Reply to your customers with message containing a list of options.</p>\n<ul>\n<li><p>A Maximum 10 list items can be sent</p>\n</li>\n<li><p>List title value can only be upto 24 characters</p>\n</li>\n<li><p>Body text value can only be upto 1024 characters</p>\n</li>\n</ul>\n<p>Note: This API can only be used if Service Conversation window is open with the customer.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"mobile\": \"919999999999\",\n    \"type\": \"list\",\n    \"header\": {\n        \"type\": \"text\",\n        \"text\": \"Dear Customer!\"\n    },\n    \"body\": \"body_text_message\",\n    \"list_title\": \"Items Available\",\n    \"list\": [\n        {\n            \"id\": \"1\",\n            \"title\": \"Fan\",\n            \"description\": \"Wall Fan starting from Rs. 999\"\n        },\n        {\n            \"id\": \"2\",\n            \"title\": \"Cooler\",\n            \"description\": \"Coolers starting from Rs. 1,999\"\n        },\n        {\n            \"id\": \"3\",\n            \"title\": \"Window AC\",\n            \"description\": \"Window AC starting from Rs. 19,999\"\n        },\n        {\n            \"id\": \"4\",\n            \"title\": \"Split AC\",\n            \"description\": \"Split AC starting from Rs.23,999\"\n        }\n    ]\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","sendreplymessage"],"host":["app2","cunnekt","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"308f5c41-4cdb-4195-ab32-f3e712134b00"},{"name":"Send WhatsApp Form","id":"c7901d76-e546-4c50-918e-238078d9b942","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"API-KEY","value":"yourAPIkey","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"mobile\": \"mobile_number_with_country_code\",\r\n    \"type\": \"flow\",\r\n    \"body\": \"Hi. how are you doing?\",\r\n    \"form_cta\": \"button\",\r\n    \"form_id\": \"925610928478879\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app2.cunnekt.com/v1/sendreplymessage","description":"<p>Reply to your customers with message containing a button which opens pre-made WhatsApp Form.</p>\n<ul>\n<li><p>Only 1 button for Form fill can be used</p>\n</li>\n<li><p>Body text value can only be upto 1024 characters</p>\n</li>\n<li><p>form_cta is the label of the Form Button (20 characters)</p>\n</li>\n<li><p>form_id value can be found on Forms page on Cunnekt. You can only use Published form</p>\n</li>\n</ul>\n<p>Note: This API can only be used if Service Conversation window is open with the customer.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"mobile\": \"919999999999\",\n    \"type\": \"flow\",\n    \"body\": \"Hi. how are you doing?\",\n    \"form_cta\": \"Fill Form\",\n    \"form_id\": \"925610928478879\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","sendreplymessage"],"host":["app2","cunnekt","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7901d76-e546-4c50-918e-238078d9b942"},{"name":"Send Reply Message - Image","id":"c29314cc-a529-4a05-9a7d-7b5e36b88cb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"API-KEY","value":"yourAPIkey","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"mobile\": \"mobile_number_with_country_code\",\r\n    \"type\": \"image\",\r\n    \"image\": \"link-to-image-file.com/image.jpg\",\r\n    \"caption\": \"image_caption\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app2.cunnekt.com/v1/sendreplymessage","description":"<p>You can use Reply Message API to send free form message to your users with whom Service Conversation window is open.</p>\n<p>Service conversation window only opens when a User has replied to you on WhatsApp in last 24 hours.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"mobile\": \"919999999999\",\n    \"type\": \"image\",\n    \"image\": \"https://www.cunnekt.com/wp-content/themes/twentytwenty-child/images/wts_4.jpg\",\n    \"caption\": \"Cunnekt\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","sendreplymessage"],"host":["app2","cunnekt","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c29314cc-a529-4a05-9a7d-7b5e36b88cb7"},{"name":"Send Reply Message - Video","id":"7a66de73-7a01-4b33-97a3-151f6567f2c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"API-KEY","value":"yourAPIkey","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"mobile\": \"mobile_number_with_country_code\",\r\n    \"type\": \"video\",\r\n    \"video\": \"videofile_url\",\r\n    \"caption\": \"video_caption\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app2.cunnekt.com/v1/sendreplymessage","description":"<p>You can use Reply Message API to send free form message to your users with whom Service Conversation window is open.</p>\n<p>Service conversation window only opens when a User has replied to you on WhatsApp in last 24 hours.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"mobile\": \"919999999999\",\n    \"type\": \"video\",\n    \"video\": \"https://drive.google.com/file/d/1g_ZuPlyAhhDstz3UrUPOZJWIexU6rbW_/view?usp=sharing\",\n    \"caption\": \"Cunnekt\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","sendreplymessage"],"host":["app2","cunnekt","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a66de73-7a01-4b33-97a3-151f6567f2c3"},{"name":"Send Reply Message - Document","id":"37ab78bf-3887-45ce-9e46-fcaee5986658","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"API-KEY","value":"yourAPIkey","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"mobile\": \"mobile_number_with_country_code\",\r\n    \"type\": \"document\",\r\n    \"document\": \"documentfile_url\",\r\n    \"caption\": \"document_caption\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app2.cunnekt.com/v1/sendreplymessage","description":"<p>You can use Reply Message API to send free form message to your users with whom Service Conversation window is open.</p>\n<p>Service conversation window only opens when a User has replied to you on WhatsApp in last 24 hours.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"mobile\": \"919999999999\",\n    \"type\": \"document\",\n    \"document\": \"https://drive.google.com/file/d/1J9BE2hmI57WE34Z5anM2RDahc1qtGpsF/view?usp=share_link\",\n    \"caption\": \"Cunnekt Features\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","sendreplymessage"],"host":["app2","cunnekt","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"37ab78bf-3887-45ce-9e46-fcaee5986658"},{"name":"Send Reply Message - Audio","id":"45d51580-0b81-45a7-afc7-c358be31e6b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"API-KEY","value":"yourAPIkey","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"mobile\": \"mobile_number_with_country_code\",\r\n    \"type\": \"audio\",\r\n    \"audio\": \"audiofile_url\",\r\n    \"caption\": \"audiofile_caption\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app2.cunnekt.com/v1/sendreplymessage","description":"<p>You can use Reply Message API to send free form message to your users with whom Service Conversation window is open.</p>\n<p>Service conversation window only opens when a User has replied to you on WhatsApp in last 24 hours.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"mobile\": \"919999999999\",\n    \"type\": \"audio\",\n    \"audio\": \"https://www.cunnekt.com/wp-content/uploads/2023/05/relaxing-145038.mp3\",\n    \"caption\": \"Cunnekt Features\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","sendreplymessage"],"host":["app2","cunnekt","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"45d51580-0b81-45a7-afc7-c358be31e6b7"},{"name":"Send CTA URL Message","id":"25b87d6a-49ff-44e3-b4b7-fb445eb6b2ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"API-KEY","value":"yourAPIkey","type":"text"},{"key":"","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"mobile\": \"mobile_number_with_country_code\",\r\n    \"type\": \"cta_url\",\r\n    \"body\": \"body_text_message\",\r\n    \"button_text\": \"Click Me\",\r\n    \"button_url\": \"https://domain.com\"\r\n}"},"url":"https://app2.cunnekt.com/v1/sendreplymessage","description":"<p>CTA URL Message API is part of REPLY MESSAGE API and this works only if Service Conversation window is open.</p>\n<p>Service conversation window only opens when a User has replied to you on WhatsApp in last 24 hours.</p>\n","urlObject":{"protocol":"https","path":["v1","sendreplymessage"],"host":["app2","cunnekt","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"25b87d6a-49ff-44e3-b4b7-fb445eb6b2ab"}],"id":"df068249-8f93-4222-a252-75238ed0d2c9","_postman_id":"df068249-8f93-4222-a252-75238ed0d2c9","description":""},{"name":"Webhooks","item":[],"id":"8cc8079d-35d8-4be5-be0d-3ceee9d57681","description":"<p>Webhooks or Callback can be used to receive data from Cunnekt for every new message and delivery statuses.</p>\n<p>You can set Webhook URL on Cunnekt's API Setting page and start receiving your webhook data. You're advised to handle the webhook requests Asynchronously.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>key</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>display_phone_number</code></td>\n<td>WhatsApp Business Account Mobile Number</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>End User Name</td>\n</tr>\n<tr>\n<td><code>wa_id</code></td>\n<td>End User Mobile Number</td>\n</tr>\n<tr>\n<td><code>id</code></td>\n<td>Unique Message ID</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Incoming Text Message Webhook:</strong><br /><code>{\"messaging_product\":\"whatsapp\",\"metadata\":{\"display_phone_number\":\"919873617805\",\"phone_number_id\":\"123456789\"},\"contacts\":[{\"profile\":{\"name\":\"VIVEK KUMAR\"},\"wa_id\":\"919999999999\"}],\"messages\":[{\"from\":\"919999999999\",\"id\":\"wamid.HBgMOTE3ODM4MjYyMjgxFQIAEhgWM0VCMEQyRTI1RUMxQzJEN0Y0RTY0MwA=\",\"timestamp\":\"1691583948\",\"text\":{\"body\":\"hello\"},\"type\":\"text\"}]}</code></p>\n<p><strong>Incoming Button Message Click Reply</strong><br /><code>{\"messaging_product\":\"whatsapp\",\"metadata\":{\"display_phone_number\":\"919873617805\",\"phone_number_id\":\"123456789\"},\"contacts\":[{\"profile\":{\"name\":\"Vivek Kumar\"},\"wa_id\":\"919999999999\"}],\"messages\":[{\"context\":{\"from\":\"919999999999\",\"id\":\"wamid.HBgMOTE3MDQyNzE0MzI2FQIAERgSQkRBNUE0QUYyNzE1NDVENzRBAA==\"},\"from\":\"919999999999\",\"id\":\"wamid.HBgMOTE3MDQyNzE0MzI2FQIAEhggOTg5NzEyNTdCNDM0MThGQzgzNkYzMDA5NDY4MUFBQ0YA\",\"timestamp\":\"1704803711\",\"type\":\"interactive\",\"interactive\":{\"type\":\"button_reply\",\"button_reply\":{\"id\":\"1\",\"title\":\"WhatsApp Onboarding\"}}}]}</code></p>\n<p><strong>Incoming List Message Click Reply Webhook</strong><br /><code>{\"messaging_product\":\"whatsapp\",\"metadata\":{\"display_phone_number\":\"919873617805\",\"phone_number_id\":\"123456789\"},\"contacts\":[{\"profile\":{\"name\":\"Vivek Kumar\"},\"wa_id\":\"919999999999\"}],\"messages\":[{\"context\":{\"from\":\"919999999999\",\"id\":\"wamid.HBgMOTE3MDQyNzE0MzI2FQIAERgSOTlFQTQ2REJCNDc4QTVERTM5AA==\"},\"from\":\"919999999999\",\"id\":\"wa</code><a href=\"https://www.cunnekt.com\"><code>https://www.cunnekt.com</code></a><code>mid.HBgMOTE3MDQyNzE0MzI2FQIAEhggMUZGRTU2QzY4MzE2RTQ1M0M4OTA3MjAyNzA5Q0FFN0MA\",\"timestamp\":\"1704803717\",\"type\":\"interactive\",\"interactive\":{\"type\":\"list_reply\",\"list_reply\":{\"id\":\"button2_4\",\"title\":\"button2\"}}}]}</code></p>\n<p><strong>Incoming PDF message Webhook:</strong><br /><code>{\"messaging_product\":\"whatsapp\",\"metadata\":{\"display_phone_number\":\"919873617805\",\"phone_number_id\":\"123456789\"},\"contacts\":[{\"profile\":{\"name\":\"VIVEK KUMAR\"},\"wa_id\":\"919999999999\"}],\"messages\":[{\"from\":\"919999999999\",\"id\":\"wamid.HBgMOTE3ODM4MjYyMjgxFQIAEhgWM0VCMEIxNkNBMUM4NTk2QzJBMjk0MgA=\",\"timestamp\":\"1691583944\",\"type\":\"document\",\"document\":{\"filename\":\"Cunnekt - Product Pitch (3) (1).pdf\",\"mime_type\":\"application/pdf\",\"sha256\":\"a8BfUjKncpRaN1ETZ7qYMWq+vfjL5UXsKJ7M4JS1Y5g=\",\"id\":\"1288177442071795\"}}]}</code></p>\n<p><strong>Incoming Image message Webhook:</strong><br /><code>{\"messaging_product\":\"whatsapp\",\"metadata\":{\"display_phone_number\":\"919873617805\",\"phone_number_id\":\"123456789\"},\"contacts\":[{\"profile\":{\"name\":\"VIVEK KUMAR\"},\"wa_id\":\"919999999999\"}],\"messages\":[{\"from\":\"919999999999\",\"id\":\"wamid.HBgMOTE3ODM4MjYyMjgxFQIAEhgWM0VCMEJCMDUxOTQ2N0RGMTkwQ0M2RgA=\",\"timestamp\":\"1691583851\",\"type\":\"image\",\"image\":{\"mime_type\":\"image/jpeg\",\"sha256\":\"M/Hwg7p2OkyasSJJKZDX3i3cLAV1aeD4D5PbvyfBbhc=\",\"id\":\"6458224610913792\"}}]}</code></p>\n<p><strong>Message Sent Status Webhook</strong><br /><code>{\"messaging_product\":\"whatsapp\",\"metadata\":{\"display_phone_number\":\"919873617805\",\"phone_number_id\":\"123456789\"},\"statuses\":[{\"id\":\"wamid.HBgMSDOTE3MDQyNzE0MzI2FQIAERgSRjRDQkM1NDU3QzI2QTRFQkZFAA==\",\"status\":\"sent\",\"timestamp\":\"1710392516\",\"recipient_id\":\"919999999999\",\"conversation\":{\"id\":\"7a553a2122248af1a88c9fdbeceeb17c\",\"expiration_timestamp\":\"1710478920\",\"origin\":{\"type\":\"utility\"}},\"pricing\":{\"billable\":true,\"pricing_model\":\"CBP\",\"category\":\"utility\"}}]}</code></p>\n<p><strong>Message Delivered Status Webhook</strong><br /><code>{\"messaging_product\":\"whatsapp\",\"metadata\":{\"display_phone_number\":\"919873617805\",\"phone_number_id\":\"123456789\"},\"statuses\":[{\"id\":\"wamid.HBgMOTE3MDQyNzE0MzI2FQsdQkM1NDU3QzI2QTRFQkZFAA==\",\"status\":\"delivered\",\"timestamp\":\"1710392519\",\"recipient_id\":\"919999999999\",\"conversation\":{\"id\":\"7a553a2122248af1a88c9fdbeceeb17c\",\"origin\":{\"type\":\"utility\"}},\"pricing\":{\"billable\":true,\"pricing_model\":\"CBP\",\"category\":\"utility\"}}]}</code></p>\n<p><strong>Message Read Status Webhook</strong><br /><code>{\"messaging_product\":\"whatsapp\",\"metadata\":{\"display_phone_number\":\"919873617805\",\"phone_number_id\":\"123456789\"},\"statuses\":[{\"id\":\"wamid.HBgMOTE3sdMDQyNzE0MzI2FQIAERgSRjRDQkM1NDU3QzI2QTRFQkZFAA==\",\"status\":\"read\",\"timestamp\":\"1710392808\",\"recipient_id\":\"919999999999\"}]}</code></p>\n","_postman_id":"8cc8079d-35d8-4be5-be0d-3ceee9d57681"},{"name":"Get Media File","item":[{"name":"Media File","id":"684748c9-dafa-4e52-8e08-717d49f0514c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"API-KEY","value":"your-api-key","type":"text"}],"url":"https://app2.cunnekt.com/v1/getmediafile?messageId=wamid.HBgMOTE3ODM4MjYyMjgxFQIAEhgWM0VCMDhFNEMyRTFCNEZFQkNBOUU4RAA=","description":"<p>Endpoint = <a href=\"https://app2.cunnekt.com/v1/getmediafile\">https://app2.cunnekt.com/v1/getmediafile</a>  </p>\n<p>Attached string = ?messageId=wamid.HBgMOTE3ODM4MjYyMjgxFQIAEhgWM0VCMDhFNEMyRTFCNEZFQkNBOUU4RAA=</p>\n<p>messageId value will be as per received message webhook message id.</p>\n","urlObject":{"protocol":"https","path":["v1","getmediafile"],"host":["app2","cunnekt","com"],"query":[{"key":"messageId","value":"wamid.HBgMOTE3ODM4MjYyMjgxFQIAEhgWM0VCMDhFNEMyRTFCNEZFQkNBOUU4RAA="}],"variable":[]}},"response":[],"_postman_id":"684748c9-dafa-4e52-8e08-717d49f0514c"}],"id":"0d3eb3c6-985e-4e25-8b14-5fbe70a726a1","description":"<p><strong>Assuming Incoming Image/PDF/document message Webhook is:</strong><br /><code>{\"messaging_product\":\"whatsapp\",\"metadata\":{\"display_phone_number\":\"919873617805\",\"phone_number_id\":\"123456789\"},\"contacts\":[{\"profile\":{\"name\":\"VIVEK KUMAR\"},\"wa_id\":\"919999999999\"}],\"messages\":[{\"from\":\"919999999999\",\"id\":\"wamid.HBgMOTE3ODM4MjYyMjgxFQIAEhgWM0VCMEJCMDUxOTQ2N0RGMTkwQ0M2RgA=\",\"timestamp\":\"1691583851\",\"type\":\"image\",\"image\":{\"mime_type\":\"image/jpeg\",\"sha256\":\"M/Hwg7p2OkyasSJJKZDX3i3cLAV1aeD4D5PbvyfBbhc=\",\"id\":\"6458224610913792\"}}]}</code></p>\n<p>Use the \"id\" parameter which is the unique message id required to fetch respective media file.</p>\n","_postman_id":"0d3eb3c6-985e-4e25-8b14-5fbe70a726a1"}],"event":[{"listen":"prerequest","script":{"id":"071bc89a-4f8c-4113-8234-8bd69acfe7c0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"25cb8fc4-4158-4f84-8374-3c9d2e5cd75d","type":"text/javascript","exec":[""]}}]}