{"info":{"_postman_id":"c35a1e5f-1c91-41ac-a7c4-f7f8d6d866c3","name":"Notification API (V2)","description":"<html><head></head><body><p>Yellow.ai's Notification API lets you send any Business-Initiated messages from the various supported channels directly from your CRM or Internal System.</p>\n<p>The API supports different channels (SMS, email, and WhatsApp) making it more easy for developers to integrate it anywhere in less time.</p>\n<h4 id=\"key-features-of-the-notification-api-\">Key features of the Notification API :</h4>\n<ul>\n<li>Single endpoint for multiple channels</li>\n<li>Enable range of API services with one-click</li>\n<li>Real-time reports on YM Platform with the basic features of the BI tool to visualise your data</li>\n<li>Callback Webhook Configuration support to receive delivery updates directly on your system</li>\n</ul>\n<h4 id=\"enable-api-access\">Enable API Access:</h4>\n<p>In order to use the Notification API you have to enable it on the platform as explained here</p>\n<ol>\n<li>Go to the <strong>Engage</strong> module,</li>\n<li>Navigate to <strong>Preferences</strong> and</li>\n<li>Click <strong>Enable API Access</strong>.</li>\n</ol>\n<p><em><strong>Note</strong></em>: If Engage is not enabled, you will get a <code>400</code> error with the message <code>API access is not enabled</code>.</p>\n<h4 id=\"request-information\">Request Information</h4>\n<p><strong>Base URL:</strong></p>\n<p><code>https://cloud.yellow.ai/api/engagements/notifications/v2/push?bot={botId}</code></p>\n<p><strong>Headers:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header</strong></th>\n<th><strong>Description/Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Content-Type</code></td>\n<td>application/json</td>\n</tr>\n<tr>\n<td><code>x-api-key</code></td>\n<td>* <strong>For</strong> <strong><code>app.yellow.ai</code></strong> <strong>platform</strong>: Get the API key from the path <strong>Configuration</strong> &gt; <strong>Access Control</strong> &gt; <strong>Bot API Key</strong>.  <br>* <strong>For</strong> <strong><code>cloud.yellow.ai</code></strong> <strong>platform</strong>: Click the Yellow logo on top left corner &gt; Select your bot from the dropdown &gt; On the top-right corner, click <strong>Configure</strong> &gt; On the left sidebar, click <strong>API Keys</strong> (you can see keys only if you are the super admin).</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note</strong>: Only users with Super Admin role can create a Bot API key.</p>\n</blockquote>\n<h4 id=\"request-query-parameter\">Request Query Parameter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Datatype</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>botId*</td>\n<td>String</td>\n<td>Unique ID of the bot. Login to the Platform and navigate to the bot . You can find the bot ID in the URL Eg: x16387123456</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"request-body-parameters\">Request Body Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>userDetails</code></td>\n<td>Object</td>\n<td>Yes</td>\n<td>Details of the user to be notified. Eg. Phone Number for WhatsApp.</td>\n</tr>\n<tr>\n<td><code>notification</code>  <br>fields: <code>params</code></td>\n<td>Object  <br>Object</td>\n<td>Yes</td>\n<td>Template details</td>\n</tr>\n<tr>\n<td><code>media</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Template Media URL, Quick Reply Payload can be passed here</td>\n</tr>\n<tr>\n<td><code>config</code>fields: <code>customPayload</code>, <code>postbackUrl</code></td>\n<td>Object  <br>Object, String</td>\n<td>Optional</td>\n<td>Configuration details for the API  <br><code>customPayload</code>: Custom info. Will be sent back with delivery updates.  <br><code>postbackUrl</code>: To receive delivery updates on clients webhook. Configurable from platform for now. Please go to Engage&gt;Preferences for setting up the <code>postbackUrl.</code></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"userdetails-object\"><strong><code>userDetails</code></strong> <strong>Object</strong></h4>\n<p><code>userDetails</code> may contain all relevant information about the user. It needs to have at least one contactable information and any number of additional parameters. For a WhatsApp notification, the <code>number</code> field is mandatory.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  \"userDetails\": {\n       \"number\": \"919090909090\", //mandatory for SMS, WhatsApp, Voice     //country code to be added without space // if not added default 91\n       \"email\": \"abc@xyz.com\", //mandatory for email channel\n       \"cc\": \"cc@xyz.com\", //applicable only for email // array of string or string\n       \"bcc\": \"bcc@xyz.com\", //applicable only for email // array of string or string\n   }\n\n</code></pre>\n<h4 id=\"notification-object\"><strong><code>notification</code></strong> <strong>Object</strong></h4>\n<p><code>notification</code> contains the message template details that needs to be sent as a notification. <code>templateId</code> is mandatory.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\"notification\": {\n    \"templateId\": \"template_name\", // name of the template from template manager// mandatory for WhatsApp, SMS(wherever applicable)\n    \"params\": { //renderable parameters defined in the template.\n           \"emiValue\": \"15000\", // variable parameter names as shown on template manager. Dynamic values can be passed.\n           \"balance\": \"79999\",\n           \"media\": [{ //applicable for whatsapp // \n                       \"title\": \"title\", //optional for document media types\n                       \"mediaLink\": \"https://URL.com.jpeg\",\n                       \"quickReplies\": [\n                                {\n                                    \"type\": \"quick_reply\",\n                                    \"value\": \"payload 1\"\n                                },\n                                {\n                                    \"type\": \"quick_reply\",\n                                    \"value\": \"payload 2\"\n                                }\n                            ]\n                     }],\n           \"quickReplies\": {\n                \"ctaUrlParam\": \"pricing-ai-chatbot\" // over here, \"pricing-ai-chatbot\" represents the extension of the URL after the domain (as configured in the template)\n           }\n\n</code></pre>\n<h4 id=\"config-object\"><code>config</code> Object</h4>\n<p>config contains the list of available pre-configuration that will be validated before sending the messages to the user.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\"config\": {\n        \"customPayload\": {\n            \"firstName\": \"Wasim\",\n            \"phone\": \"91999999999\",\n            \"UID\" : \"Got the details\"\n        },\n       \"postbackUrl\": \"https://webhook.url\"\n   }\n\n</code></pre>\n<h4 id=\"sample-webhook-payload\">Sample Webhook Payload</h4>\n<p>As soon as we receive a callback from the downstream services, we will post that data to the configured Webhook if available. Webhooks will be called with the request body.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"event\": {\n    \"status\": \"delivered\"\n  },\n  \"userId\": \"919999999999\",\n  \"source\": \"whatsapp\",\n  \"campaign\": \"apiNotifications\",\n  \"templateId\": \"video_button1\",\n  \"msgId\": \"3Yp8jdIUj8jNeoFOP1ZLT\",\n  \"workflowId\": null,\n  \"firstName\": \"Wasim\",\n  \"phone\": \"91999999999\",\n  \"UID\": \"Got the details\"\n}\n\n</code></pre>\n<h4 id=\"response-status-codes\"><strong>Response status codes</strong></h4>\n<p>On successful queueing of the notification, you will receive a 202 status code with the msgId. This confirms that the message details has been received by us and will be queued for sending on the relevant channel. The downstream service will pick the queue and will start sending it and updating the delivery status on the webhook and on the reports under Data Explorer on the platform.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>HTTP Status Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>202</td>\n<td>Message queued successfully. You will receive a msgId for acknowledgement and tracking.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request. Request structure is not formed correctly. Please check the <code>message</code> field for more information.</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorised. Please check your auth token. Only Super Admin Auth tokens are accepted for using API.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>Invalid inputs. The request structure is evaluated to be correct but the parameter values are not within expected range. Channel not configured.</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Rate limited. Occurs when there are too many requests sent to the API within a short time. Once a rate limit error is captured the rate of the API call should be decreased to honour the limits.  <br><em><strong>Default Rate Limit is 2000 requests/min per Bot.</strong></em></td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal server error. TraceId will be sent back for tracking.</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"whitelisting-of-ips\">Whitelisting of IPs:</h5>\n<p>Additionally, our outbound IPs given below must be whitelisted for the reports callback to flow into your system.</p>\n<ul>\n<li>13.71.52.164</li>\n<li>13.71.49.46</li>\n</ul>\n<h4 id=\"reports\">Reports</h4>\n<p>You can view data regarding the campaigns you execute through the <strong>Insights</strong> module.</p>\n<ol>\n<li>Within <strong>Insights</strong>, select the <strong>Data Explorer</strong> tab on the left.</li>\n<li>In the <strong>Data Explorer</strong> section, select <strong>Notification Reports</strong> under <strong>Default Datasets.</strong></li>\n<li>To begin experimenting with <strong>Campaign Reports</strong>, you can select <strong>Filters</strong>, and use filters such as <strong>BOTID</strong>, <strong>CAMPAIGNID</strong>, and <strong>TEMPLATEID</strong> individually, or in different combinations to pull data.</li>\n<li>Once you have generated a data set that you find useful, click on <strong>Summarise</strong>. With this, you can group and summarise this data set in different ways.</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9982063","collectionId":"c35a1e5f-1c91-41ac-a7c4-f7f8d6d866c3","publishedId":"UzBvGPGB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-06-30T08:08:35.000Z"},"item":[{"name":"WhatsApp","item":[{"name":"Combined (Variable, Image & Dynamic URL)","id":"6565c51f-de0d-4501-9df5-16f5545d8a83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"number\": \"{{Number}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"whatsapp\",\r\n        \"sender\": \"{{Sender}}\",\r\n        \"templateId\": \"wa_image_1var_cta_website_dynamaic\",\r\n        \"language\": \"en\",\r\n        \"params\": {\r\n            \"name\": \"Name\",\r\n            \"media\": {\r\n                \"mediaLink\": \"https://cdn.yellowmessenger.com/jFJGSzEc7TvK1646040853148.jpg\"\r\n            },\r\n            \"quickReplies\": {\r\n                \"ctaUrlParam\": \"AtomBeta\"\r\n            }\r\n        }\r\n    },\r\n    \"config\": {\r\n        \"customPayload\": {\r\n            \"firstName\": \"Wasim\",\r\n            \"phone\": \"9999999999\",\r\n            \"UID\" : \"Got the details\"\r\n        },\r\n       \"postbackUrl\": \"https://webhook.com\"\r\n   }\r\n}"},"url":"URLbot={{Bot_ID}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"}]},"isInherited":true,"source":{"_postman_id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","name":"WhatsApp","type":"folder"}},"urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6565c51f-de0d-4501-9df5-16f5545d8a83"},{"name":"Combined (Variable, Doc & Button)","id":"0a89db98-77fc-4e52-a811-ff7580c7b2f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"number\": \"{{Number}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"whatsapp\",\r\n        \"sender\": \"{{Sender}}\",\r\n        \"templateId\": \"video_button1\",\r\n        \"params\": {\r\n            \"1\": \"Name\",\r\n            \"media\": {\r\n                \"mediaLink\": \"https://cdn.yellowmessenger.com/XpWMGOZuGmxm1646041375697.pdf\",\r\n                \"name\" : \"Sample Doc Name\"\r\n            },\r\n            \"quickReplies\": {\r\n                \"ctaUrlParam\": \"AtomBeta\"\r\n            }\r\n        }\r\n    },\r\n    \"config\": {\r\n        \"customPayload\": {\r\n            \"firstName\": \"Wasim\",\r\n            \"phone\": \"91999999999\",\r\n            \"UID\" : \"Got the details\"\r\n        },\r\n       \"postbackUrl\": \"https://webhook.com\"\r\n   }\r\n}"},"url":"URLbot={{Bot_ID}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"}]},"isInherited":true,"source":{"_postman_id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","name":"WhatsApp","type":"folder"}},"urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a89db98-77fc-4e52-a811-ff7580c7b2f0"},{"name":"Text","id":"c76371b6-159a-4efd-aab7-fe479e6a0e90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"number\": \"{{Number}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"whatsapp\",\r\n        \"sender\": \"{{Sender}}\",\r\n        \"templateId\": \"video_button1\",\r\n        \"params\": {\r\n            \"1\": \"Name\",\r\n            \"media\": {\r\n                \"mediaLink\": \"https://cdn.yellowmessenger.com/XpWMGOZuGmxm1646041375697.pdf\",\r\n                \"name\" : \"Sample Doc Name\"\r\n            },\r\n            \"quickReplies\": {\r\n                \"ctaUrlParam\": \"AtomBeta\"\r\n            }\r\n        }\r\n    },\r\n    \"config\": {\r\n        \"customPayload\": {\r\n            \"firstName\": \"Wasim\",\r\n            \"phone\": \"91999999999\",\r\n            \"UID\" : \"Got the details\"\r\n        },\r\n       \"postbackUrl\": \"https://webhook.com\"\r\n   }\r\n}"},"url":"URLbot={{Bot_ID}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"}]},"isInherited":true,"source":{"_postman_id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","name":"WhatsApp","type":"folder"}},"urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c76371b6-159a-4efd-aab7-fe479e6a0e90"},{"name":"2 Variables","id":"659103b9-3e1d-414d-af3b-3699d3baf722","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"number\": \"{{Number}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"whatsapp\",\r\n        \"sender\": \"{{Sender}}\",\r\n        \"templateId\": \"status_shipping\",\r\n        \"params\": {\r\n            \"customer_name\": \"Wasim\",\r\n            \"status\": \"Delivered\"\r\n        }                \r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"}]},"isInherited":true,"source":{"_postman_id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","name":"WhatsApp","type":"folder"}},"urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"659103b9-3e1d-414d-af3b-3699d3baf722"},{"name":"5variables_2Quick Replies","id":"d0677ffa-2bae-4dc5-9bc5-7e1afc56644d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"number\": \"{{Number}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"whatsapp\",\r\n        \"sender\": \"{{Sender}}\",\r\n        \"templateId\": \"order_confirmation\",\r\n        \"params\": {\r\n            \"1\": \"Wasim\",\r\n            \"2\": \"$999\",\r\n            \"3\": \"5\",\r\n            \"4\": \"$1024\",\r\n            \"5\": \"https://payhere.com\",\r\n            \"quickReplies\": [\r\n                {\r\n                    \"type\": \"quick_reply\",\r\n                    \"value\": \"Wasim1234\"\r\n                },\r\n                {\r\n                    \"type\": \"quick_reply\",\r\n                    \"value\": \"payload 2\"\r\n                }\r\n            ]\r\n        }\r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0677ffa-2bae-4dc5-9bc5-7e1afc56644d"},{"name":"CTA_Phone","id":"82f7aff1-3252-442f-8116-5ee72f94c3a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"number\": \"{{Number}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"whatsapp\",\r\n        \"sender\": \"{{Sender}}\",\r\n        \"templateId\": \"wa2_text_btype_cta_phno_var\",\r\n        \"params\": {\r\n            \r\n        }                \r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"}]},"isInherited":true,"source":{"_postman_id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","name":"WhatsApp","type":"folder"}},"urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"82f7aff1-3252-442f-8116-5ee72f94c3a5"},{"name":"CTA Static Website","id":"0d475899-ca3c-462f-a452-4f0d0b7bb0a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"number\": \"{{Number}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"whatsapp\",\r\n        \"sender\": \"{{Sender}}\",\r\n        \"templateId\": \"wa_text_btype_cta_website\",\r\n        \"params\": {\r\n            \r\n        }                \r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"}]},"isInherited":true,"source":{"_postman_id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","name":"WhatsApp","type":"folder"}},"urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d475899-ca3c-462f-a452-4f0d0b7bb0a3"},{"name":"CTA Dynamic URL","id":"da234442-cc0d-41a9-8541-6266cf6c33e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"number\": \"{{Number}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"whatsapp\",\r\n        \"sender\": \"{{Sender}}\",\r\n        \"templateId\": \"wa_dynamic_url\",\r\n        \"params\": {\r\n            \"quickReplies\": {\r\n                \"ctaUrlParam\": \"AtomBeta\"\r\n            }\r\n        }\r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"}]},"isInherited":true,"source":{"_postman_id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","name":"WhatsApp","type":"folder"}},"urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"da234442-cc0d-41a9-8541-6266cf6c33e7"},{"name":"Image_5variable","id":"4373b19d-f22e-4007-b247-9e81550aa1ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"number\": \"{{Number}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"whatsapp\",\r\n        \"sender\": \"{{Sender}}\",\r\n        \"templateId\": \"wa_var5_cta_number_image\",\r\n        \"params\": {\r\n            \"name\": \"Name\",\r\n            \"email\": \"Mail\",\r\n            \"number\": \"919999999999\",\r\n            \"link\": \"variable\",\r\n            \"anumber\": \"Variable\",\r\n             \"media\":{\r\n                \"mediaLink\": \"https://cdn.yellowmessenger.com/jFJGSzEc7TvK1646040853148.jpg\"\r\n            }\r\n        }                \r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"}]},"isInherited":true,"source":{"_postman_id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","name":"WhatsApp","type":"folder"}},"urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4373b19d-f22e-4007-b247-9e81550aa1ff"},{"name":"Video_1variable","id":"43cacad9-0973-4616-95ee-f5c3c9deb49e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"number\": \"{{Number}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"whatsapp\",\r\n        \"sender\": \"{{Sender}}\",\r\n        \"templateId\": \"video_variable\",\r\n        \"params\": {\r\n            \"1\":\"Wasim\",\r\n            \"media\":{\r\n                \"mediaLink\": \"https://cdn.yellowmessenger.com/Rs7qqNwp5Oky1646041065513.mp4\"\r\n            }\r\n        }                \r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"}]},"isInherited":true,"source":{"_postman_id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","name":"WhatsApp","type":"folder"}},"urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"43cacad9-0973-4616-95ee-f5c3c9deb49e"},{"name":"PDF","id":"cc570e0b-e14c-403c-b372-fbc833b4f234","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"number\": \"{{Number}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"whatsapp\",\r\n        \"sender\": \"{{Sender}}\",\r\n        \"templateId\": \"pdf1\",\r\n        \"params\": {\r\n            \"media\":{\r\n                \"mediaLink\": \"https://cdn.yellowmessenger.com/XpWMGOZuGmxm1646041375697.pdf\",\r\n                \"name\" : \"PDF\"\r\n            }\r\n        }                \r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"}]},"isInherited":true,"source":{"_postman_id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","name":"WhatsApp","type":"folder"}},"urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc570e0b-e14c-403c-b372-fbc833b4f234"}],"id":"5961e189-e9cb-40ad-8ba6-7bada77acc06","description":"<p>This Collection contains few sample payload for different types of Templates supported by WhatsApp.</p>\n<h4 id=\"key-pointers\">Key Pointers</h4>\n<ol>\n<li>Use your Bot ID and Access Token only to avoid unauthorised access and tokens getting expired.</li>\n<li>Don't use pre-filled or tokens or tokens shared by others. Please generate your token by logging in from the Super Admin Account on the platform</li>\n<li>Variable Parameter Key names passed under the <code>params</code> object should be fetched from the platform template manager only. You will see the Variable keys highlighted on the Template Content</li>\n</ol>\n<p><img src=\"https://cdn.yellowmessenger.com/KkdFyAUICvgx1656575886395.png\" alt /></p>\n<p>4. <code>ctaUrlParam</code> should only contain the extension of the URL. The URL domain needs to be specified while creating templates. Eg: <a href=\"https://yellow.ai/ctaUrlParam\">https://yellow.ai/<code>ctaUrlParam</code></a></p>\n<p>5. <code>name</code> field is only supported for media type document in <code>media</code> object</p>\n<p>6. <code>postbackUrl</code> should contain the webhook shared by the client and needs to be added in the preference tab inside engage module.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"9b5b0f9d-865c-40c4-9e4a-87ba87413876","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"623095bb-89c9-4952-bcaf-5648823db44f","type":"text/javascript","exec":[""]}}],"_postman_id":"5961e189-e9cb-40ad-8ba6-7bada77acc06"},{"name":"SMS","item":[{"name":"Template_Without_Variable","id":"ee1a8161-5726-4661-9f3b-858a89a5a38f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"number\": \"{{Sender}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"sms\",\r\n        \"templateId\": \"testing\",\r\n        \"profileId\": \"kaleyra_1\"\r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee1a8161-5726-4661-9f3b-858a89a5a38f"},{"name":"Template_With_Variable","id":"2078395d-4704-4453-8f80-33f24c8af854","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":"71868140fbf3bc3f3439a61024df57654c7b69a9bc79bf56ff75e3c3ab735774oZELpzWIEKO938iub8DdK","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"number\": \"6285717118313\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"sms\",\r\n        \"templateId\": \"yellow_test\",\r\n        \"profileId\": \"nadyne_profile_2\"\r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2078395d-4704-4453-8f80-33f24c8af854"}],"id":"c5013846-87a9-4062-9c1a-055eb7806f38","description":"<h4 id=\"prerequisite\">Prerequisite</h4>\n<p>Before starting with SMS notification API, <a href=\"https://docs.yellow.ai/docs/cookbooks/Understanding%20channels%20101/sms-india-101\">read the article</a> to learn more about SMS Channel and DLT Registrations.</p>\n<h4 id=\"key-pinters\">Key pinters</h4>\n<ul>\n<li>Sender/Profile will vary based on the Email Provider Configured for the Bot</li>\n<li>Template Approval is dependent on the Email Service Provider or DLT process for India</li>\n<li>Three Providers of Email Config are supported for now:<ul>\n<li>Twilio</li>\n<li>Kaleyra</li>\n<li>ICS</li>\n</ul>\n</li>\n</ul>\n","_postman_id":"c5013846-87a9-4062-9c1a-055eb7806f38"},{"name":"Email","item":[{"name":"Template_Without Variable","id":"5cc44a87-55fc-4133-aeef-8457fe22a736","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"email\": \"{{Email}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"email\",\r\n        \"sender\": \"{{Sender_Email}}\",\r\n        \"templateId\": \"newsletter_check_1\"  \r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5cc44a87-55fc-4133-aeef-8457fe22a736"},{"name":"Template_With _Variables","id":"a8f87152-89fc-4237-91f5-0fb2314256dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"email\": \"{{Email}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"email\",\r\n        \"sender\": \"{{Sender_Email}}\",\r\n        \"templateId\": \"email_var\",\r\n         \"params\": {\r\n            \"name\": \"YELLOW.AI\"\r\n        }  \r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8f87152-89fc-4237-91f5-0fb2314256dc"},{"name":"Teamplate_With_HTML Code_without_variable","id":"7af2cdf0-9c29-4a76-a45d-111e62a34c72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"email\": \"{{Email}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"email\",\r\n        \"sender\": \"{{Sender_Email}}\",\r\n        \"templateId\": \"newsletter_check_3\"\r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7af2cdf0-9c29-4a76-a45d-111e62a34c72"},{"name":"Teamplate_With_HTML Code_with_variable","id":"d0446981-1976-4b62-bd33-52b2cca99093","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userDetails\": {\r\n        \"email\": \"{{Email}}\"\r\n    },\r\n    \"notification\": {\r\n        \"type\": \"email\",\r\n        \"sender\": \"{{Sender_Email}}\",\r\n        \"templateId\": \"email_html_var\",\r\n         \"params\" : {\r\n             \"Name\" : \"Wasim\",\r\n             \"var\" : \"Yellow.ai\"\r\n                    }\r\n    }\r\n}"},"url":"URLbot={{Bot_ID}}","urlObject":{"host":["URLbot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0446981-1976-4b62-bd33-52b2cca99093"}],"id":"5fea5e39-8168-4c9e-977c-fc667dfba0e2","description":"<h4 id=\"outbound-email-using-v2-notification-api\">Outbound Email using V2 Notification API</h4>\n<h5 id=\"different-template-types-supported\">Different Template Types Supported:</h5>\n<ol>\n<li>Text Body with Variable</li>\n<li>HTML Based Email Template for Rich Content</li>\n</ol>\n<p>Please refer to the below doc Before you start with using V2 Notification API for Email Channel, know more about <a href=\"https://docs.yellow.ai/docs/cookbooks/Understanding%20channels%20101/email-outbound-101\">Email Outbound</a>l.</p>\n<h5 id=\"note\">Note:</h5>\n<ul>\n<li>Template approval is not required for Email</li>\n<li>Template can be added on the Yellow's Template Manager directly</li>\n<li>Sender will change based on the configuration of the Email Channel</li>\n<li>Two types of configurations are supported for now:<ul>\n<li>SMTP</li>\n<li>Sendgrid</li>\n</ul>\n</li>\n</ul>\n","_postman_id":"5fea5e39-8168-4c9e-977c-fc667dfba0e2"},{"name":"Bulk Messaging API","item":[{"name":"CSV Upload","id":"36d77a33-0daf-4c76-a642-045fa8777dc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"userDetails\":{\n       \"csv\":\"https://URL.csv\"\n   },\n   \"notification\":{\n       \"templateId\":\"ship_status\",\n       \"type\":\"whatsapp\",\n       \"sender\":\"919999999999\"\n       }\n}\n"},"url":"{{BULK_URL}}bot={{Bot_ID}}","urlObject":{"host":["{{BULK_URL}}bot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"36d77a33-0daf-4c76-a642-045fa8777dc3"},{"name":"CSV Upload with Config","id":"47e4690b-087e-4cd9-aa8a-dc669595a924","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"userDetails\":{\n       \"csv\":\"https://URL.csv\"\n   },\n   \"notification\":{\n       \"templateId\":\"ship_status\",\n       \"type\":\"whatsapp\",\n       \"sender\":\"919999999999\"\n       },\n    \"config\": {\n        \"customPayload\": {\n            \"firstName\": \"Wasim\",\n            \"phone\": \"87878787878\",\n            \"UID\" : \"Got the details\"\n        }\n   }\n}\n"},"url":"{{BULK_URL}}bot={{Bot_ID}}","urlObject":{"host":["{{BULK_URL}}bot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"47e4690b-087e-4cd9-aa8a-dc669595a924"},{"name":"File Upload","id":"e12da0d3-0d60-4a94-b716-41fbc007ff98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"type":"file","key":"userDetails","src":"/Users/wasimlaskar/Downloads/Untitled spreadsheet - E2kaIdxhydeG1656677093692.csv"},{"type":"text","key":"notification","value":"{\"type\":\"whatsapp\",\"sender\":\"918068402322\",\"templateId\":\"wa_image_cta_website_1var\"}"}]},"url":"{{BULK_URL}}bot={{Bot_ID}}","urlObject":{"host":["{{BULK_URL}}bot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e12da0d3-0d60-4a94-b716-41fbc007ff98"},{"name":"File Upload with Config","id":"6587faf4-ff6f-42bc-addb-65bd0cc7f3ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"type":"file","key":"userDetails","value":null},{"type":"text","key":"notification","value":"{\"type\":\"whatsapp\",\"sender\":\"919999999999\",\"templateId\":\"wis_t3\"}"},{"key":"config","value":"{\"customPayload\":{\"Name\":\"Wasim\",\"UID\":\"1234\"}}","type":"text"}]},"url":"{{BULK_URL}}bot={{Bot_ID}}","urlObject":{"host":["{{BULK_URL}}bot={{Bot_ID}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6587faf4-ff6f-42bc-addb-65bd0cc7f3ec"}],"id":"6b08f300-6405-457e-aaf7-7df822e258c8","description":"<h2 id=\"send-bulk-notifications\">Send Bulk Notifications</h2>\n<p>Bulk API lets you to send Bulk Notifications with a single API call ensuring lesser loads on your system. You can send messages to a higher volume of users. You need to create a CSV file with the information of the user and the variable parameters of the template to be used while sending the notification.</p>\n<p>Bulk API has two types of CSV feed support:</p>\n<ul>\n<li>CSV File URL</li>\n<li>Multipart/File Upload</li>\n</ul>\n<h4 id=\"csv-file-url\">CSV File URL</h4>\n<p>This supports passing a CSV File hosted at client-end. A public URL needs to be passed from which the CSV will be fetched and used for the campaign.</p>\n<h4 id=\"api-payload\">API Payload</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>userDetails</code> &gt; <code>csv</code></td>\n<td>Link of the CSV containing the user details</td>\n</tr>\n<tr>\n<td><code>notification</code> &gt;<code>templateId type sender</code></td>\n<td>Details of the Notification to be send  <br />Template Name from Template Manager of Platform  <br />Type of the channel. Eg: <code>whatsapp</code>Sender ID of the Channel</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"column-names-format-for-csv-file\">Column names format for CSV file</h4>\n<ol>\n<li><strong>number/email</strong>: The first row should contain the user details info and the column name should be <code>name</code> or <code>email</code> from WhatsApp/SMS and Email respectively.</li>\n<li>Starting with Second row the variable params needs to be passed with the same column name as the variable name visible on the Template Manager.</li>\n<li>For Media Template each records should have the media URL and the column name should be <code>mediaLink</code></li>\n<li>For Media File name where media type is document the file name can be passed with column name <code>mediaName</code></li>\n</ol>\n<blockquote>\n<p><strong>Note</strong>: The mediaLink and mediaName should be passed for every record in the csv. For sending same media to all the users the same media link needs to be passed for each user.</p>\n</blockquote>\n<h4 id=\"sample-csv\"><strong>Sample CSV</strong></h4>\n<ol>\n<li>With Variable Names defined on templates: <a href=\"https://cdn.yellowmessenger.com/NZDwkaMdAb2d1657194834748.csv\">Link</a></li>\n<li>With Default Variables: <a href=\"https://cdn.yellowmessenger.com/Yqec8qnpT8FB1657195241658.csv\">Link</a></li>\n</ol>\n<blockquote>\n<p><strong>Multipart/File Upload</strong>: This supports uploading a file from the local system/server directly by providing the file path.</p>\n</blockquote>\n<h4 id=\"api-payload-1\">API Payload</h4>\n<p>Multipart used form-data payload as described below</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>userDetails</code></td>\n<td>Upload the CSV file/Path to file</td>\n</tr>\n<tr>\n<td><code>notification</code></td>\n<td>JSON object of the notification details such as <code>type</code>, <code>sender</code> and <code>templateId</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Column name format in CSV file:</p>\n<ol>\n<li><code>number/email</code>: The first row should contain the user details info and the column name should be <code>name</code> or <code>email</code> from WhatsApp/SMS and Email respectively.</li>\n<li>Starting with Second row the variable params needs to be passed with the same column name as the variable name visible on the Template Manager.</li>\n<li>For Media Template each records should have the media URL and the column name should be <code>mediaLink</code></li>\n<li>For Media File name where media type is document the file name can be passed with column name <code>mediaName</code></li>\n</ol>\n<blockquote>\n<p><strong>Note</strong>: The mediaLink and mediaName should be passed for every record in the csv. For sending same media to all the users the same media link needs to be passed for each user.*</p>\n</blockquote>\n<p><strong>Sample CSV :</strong></p>\n<ol>\n<li>With Variable Names defined on templates: <a href=\"https://cdn.yellowmessenger.com/NZDwkaMdAb2d1657194834748.csv\">Link</a></li>\n<li>With Default Variables: <a href=\"https://cdn.yellowmessenger.com/Yqec8qnpT8FB1657195241658.csv\">Link</a></li>\n</ol>\n<h3 id=\"rate-limits\">Rate Limits</h3>\n<ol>\n<li>Bulk API can be called <strong>once per 90 sec</strong></li>\n<li>A maximum of 10000 records can be passed on the CSV. The limit cannot be increased at any point.</li>\n<li>For records more than 10k the CSV can be split into multiple files of 10k records in each and can be sent using the API at every 90sec interval.</li>\n<li>The Bulk API will not send the 10K Notifications in a single go. It will queue the records and will send at a rate of 50 message/sec for WhatsApp which is the default rate. For other channels it will vary depending on the configuration</li>\n</ol>\n","_postman_id":"6b08f300-6405-457e-aaf7-7df822e258c8"}],"variable":[{"key":"URL","value":"URL"}]}