{"info":{"_postman_id":"877bcd31-7ed2-4b06-8d53-c5965d7bf071","name":"Omnichat Open API","description":"<html><head></head><body><h3 id=\"authorization\">Authorization</h3>\n<p>Bearer HTTP Authentication is used for Omnichat Open API, you will be given a API Token from Omnichat.</p>\n<p>Sending HTTP requests with the <strong>Authorization</strong> header that contains the word <strong>Bearer</strong> followed by a space and a API Token</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Security Scheme Type</strong></th>\n<th><strong>HTTP Authorization Scheme</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>HTTP</td>\n<td>Bearer</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"rate-limits\">Rate Limits</h3>\n<p>A rate limit is the number of requests the API can receive in a given time period. Default API rate limit is 40 requests per second per Omnichat Team account.</p>\n<p>The following updates will take effect starting July 29, 2026:</p>\n<ul>\n<li><p>Requests exceeding the rate limit will trigger a 429 Too Many Requests error.</p>\n</li>\n<li><p>A <code>Retry-After</code> header will be provided in 429 responses to indicate the required wait time (in seconds) before the next retry.</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"186374","collectionId":"877bcd31-7ed2-4b06-8d53-c5965d7bf071","publishedId":"2s9YsMBC4o","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-12T07:43:06.000Z"},"item":[{"name":"Chatbot","item":[{"name":"Get chatbot list","id":"d25114b7-d95c-445a-9772-ca1b0096aff6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n"}],"url":"https://open-api.omnichat.ai/v1/chatbots","description":"<h4 id=\"description\">Description</h4>\n<p>Get chatbot list</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>Marketing Cloud / Social CDP Cloud</p>\n</li>\n<li><p>Marketing Open API Module</p>\n</li>\n</ul>\n<h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the following body:</p>\n<p>Array of <code>Chatbot</code> Objects</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>id</td>\n<td>Chatbot ID</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Chatbot name</td>\n</tr>\n<tr>\n<td>type</td>\n<td>Chatbot Type.  <br />  <br />[As different messaging platforms have different message format, special message format will only be allowed in specific type chatbot]  <br />  <br />Possible values:  <br />  <br /><code>1</code>: All Platform  <br /><code>2</code>: Facebook / IG Only  <br /><code>3</code>: LINE Only  <br /><code>4</code>: Web Chat Only  <br /><code>6</code>: For WhatsApp Only</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","chatbots"],"host":["open-api","omnichat","ai"],"query":[],"variable":[]}},"response":[{"id":"f54ff9a6-2620-47ec-93dc-319d5d79d743","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://open-api.omnichat.ai/v1/chatbots"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"content\": [\n        {\n            \"id\": \"0031ab01-93b1-480a-9270-83b4f48c4229\",\n            \"name\": \"LINE chatbot\",\n            \"type\": 3\n        },\n        {\n            \"id\": \"007898be-c595-4668-a6ba-1ab9c593cace\",\n            \"name\": \"FB chatbot\",\n            \"type\": 2\n        }\n    ]\n}"}],"_postman_id":"d25114b7-d95c-445a-9772-ca1b0096aff6"},{"name":"Get chatbot's message blocks","id":"b2b5825a-1f11-4661-a5f9-e55140a9a3ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"url":"https://open-api.omnichat.ai/v1/chatbots/:chatbotId/message-blocks","description":"<h4 id=\"description\">Description</h4>\n<p>Get chatbot's message blocks list</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>Marketing Cloud / Social CDP Cloud</p>\n</li>\n<li><p>Marketing Open API Module</p>\n</li>\n</ul>\n<h4 id=\"path-parameters\">Path Parameters</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>chatbotId</td>\n<td><strong>Required.</strong>  <br />Chatbot ID</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the following body:</p>\n<p>Array of <code>Message Block</code> Objects</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>id</td>\n<td>Message Block ID</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Message Block name</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","chatbots",":chatbotId","message-blocks"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"1ea6d77d-f2da-491b-be21-b56d74fe26da","description":{"content":"<p>Chatbot ID</p>\n","type":"text/plain"},"type":"any","value":"<chatbot-id>","key":"chatbotId"}]}},"response":[{"id":"8b53fd82-6dad-4127-b9cf-eb73fdaf8d8c","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://open-api.omnichat.ai/v1/chatbots/:chatbotId/message-blocks","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","chatbots",":chatbotId","message-blocks"],"variable":[{"key":"chatbotId","value":"<chatbot-id>","description":"Chatbot ID"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"content\": [\n      {\n        \"id\": \"07269d7a-68d6-4f36-9c0b-c837d9b296ef\",\n        \"name\": \"Promo 1 Block\"\n      },\n      {\n        \"id\": \"0833e711-f607-42da-aff7-b566b2d760e9\",\n        \"name\": \"Promo 2 Block\"\n      }\n    ]\n}"}],"_postman_id":"b2b5825a-1f11-4661-a5f9-e55140a9a3ea"}],"id":"f3e6af26-a348-4d9b-b1b5-ff70e82b8a42","_postman_id":"f3e6af26-a348-4d9b-b1b5-ff70e82b8a42","description":""},{"name":"Messaging","item":[{"name":"Get chat history","id":"a696226b-c319-4db3-a229-92cfdeba804d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"url":"https://open-api.omnichat.ai/v1/messages?page=1&pageSize=20&after=1652371200000&before=1653580800000&platform=whatsapp&channelId","description":"<h4 id=\"description\">Description</h4>\n<p>Get chat history by date range</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>Customer Service Cloud / Social CDP Cloud</p>\n</li>\n<li><p>CRM Open API Module</p>\n</li>\n</ul>\n<h4 id=\"query-parameters\">Query Parameters</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>Type</strong></th>\n<th><strong>Default Value</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>page</td>\n<td>Integer</td>\n<td>1</td>\n<td>No</td>\n<td>Page number to query</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Integer</td>\n<td>20</td>\n<td>No</td>\n<td>Number of query results per page</td>\n</tr>\n<tr>\n<td>after</td>\n<td>Long</td>\n<td>-</td>\n<td>Yes</td>\n<td>Start timestamp (milliseconds)</td>\n</tr>\n<tr>\n<td>before</td>\n<td>Long</td>\n<td>-</td>\n<td>Yes</td>\n<td>End timestamp (milliseconds)</td>\n</tr>\n<tr>\n<td>platform</td>\n<td>String</td>\n<td>-</td>\n<td>Yes</td>\n<td>Messaging platform type.  <br />  <br />Possible values:  <br />- line  <br />- facebook  <br />- instagram  <br />- wechat  <br />- whatsapp  <br />- webchat</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>String</td>\n<td>-</td>\n<td>No</td>\n<td>Channel ID</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the follow response body:</p>\n<p>Response object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>content</td>\n<td>Array of <code>Message</code> Objects</td>\n<td>Messages sent / received in the specific period</td>\n</tr>\n<tr>\n<td>totalElements</td>\n<td>Integer</td>\n<td>Total Number of messages</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Message</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>channel</td>\n<td><code>Channel</code> Object</td>\n<td>Messaging Channel of the message</td>\n</tr>\n<tr>\n<td>roomId</td>\n<td>String</td>\n<td>Chat Room</td>\n</tr>\n<tr>\n<td>customerUserId</td>\n<td>String</td>\n<td>Customer User ID</td>\n</tr>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>Message ID</td>\n</tr>\n<tr>\n<td>senderType</td>\n<td>String</td>\n<td>Sender type  <br />  <br />Possible values:  <br />- <code>customer</code>  <br />- <code>agent</code>  <br />- <code>bot</code>  <br />- <code>ai-chat</code></td>\n</tr>\n<tr>\n<td>senderName</td>\n<td>String</td>\n<td>Sender name  <br />  <br />For <code>senderType=customer</code> , customer name  <br />  <br />For <code>senderType=agent</code>, agent user name  <br />  <br />For <code>senderType=bot</code>, always return <code>Bot</code>  <br />  <br />For <code>senderType=ai-chat</code>, always return <code>AI Chat</code></td>\n</tr>\n<tr>\n<td>senderUserId</td>\n<td>String</td>\n<td>Sender's User ID  <br />  <br />For <code>senderType=customer</code> :  <br />  <br />- For LINE → LINE User ID  <br />- For Facebook → Facebook PSID  <br />- For WhatsApp → WhatsApp Phone Number  <br />- For Instagram → Instagram User ID  <br />- For WeChat → WeChat User ID  <br />- For Website → Omnichat User ID  <br />  <br />For <code>senderType=agent</code>, the Omnichat user ID  <br />  <br />For <code>senderType=bot</code>, always return <code>bot</code>  <br />  <br />For <code>senderType=ai-chat</code>, always return <code>ai-chat</code></td>\n</tr>\n<tr>\n<td>senderPhone</td>\n<td>String</td>\n<td>Sender's phone  <br />  <br />For <code>senderType=agent</code>, the agent's Omnichat login phone</td>\n</tr>\n<tr>\n<td>senderEmail</td>\n<td>String</td>\n<td>Sender's email  <br />  <br />For <code>senderType=agent</code>, the agent's Omnichat login email</td>\n</tr>\n<tr>\n<td>time</td>\n<td>Long</td>\n<td>Message sent / received timestamp</td>\n</tr>\n<tr>\n<td>messageType</td>\n<td>String</td>\n<td>Message type.  <br />  <br />Supported values:  <br />- <code>text</code>  <br />- <code>photo</code>  <br />- <code>audio</code>  <br />- <code>video</code>  <br />- <code>document</code>  <br />- <code>chatbot</code></td>\n</tr>\n<tr>\n<td>messageStatus</td>\n<td>String</td>\n<td>Message status.  <br />  <br />Supported values:  <br />- <code>sent</code>: Message is being sent, but not yet delivered to the recipient  <br />- <code>delivered</code>: Message is delivered to the recipient's phone  <br />- <code>read</code>: Message is read by the recipient  <br />- <code>error</code>: Message is failed to send</td>\n</tr>\n<tr>\n<td>message</td>\n<td>String</td>\n<td>Message text content (Nullable)</td>\n</tr>\n<tr>\n<td>mediaUrl</td>\n<td>String</td>\n<td>Media file URL for messageType=photo, audio, video, document, chatbot  <br />  <br />(Nullable)</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Channel</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>platform</td>\n<td>String</td>\n<td>Messaging Platform.  <br />  <br />Supported values:  <br />- line  <br />- facebook  <br />- whatsapp  <br />- instagram  <br />- wechat  <br />- website</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>String</td>\n<td>Specific Messaging Platform Channel ID.  <br />  <br />- For LINE → LINE Channel ID  <br />- For Facebook → Facebook Page ID  <br />- For WhatsApp → WhatsApp Business Phone Number  <br />- For Instagram → Instagram Business Account ID  <br />- For WeChat → WeChat ID  <br />- For website → Fixed value website</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"INVALID_REQUEST_PARAMETERS\",\n    \"message\": \"The date range between after and before cannot exceed 7 days.\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","messages"],"host":["open-api","omnichat","ai"],"query":[{"description":{"content":"<p>Page number. (Default: 1)</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Number of messages per page. (Default: 20 ;Max: 100)</p>\n","type":"text/plain"},"key":"pageSize","value":"20"},{"description":{"content":"<p>The start of the specific date range in unix timestamp (milliseconds) (inclusive) [Max date range specified is 7 days]</p>\n","type":"text/plain"},"key":"after","value":"1652371200000"},{"description":{"content":"<p>The end of the specific date range in unix timestamp (milliseconds) (exclusive) [Max date range specified is 7 days]</p>\n","type":"text/plain"},"key":"before","value":"1653580800000"},{"description":{"content":"<p>[Required] Messaging Platform</p>\n","type":"text/plain"},"key":"platform","value":"whatsapp"},{"description":{"content":"<p>[Optional] Specific Messaging Platform Channel ID</p>\n","type":"text/plain"},"key":"channelId","value":null}],"variable":[]}},"response":[{"id":"86de0ef0-f389-447c-b721-adad330f8783","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://open-api.omnichat.ai/v1/messages?page=1&pageSize=20&after=1652371200000&before=1653580800000&platform=whatsapp&channelId","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","messages"],"query":[{"key":"page","value":"1"},{"key":"pageSize","value":"20"},{"key":"after","value":"1652371200000"},{"key":"before","value":"1653580800000"},{"key":"platform","value":"whatsapp"},{"key":"channelId","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"content\": [\n    {\n      \"channel\": {\n        \"platform\": \"whatsapp\",\n        \"channelId\": \"85290000001\"\n      },\n      \"id\": \"mid-1\",\n      \"time\": 1604647464032,\n      \"senderName\": \"Peter\",\n      \"senderUserId\": \"85290000002\",\n      \"senderPhone\": \"85290000002\",\n      \"senderEmail\": null,\n      \"senderType\": \"customer\",\n      \"messageType\": \"text\",\n      \"messageStatus\": \"delivered\",\n      \"message\": \"hello\",\n      \"mediaUrl\": null,\n      \"roomId\": \"wh18695d48-5788-4d0a-a02c-9522a996258c-85290000002\",\n      \"customerUserId\": \"85290000002\"\n    },\n    {\n      \"channel\": {\n        \"platform\": \"whatsapp\",\n        \"channelId\": \"85290000001\"\n      },\n      \"id\": \"mid-2\",\n      \"time\": 1604647464032,\n      \"senderName\": \"Peter\",\n      \"senderUserId\": \"85290000002\",\n      \"senderPhone\": \"85290000002\",\n      \"senderEmail\": null,\n      \"senderType\": \"customer\",\n      \"messageType\": \"photo\",\n      \"messageStatus\": \"read\",\n      \"message\": null,\n      \"mediaUrl\": \"https://example.com/83b4f48c4229.png\",\n      \"roomId\": \"wh18695d48-5788-4d0a-a02c-9522a996258c-85290000002\",\n      \"customerUserId\": \"85290000002\"\n    },\n    {\n      \"channel\": {\n        \"platform\": \"whatsapp\",\n        \"channelId\": \"85290000001\"\n      },\n      \"id\": \"mid-3\",\n      \"time\": 1604647464032,\n      \"senderName\": \"Peter\",\n      \"senderUserId\": \"85290000002\",\n      \"senderPhone\": \"85290000002\",\n      \"senderEmail\": null,\n      \"senderType\": \"customer\",\n      \"messageType\": \"audio\",\n      \"messageStatus\": \"read\",\n      \"message\": null,\n      \"mediaUrl\": \"https://example.com/83b4f48c4229.ogg\",\n      \"roomId\": \"wh18695d48-5788-4d0a-a02c-9522a996258c-85290000002\",\n      \"customerUserId\": \"85290000002\"\n    },\n    {\n      \"channel\": {\n        \"platform\": \"whatsapp\",\n        \"channelId\": \"85290000001\"\n      },\n      \"id\": \"mid-4\",\n      \"time\": 1604647464032,\n      \"senderName\": \"Peter\",\n      \"senderUserId\": \"85290000002\",\n      \"senderPhone\": \"85290000002\",\n      \"senderEmail\": null,\n      \"senderType\": \"customer\",\n      \"messageType\": \"document\",\n      \"messageStatus\": \"read\",\n      \"message\": null,\n      \"mediaUrl\": \"https://example.com/83b4f48c4229.pdf\",\n      \"roomId\": \"wh18695d48-5788-4d0a-a02c-9522a996258c-85290000002\",\n      \"customerUserId\": \"85290000002\"\n    },\n    {\n      \"channel\": {\n        \"platform\": \"whatsapp\",\n        \"channelId\": \"85290000001\"\n      },\n      \"id\": \"mid-5\",\n      \"time\": 1604647464032,\n      \"senderName\": \"Peter\",\n      \"senderUserId\": \"85290000002\",\n      \"senderPhone\": \"85290000002\",\n      \"senderEmail\": null,\n      \"senderType\": \"customer\",\n      \"messageType\": \"video\",\n      \"messageStatus\": \"read\",\n      \"message\": null,\n      \"mediaUrl\": \"https://example.com/83b4f48c4229.mp4\",\n      \"roomId\": \"wh18695d48-5788-4d0a-a02c-9522a996258c-85290000002\",\n      \"customerUserId\": \"85290000002\"\n    },\n    {\n      \"channel\": {\n        \"platform\": \"whatsapp\",\n        \"channelId\": \"85290000001\"\n      },\n      \"id\": \"mid-6\",\n      \"time\": 1604647464032,\n      \"senderName\": \"Bot\",\n      \"senderUserId\": \"85290000001\",\n      \"senderPhone\": null,\n      \"senderEmail\": null,\n      \"senderType\": \"bot\",\n      \"messageType\": \"chatbot\",\n      \"messageStatus\": \"read\",\n      \"message\": \"Welcome to Omnichat~\",\n      \"mediaUrl\": null,\n      \"roomId\": \"wh18695d48-5788-4d0a-a02c-9522a996258c-85290000002\",\n      \"customerUserId\": \"85290000002\"\n    },\n    {\n      \"channel\": {\n        \"platform\": \"whatsapp\",\n        \"channelId\": \"85290000001\"\n      },\n      \"id\": \"0031ab01-93b1-480a-9270-83b4f48c4229\",\n      \"time\": 1604647464032,\n      \"senderName\": \"Kyle Li\",\n      \"senderUserId\": \"d65e5ab9-5f4f-4119-919c-298a7ac8df79\",\n      \"senderPhone\": \"853922222222\",\n      \"senderEmail\": \"kyleli@example.com\",\n      \"senderType\": \"agent\",\n      \"messageType\": \"text\",\n      \"messageStatus\": \"read\",\n      \"message\": \"hi~How can I help you?\",\n      \"mediaUrl\": null,\n      \"roomId\": \"wh18695d48-5788-4d0a-a02c-9522a996258c-85290000002\",\n      \"customerUserId\": \"85290000002\"\n    }\n  ],\n  \"totalElement\": 2301\n}"}],"_postman_id":"a696226b-c319-4db3-a229-92cfdeba804d"},{"name":"Get message details","id":"b7e92d26-136f-474d-8be4-be3c3e726e1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"url":"https://open-api.omnichat.ai/v1/messages/:messageId","description":"<h4 id=\"description\">Description</h4>\n<p>Get message details</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>Customer Service Cloud / Social CDP Cloud</p>\n</li>\n<li><p>CRM Open API Module</p>\n</li>\n</ul>\n<h4 id=\"parameters\">Parameters</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>Location</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>messageId</td>\n<td>Path</td>\n<td><strong>Required.</strong>  <br />  <br />Message ID</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the follow response body:</p>\n<p>Response object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>content</td>\n<td><code>Message</code> Object</td>\n<td>Messages details</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Message</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>channel</td>\n<td><code>Channel</code> Object</td>\n<td>Messaging Channel of the message</td>\n</tr>\n<tr>\n<td>roomId</td>\n<td>String</td>\n<td>Chat Room</td>\n</tr>\n<tr>\n<td>customerUserId</td>\n<td>String</td>\n<td>Customer User ID</td>\n</tr>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>Message ID</td>\n</tr>\n<tr>\n<td>senderType</td>\n<td>String</td>\n<td>Sender type  <br />  <br />Possible values:  <br />- <code>customer</code>  <br />- <code>agent</code>  <br />- <code>bot</code>  <br />- <code>ai-chat</code></td>\n</tr>\n<tr>\n<td>senderName</td>\n<td>String</td>\n<td>Sender name  <br />  <br />For <code>senderType=customer</code> , customer name  <br />  <br />For <code>senderType=agent</code>, agent user name  <br />  <br />For <code>senderType=bot</code>, always return <code>Bot</code>  <br />  <br />For <code>senderType=ai-chat</code>, always return <code>AI Chat</code></td>\n</tr>\n<tr>\n<td>senderUserId</td>\n<td>String</td>\n<td>Sender's User ID  <br />  <br />For <code>senderType=customer</code> :  <br />  <br />- For LINE → LINE User ID  <br />- For Facebook → Facebook PSID  <br />- For WhatsApp → WhatsApp Phone Number  <br />- For Instagram → Instagram User ID  <br />- For WeChat → WeChat User ID  <br />- For Website → Omnichat User ID  <br />  <br />For <code>senderType=agent</code>, the Omnichat user ID  <br />  <br />For <code>senderType=bot</code>, always return <code>bot</code>  <br />  <br />For <code>senderType=ai-chat</code>, always return <code>ai-chat</code></td>\n</tr>\n<tr>\n<td>senderPhone</td>\n<td>String</td>\n<td>Sender's phone  <br />  <br />For <code>senderType=agent</code>, the agent's Omnichat login phone</td>\n</tr>\n<tr>\n<td>senderEmail</td>\n<td>String</td>\n<td>Sender's email  <br />  <br />For <code>senderType=agent</code>, the agent's Omnichat login email</td>\n</tr>\n<tr>\n<td>time</td>\n<td>Long</td>\n<td>Message sent / received timestamp</td>\n</tr>\n<tr>\n<td>messageType</td>\n<td>String</td>\n<td>Message type.  <br />  <br />Supported values:  <br />- <code>text</code>  <br />- <code>photo</code>  <br />- <code>audio</code>  <br />- <code>video</code>  <br />- <code>document</code>  <br />- <code>chatbot</code></td>\n</tr>\n<tr>\n<td>messageStatus</td>\n<td>String</td>\n<td>Message status.  <br />  <br />Supported values:  <br />- <code>sent</code>: Message is being sent, but not yet delivered to the recipient  <br />- <code>delivered</code>: Message is delivered to the recipient's phone  <br />- <code>read</code>: Message is read by the recipient  <br />- <code>error</code>: Message is failed to send</td>\n</tr>\n<tr>\n<td>message</td>\n<td>String</td>\n<td>Message text content (Nullable)</td>\n</tr>\n<tr>\n<td>mediaUrl</td>\n<td>String</td>\n<td>Media file URL for messageType=photo, audio, video, document, chatbot  <br />  <br />(Nullable)</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Channel</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>platform</td>\n<td>String</td>\n<td>Messaging Platform.  <br />  <br />Supported values:  <br />- line  <br />- facebook  <br />- whatsapp  <br />- instagram  <br />- wechat  <br />- webchat</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>String</td>\n<td>Specific Messaging Platform Channel ID.  <br />  <br />- For LINE → LINE Channel ID  <br />- For Facebook → Facebook Page ID  <br />- For WhatsApp → WhatsApp Business Phone Number  <br />- For Instagram → Instagram Business Account ID  <br />- For WeChat → WeChat ID  <br />- For website → Fixed value website</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","messages",":messageId"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"620f8340-70a0-418c-8a19-7d5e1c42464e","type":"any","value":"wamid.123456789","key":"messageId"}]}},"response":[{"id":"2b0fda54-47cd-4b8f-97f4-edb8054ebdbf","name":"Get message details","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"API Token From Omnichat","type":"text"}],"url":{"raw":"https://open-api.omnichat.ai/v1/messages/:messageId","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","messages",":messageId"],"variable":[{"key":"messageId","value":"wamid.123456789"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n\t\"content\": {\n      \"channel\": {\n        \"platform\": \"whatsapp\",\n        \"channelId\": \"85290000001\"\n      },\n      \"id\": \"mid-1\",\n      \"time\": 1604647464032,\n      \"senderName\": \"Peter\",\n      \"senderUserId\": \"85290000002\",\n      \"senderPhone\": \"85290000002\",\n      \"senderEmail\": null,\n      \"senderType\": \"customer\",\n      \"messageType\": \"text\",\n      \"messageStatus\": \"delivered\",\n      \"message\": \"hello\",\n      \"mediaUrl\": null,\n      \"roomId\": \"wh18695d48-5788-4d0a-a02c-9522a996258c-85290000002\",\n      \"customerUserId\": \"85290000002\"\n    }\n}"}],"_postman_id":"b7e92d26-136f-474d-8be4-be3c3e726e1b"},{"name":"Send direct message","id":"aea7faeb-0ab4-4f19-b70f-a40d7004c040","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trackId\": \"22\",\n    \"platform\": \"whatsapp\",\n    \"tags\": ['222'],\n    \"to\": \"886987684162\",\n    \"channelId\": \"85295307057\",\n    \"messages\": [\n        {\n            \"type\": \"whatsappTemplate\",\n            \"whatsappTemplate\": {\n                \"name\": \"membership_cs_kelvin\",\n                \"language\": {\n                    \"code\": \"zh_HK\",\n                    \"policy\": \"deterministic\"\n                },\n                \"components\": [\n                    {\n                        \"type\": \"body\",\n                        \"parameters\": []\n                    },\n                    {\n                        \"type\": \"button\",\n                        \"sub_type\": \"quick_reply\",\n                        \"index\":  0,\n                        \"parameters\": [\n                            {\n                                \"type\": \"payload\",\n                                \"payload\": \"{\\\"action\\\":null}\"\n                            }\n                        ]\n                    }\n                ]\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/direct-messages","description":"<h4 id=\"description\">Description</h4>\n<p>Send a single message to a contact</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>Marketing Cloud / Social CDP Cloud</p>\n</li>\n<li><p>Marketing Open API Module</p>\n</li>\n</ul>\n<h4 id=\"request-body\">Request body</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>trackId</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />  <br />Track ID. Used for track the performance of a specific type auto message sent.</td>\n</tr>\n<tr>\n<td>platform</td>\n<td>String</td>\n<td><strong>Required.  <br /></strong>  <br />Messaging Platform.  <br />Supported values:  <br />- <code>line</code>  <br />- <code>whatsapp</code>  <br />- <code>facebook</code>(Not supported yet)</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />  <br />Messaging Platform Channel ID.  <br />- For LINE → LINE Messaging Channel ID  <br />- For For Facebook → Facebook Page ID  <br />- For WhatsApp → WhatsApp Business Phone Number</td>\n</tr>\n<tr>\n<td>to</td>\n<td>String</td>\n<td><strong>Required.  <br /></strong>  <br />Contact’s User ID.  <br />  <br />- For LINE → LINE User ID  <br />- For Facebook → Facebook PSID  <br />- For WhatsApp → WhatsApp Phone Number</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>Array of String</td>\n<td><strong>Optional.</strong>  <br />  <br />Tags to be added to the recipient after message sent successfully</td>\n</tr>\n<tr>\n<td>messages</td>\n<td>Array of <code>Message</code> Object</td>\n<td><strong>Required.</strong>  <br />  <br />Messages sent to the contact.  <br />  <br />Max size  <br /><strong>text</strong> / <strong>image</strong> / <strong>products</strong> : 5  <br /><strong>block</strong> : 1  <br />  <br />Only <strong>text</strong> / <strong>image</strong> / <strong>products</strong> messages can be sent together</td>\n</tr>\n<tr>\n<td>customAttributes</td>\n<td>Array of <code>Custom Attribute</code> Object</td>\n<td>Optional  <br />  <br />Custom attributes to be set before sending the message &amp; replaced in the content of the chatbot block message.  <br />  <br /><strong>Noted: You must create the custom attribute in Omnichat portal in advance</strong></td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Message</code> object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />  <br />Message type.  <br />  <br />Supported value for LINE:  <br />- <code>text</code>: Text message  <br />- <code>image</code>: Image message  <br />- <code>block</code>: Chatbot message block  <br />- <code>products</code>: Product Carousel Messag  <br />- <code>lineFlexMessageTemplates</code>  <br />: LINE template message  <br />  <br />Supported value for WhatsApp:  <br />- <code>whatsappTemplate</code>: WhatsApp template message</td>\n</tr>\n<tr>\n<td>text</td>\n<td>String</td>\n<td><strong>Required for type=text.</strong>  <br />  <br />Text Message content</td>\n</tr>\n<tr>\n<td>image</td>\n<td>String</td>\n<td><strong>Required for type=image.</strong>  <br />  <br />Image URL</td>\n</tr>\n<tr>\n<td>blockId</td>\n<td>String</td>\n<td><strong>Required for type=block.  <br /></strong>  <br />Chatbot Message Block ID from Get chatbot message block list API</td>\n</tr>\n<tr>\n<td>products</td>\n<td>Array of <code>Product</code> Object</td>\n<td><strong>Required for type=products.  <br /></strong>  <br />Product information for the carousel message  <br />  <br /><strong>Max. number of product: 10</strong></td>\n</tr>\n<tr>\n<td>whatsappTemplate</td>\n<td>WhatsApp template Object</td>\n<td><strong>Required for type=whatsappTemplate.</strong>  <br />  <br />WhatsApp template message infromation</td>\n</tr>\n<tr>\n<td>lineFlexMessageTemplates</td>\n<td>Array of LINE template Object</td>\n<td><strong>Required for type=lineFlexMessageTemplates.</strong>  <br />  <br />LINE template message infromation  <br />  <br />Bubble template: 12 ≥ size ≥ 1  <br />Carousel template: size is 1</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Product</code> Object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />  <br />Product Name</td>\n</tr>\n<tr>\n<td>image</td>\n<td>String</td>\n<td><strong>Required</strong>  <br />  <br />Product Image URL</td>\n</tr>\n<tr>\n<td>url</td>\n<td>String</td>\n<td><strong>Required.  <br /></strong>  <br />Product Link URL, which is used as the url of the call-to-action button</td>\n</tr>\n<tr>\n<td>price</td>\n<td>String</td>\n<td>Product Price with currency</td>\n</tr>\n<tr>\n<td>buttonLabel</td>\n<td>String</td>\n<td><strong>Required.  <br /></strong>  <br />The text label of the call-to-action button</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>WhatsApp template</code> Object</p>\n<p>Please refer to <code>Template Object</code> in <a href=\"https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages#template-object\">WhatsApp API Documentation</a>.</p>\n<p><code>LINE template</code> Object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>templateId</td>\n<td>String</td>\n<td><strong>Required.</strong></td>\n</tr>\n<tr>\n<td>parameters</td>\n<td>Array of LINE template parameter Object</td>\n<td><strong>Required</strong> if template contains ((yourKey))</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>LINE template parameter</code> Object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>key</td>\n<td>String</td>\n<td>A customized key name</td>\n</tr>\n<tr>\n<td>value</td>\n<td>String</td>\n<td>The value of customized key</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Custom Attribute</code> Object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>key</td>\n<td>String</td>\n<td>Custom attribute key</td>\n</tr>\n<tr>\n<td>value</td>\n<td>String / Number / Boolean (according to the data type of the custom attribute configured in Omnichat portal)</td>\n<td>Attribute value  <br />  <br />**Format:  <br />**- For <strong>number</strong> value, use number (integer / float) format (NOT string)  <br />- For <strong>boolean</strong> value, use true / false  <br />- For <strong>datetime</strong> value, use ISO8601 format datetime string, e.g. 2022-11-01T14:16:00  <br />- For <strong>date</strong> value, use YYYY-MM-DD format string  <br />  <br />Remove custom attribute value:  <br />- You can pass in empty string for string/date/datetime type custom attribute to remove the value  <br />- For date/datetime, it will convert to 1970-01-01 in system  <br />- For boolean, you should pass in false  <br />- For number, you should pass in 0  <br />  <br />**Limitation:  <br />**- Max. length: 1000 characters</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the following response body.</p>\n<p>Response <code>content</code> object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>trackId</td>\n<td>String</td>\n<td>Track ID</td>\n</tr>\n<tr>\n<td>messageIds</td>\n<td>String</td>\n<td>Array of message IDs sent</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n<p><strong>Error Codes:</strong></p>\n<ul>\n<li><p><code>INVALID_REQUEST_BODY</code>: Invalid request body</p>\n</li>\n<li><p><code>CONTACT_UNSUBSCRIBED</code>: Contact is unsubscribed</p>\n</li>\n<li><p><code>CONTACT_NOT_REACHABLE</code>: Contact is exceeded the subscription plan contact limit</p>\n</li>\n<li><p><code>INTERNAL_SERVER_ERROR</code>: Internal server error</p>\n</li>\n<li><p><code>UNEXPECTED_ERROR</code>: Unexpected error, please contact developers</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","direct-messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[]}},"response":[{"id":"f0e112d6-9153-46de-8921-792ee51d7147","name":"Send direct message (text + image message)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trackId\": \"remarketing-001\",\n    \"platform\": \"line\",\n    \"channelId\": \"12345678\",\n    \"to\": \"U1111111111111\",\n    \"tags\": [\n        \"remarking-001\"\n    ],\n    \"messages\": [\n        {\n            \"type\": \"text\",\n            \"text\": \"Final Sale Message 1\"\n        },\n        {\n            \"type\": \"text\",\n            \"text\": \"Final Sale Message 2\"\n        },\n        {\n            \"type\": \"image\",\n            \"image\": \"https://example.com/image.png\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/direct-messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"content\": {\n        \"trackId\": \"remarketing-001\",\n        \"messageId\": [\n            \"wamid.HBgLODUyOTAzNTQ1MzMVAgARGBI3NEM2MUUwQkU4MTAxRkQxN0QA\"\n        ]\n    }\n}"},{"id":"ace288c7-3f7f-409c-8155-5f0b79334152","name":"Send direct message (not onboard waba)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trackId\": \"remarketing-001\",\n    \"platform\": \"line\",\n    \"channelId\": \"12345678\",\n    \"to\": \"U1111111111111\",\n    \"tags\": [\n        \"remarking-001\"\n    ],\n    \"messages\": [\n        {\n            \"type\": \"text\",\n            \"text\": \"Final Sale Message 1\"\n        },\n        {\n            \"type\": \"text\",\n            \"text\": \"Final Sale Message 2\"\n        },\n        {\n            \"type\": \"image\",\n            \"image\": \"https://example.com/image.png\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/direct-messages"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"content\": {\n        \"code\": \"MARKETING_MESSAGES_LITE_NOT_ENABLED\",\n        \"message\": \"The WABA has not enabled Marketing Messages Lite (MM Lite) and cannot send marketing messages via this API\",\n        \"status\": 500\n    }\n}"},{"id":"188d4bf0-b92e-45f1-b4fa-4268d96254b5","name":"Send direct message (products + text message)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trackId\": \"remarketing-001\",\n    \"platform\": \"line\",\n    \"channelId\": \"1626460947\",\n    \"to\": \"U66a669e12ff66601c06e1dc\",\n    \"tags\": [\n        \"remarking-001\"\n    ],\n    \"messages\": [\n        {\n            \"type\": \"text\",\n            \"text\": \"Something left in your shopping cart\"\n        },\n        {\n            \"type\": \"text\",\n            \"text\": \"Checkout now with discount code OFF10 to get 10% off\"\n        },\n        {\n            \"type\": \"products\",\n            \"products\": [\n                {\n                    \"name\": \"Black Tee\",\n                    \"url\": \"https://example.com/tee.html\",\n                    \"image\": \"https://example.com/tee.png\",\n                    \"price\": \"TWD$100\",\n                    \"buttonLabel\": \"View Product\"\n                },\n                {\n                    \"name\": \"White Tee\",\n                    \"url\": \"https://example.com/white-tee.html\",\n                    \"image\": \"https://example.com/white-tee.png\",\n                    \"price\": \"TWD$250\",\n                    \"buttonLabel\": \"View Product\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/direct-messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"content\": {\n        \"trackId\": \"remarketing-001\",\n        \"messageId\": [\n            \"wamid.HBgLODUyOTAzNTQ1MzMVAgARGBI3NEM2MUUwQkU4MTAxRkQxN0QA\"\n        ]\n    }\n}"},{"id":"1d244644-36c6-4fc8-a639-fbc5d1477707","name":"Send direct message (chatbot message)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trackId\": \"remarketing-001\",\n    \"platform\": \"line\",\n    \"channelId\": \"12345678\",\n    \"to\": \"U1111111111111\",\n    \"tags\": [\n        \"remarking-001\"\n    ],\n    \"messages\": [\n        {\n            \"type\": \"block\",\n            \"blockId\": \"07269d7a-68d6-4f36-9c0b-c837d9b296ef\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/direct-messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"content\": {\n        \"trackId\": \"remarketing-001\",\n        \"messageId\": [\n            \"wamid.HBgLODUyOTAzNTQ1MzMVAgARGBI3NEM2MUUwQkU4MTAxRkQxN0QA\"\n        ]\n    }\n}"},{"id":"2f1ff6b5-cb88-409e-b19b-72f70c15c5e3","name":"Send direct message (chatbot message with custom attributes)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trackId\": \"remarketing-001\",\n    \"platform\": \"line\",\n    \"channelId\": \"12345678\",\n    \"to\": \"U1111111111111\",\n    \"tags\": [\n        \"remarking-001\"\n    ],\n    \"customAttributes\": [\n        { \"key\": \"OPEN_API_ATTR_NAME\", \"value\": \"Peter Chan\"},\n        { \"key\": \"OPEN_API_ATTR_COUPON\", \"value\": \"PROMO10\"}\n    ],\n    \"messages\": [\n        {\n            \"type\": \"block\",\n            \"blockId\": \"07269d7a-68d6-4f36-9c0b-c837d9b296ef\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/direct-messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"content\": {\n        \"trackId\": \"remarketing-001\",\n        \"messageId\": [\n            \"wamid.HBgLODUyOTAzNTQ1MzMVAgARGBI3NEM2MUUwQkU4MTAxRkQxN0QA\"\n        ]\n    }\n}"},{"id":"5674264f-d323-4d95-8d0d-566d1826eafd","name":"Send direct message (whatsapp template message)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trackId\": \"cny2023\",\n    \"platform\": \"whatsapp\",\n    \"channelId\": \"85290000001\",\n    \"to\": \"85260000001\",\n    \"tags\": [\n        \"remarking-001\"\n    ],\n    \"messages\": [\n        {\n            \"type\": \"whatsappTemplate\",\n            \"whatsappTemplate\": {\n                \"name\": \"cny_campaign_2023\",\n                \"components\": [\n                    {\n                        \"type\": \"header\",\n                        \"parameters\": [\n                            {\n                                \"type\": \"image\",\n                                \"image\": {\n                                    \"link\": \"https://example.com/red-pocket.png\"\n                                }\n                            }\n                        ]\n                    },\n                    {\n                        \"type\": \"body\",\n                        \"parameters\": [\n                            {\n                                \"type\": \"text\",\n                                \"text\": \"Mr. Chan\"\n                            },\n                            {\n                                \"type\": \"text\",\n                                \"text\": \"$100 Red pocket\"\n                            }\n                        ]\n                    },\n                    {\n                        \"type\": \"button\",\n                        \"sub_type\": \"url\",\n                        \"index\": \"0\",\n                        \"parameters\": [\n                            {\n                                \"type\": \"text\",\n                                \"text\": \"https://example.com/landing.html\"\n                            }\n                        ]\n                    }\n                ]\n            }\n        }\n    ],\n    \"employeeCode\": \"LAW_2a\",\n    \"locationCode\": \"3001\",\n    \"trackTransactionLink\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/direct-messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"content\": {\n        \"trackId\": \"remarketing-001\",\n        \"messageId\": [\n            \"wamid.HBgLODUyOTAzNTQ1MzMVAgARGBI3NEM2MUUwQkU4MTAxRkQxN0QA\"\n        ]\n    }\n}"},{"id":"0a57c27c-3dd6-4d6b-a08f-dc37e039ee0a","name":"Send direct message (LINE template message)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trackId\": \"remarketing-001\",\n    \"platform\": \"line\",\n    \"channelId\": \"12345678\",\n    \"to\": \"U1111111111111\",\n    \"tags\": [\n        \"remarking-001\"\n    ],\n    \"messages\": [\n        {\n            \"type\": \"lineFlexMessageTemplates\",\n            \"lineFlexMessageTemplates\": [\n                {\n                    \"templateId\": \"id1\",\n                    \"parameters\": [\n                        {\n                            \"key\": \"key1\",\n                            \"value\": \"value1\"\n                        },\n                        {\n                            \"key\": \"key2\",\n                            \"value\": \"value2\"\n                        }\n                    ]\n                },\n                {\n                    \"templateId\": \"id2\",\n                    \"parameters\":[\n                        {\n                            \"key\": \"key3\",\n                            \"value\": \"value3\"\n                        }\n                    ]\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/direct-messages"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"content\": {\n    \"trackId\": \"remarketing-001\",\n    \"messageId\": [\n      \"wamid.HBgLODUyOTAzNTQ1MzMVAgARGBI3NEM2MUUwQkU4MTAxRkQxN0QA\"\n    ]\n  }\n}"}],"_postman_id":"aea7faeb-0ab4-4f19-b70f-a40d7004c040"}],"id":"6babb200-35c1-4330-9415-0248e555307b","_postman_id":"6babb200-35c1-4330-9415-0248e555307b","description":""},{"name":"Identity","item":[{"name":"Check Member Data using Social ID","id":"2d40ea27-ec82-4290-8dba-f06378880727","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"platform\": \"line\",\n  \"channelId\": \"123456789\",\n  \"ids\": [\n    \"U66a669e12ff66601c06e1dcd06e8f63c\",\n    \"U1535b48edaae6ea9bf7408e4d08b3d41\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/identities/member-data","description":"<h4 id=\"description\">Description</h4>\n<p>Check Member Data using Social Identity</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>CS / Marketing / OMO Sales / Social CDP Cloud</p>\n</li>\n<li><p>CRM Open API Module</p>\n</li>\n</ul>\n<h4 id=\"request-body\">Request Body</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>platform</td>\n<td><strong>Required.</strong>  <br />  <br />Messaging Platform.  <br />  <br />Supported values:  <br />- <code>line</code>  <br />- <code>facebook</code> (Not supported yet)  <br />- <code>whatsapp</code> (Not supported yet)</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td><strong>Required.</strong>  <br />  <br />Messaging Platform Channel ID.  <br />  <br />- For LINE → LINE Messaging Channel ID  <br />- For For Facebook → Facebook Page ID  <br />- For WhatsApp → WhatsApp Business Phone Number</td>\n</tr>\n<tr>\n<td>ids</td>\n<td><strong>Required.</strong>  <br /><strong>Max: 100 User IDs  <br /></strong>  <br />Contact’s User ID.  <br />  <br />- For LINE → LINE User ID  <br />- For Facebook → Facebook PSID  <br />- For WhatsApp → WhatsApp Phone Number</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the following response body</p>\n<p>Response object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>content</td>\n<td>Array of <code>Check Identity Result</code> Object</td>\n<td>Result data</td>\n</tr>\n<tr>\n<td>totalElements</td>\n<td>Integer</td>\n<td>Total number of elements</td>\n</tr>\n</tbody>\n</table>\n</div><p>Array of <code>Check Identity Result</code> Objects</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>id</td>\n<td>The value you sent in the ids field of the API call.</td>\n</tr>\n<tr>\n<td>memberId</td>\n<td>The corresponding member ID of the user id.  <br />  <br />Return <code>null</code> if no linked member ID</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","identities","member-data"],"host":["open-api","omnichat","ai"],"query":[],"variable":[]}},"response":[{"id":"67ac600c-1ae7-48d5-aa50-e6708b6bf0e3","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"platform\": \"line\",\n  \"channelId\": \"123456789\",\n  \"ids\": [\n    \"U66a669e12ff66601c06e1dcd06e8f63c\",\n    \"U1535b48edaae6ea9bf7408e4d08b3d41\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/v1/identities/member-data"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"content\": [\n    { \"id\": \"U66a669e12ff66601c06e1dcd06e8f63c\", \"memberId\": \"1234\" },\n    { \"id\": \"U1535b48edaae6ea9bf7408e4d08b3d41\", \"memberId\": null },\n  ]\n}"}],"_postman_id":"2d40ea27-ec82-4290-8dba-f06378880727"}],"id":"8ca424aa-516b-4279-af8d-10418d98da34","_postman_id":"8ca424aa-516b-4279-af8d-10418d98da34","description":""},{"name":"Contacts","item":[{"name":"Get contacts (Deprecated)","id":"9fbcd2aa-7420-4a6c-ad25-fdb308dd0a6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://open-api.omnichat.ai/v1/contacts?platform=line&channelId=&userId&page=1&pageSize=20&updatedAfter=1652371200000&updatedBefore=1653580800000","description":"<img src=\"https://content.pstmn.io/bea0d1b8-27a5-419a-863b-9a812d29119a/aWNvbnNfcm93X3YyLnBuZw==\" width=\"137\" height=\"34\" />\n\n<p>The <strong>Get Contacts API</strong> has been moved to the new documentation. Please refer to the new document for the latest information.</p>\n<p><a href=\"https://developers.omnichat.ai/docs/contacts-api#get-contacts\">https://developers.omnichat.ai/docs/contacts-api#get-contacts</a></p>\n<hr />\n<h4 id=\"description\">Description</h4>\n<p>Get updated contacts by specific date range</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>CS / Marketing / OMO Sales / Social CDP Cloud</p>\n</li>\n<li><p>CRM Open API Module</p>\n</li>\n</ul>\n<h4 id=\"query-parameters\">Query Parameters</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>platform</td>\n<td><strong>Required.</strong>  <br />  <br />Messaging Platform.  <br />  <br />Supported values:  <br />- line  <br />- facebook  <br />- whatsapp  <br />- instagram  <br />- wechat  <br />- webchat</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>Specific Messaging Platform Channel ID.  <br />  <br />- For LINE → LINE Channel ID  <br />- For Facebook → Facebook Page ID  <br />- For WhatsApp → WhatsApp Business Phone Number  <br />- For Instagram → Instagram Business Account ID  <br />- For WeChat → WeChat ID  <br />- For webchat → Fixed value webchat</td>\n</tr>\n<tr>\n<td>userId</td>\n<td>Specific User ID.  <br />  <br />- For LINE → LINE User ID  <br />- For Facebook → Facebook User ID (PSID)  <br />- For WhatsApp → Phone Number  <br />- For Instagram → Instagram User ID  <br />- For WeChat → WeChat User ID  <br />- For Webchat → Webchat User ID</td>\n</tr>\n<tr>\n<td>updatedAfter</td>\n<td><strong>Required if no specific</strong> <strong><code>userId</code>****.  <br /></strong>  <br />The start of the specific date range in unix timestamp (milliseconds) (inclusive)</td>\n</tr>\n<tr>\n<td>updatedBefore</td>\n<td><strong>Required if no specific</strong> <strong><code>userId</code>****.  <br /></strong>  <br />The end of the specific date range in unix timestamp (milliseconds) (exclusive)</td>\n</tr>\n<tr>\n<td>page</td>\n<td><strong>Required if no specific</strong> **<code>userId</code>****.  <br />  <br />**Page number .  <br />  <br />Default: 1</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td><strong>Required if no specific</strong> <strong><code>userId</code>****.  <br /></strong>  <br />Number of contacts per page  <br />  <br />Default: 20 (Max: 100)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the follow response body:</p>\n<p>Response object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>content</td>\n<td>Array of <code>Contact</code> Object</td>\n<td>Updated contacts in the specific period</td>\n</tr>\n<tr>\n<td>totalElements</td>\n<td>Integer</td>\n<td>Total Number of updated contacts</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Contact</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>channel</td>\n<td><code>Channel</code> Object</td>\n<td>Messaging Channel of the contact</td>\n</tr>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>Contact’s User ID  <br />  <br />- For LINE → LINE User ID  <br />- For Facebook → Facebook PSID  <br />- For WhatsApp → WhatsApp Phone Number  <br />- For Instagram → Instagram User ID  <br />- For WeChat → WeChat User ID  <br />- For Website → Omnichat User ID</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Contact’s Name</td>\n</tr>\n<tr>\n<td>lastMessageTime</td>\n<td>Long</td>\n<td>Contact’s last message time in unix timestamp</td>\n</tr>\n<tr>\n<td>subscribedAt</td>\n<td>Long</td>\n<td>Contact’s subscription time in unix timestamp</td>\n</tr>\n<tr>\n<td>unsubscribedAt</td>\n<td>Long</td>\n<td>Contact’s unsubscribe time in unix timestamp</td>\n</tr>\n<tr>\n<td>updatedAt</td>\n<td>Long</td>\n<td>Contact’s information last updated time in unix timestamp</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>Array of String</td>\n<td>Contact’s tags</td>\n</tr>\n<tr>\n<td>customAttributes</td>\n<td>Array of <code>Custom Attribute</code> Object</td>\n<td>Contact's custom attribute</td>\n</tr>\n<tr>\n<td>status</td>\n<td>Boolean</td>\n<td>Contact’s subscription status</td>\n</tr>\n<tr>\n<td>note</td>\n<td>String</td>\n<td>Contact’s note</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String</td>\n<td>Contact’s email</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>String</td>\n<td>Contact’s phone</td>\n</tr>\n<tr>\n<td>memberId</td>\n<td>String</td>\n<td>Contact’s member ID</td>\n</tr>\n<tr>\n<td>agentName</td>\n<td>String</td>\n<td>The name of the agent bound to the contact  <br />  <br />(Only for OMO Sales Cloud)</td>\n</tr>\n<tr>\n<td>agentEmployeeCode</td>\n<td>String</td>\n<td>The employee code of the agent bound to the contact  <br />  <br />(Only for OMO Sales Cloud)</td>\n</tr>\n<tr>\n<td>agentBindTime</td>\n<td>Long</td>\n<td>The time of the agent bind to the contact in unix timestamp  <br />  <br />(Only for OMO Sales Cloud)</td>\n</tr>\n<tr>\n<td>agentLocationName</td>\n<td>String</td>\n<td>The shop location name of the agent bound to the contact  <br />  <br />(Only for OMO Sales Cloud)</td>\n</tr>\n<tr>\n<td>agentLocationCode</td>\n<td>String</td>\n<td>The shop location code of the agent bound to the contact  <br />  <br />(Only for OMO Sales Cloud)</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Channel</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>platform</td>\n<td>String</td>\n<td>Messaging Platform.  <br />  <br />Supported values:  <br />- line  <br />- facebook  <br />- whatsapp  <br />- instagram  <br />- wechat  <br />- website</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>String</td>\n<td>Specific Messaging Platform Channel ID.  <br />  <br />- For LINE → LINE Channel ID  <br />- For Facebook → Facebook Page ID  <br />- For WhatsApp → WhatsApp Business Phone Number  <br />- For Instagram → Instagram Business Account ID  <br />- For WeChat → WeChat ID  <br />- For website → Fixed value website</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Custom Attribute</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>key</td>\n<td>String</td>\n<td>Attribute key</td>\n</tr>\n<tr>\n<td>value</td>\n<td>String / Number / Boolean</td>\n<td>Attribute value  <br />  <br />For type=date, date string in format YYYY-MM-DD, e.g. 2011-12-03  <br />  <br />For type=datetime, date string in format YYYY-MM-DD'T'10:24:12, e.g. 2011-12-03T10:15:30  <br />  <br />For type=boolean, true/false boolean value</td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>Attribute data type  <br />  <br />Possible values:  <br />text: Text  <br />number: Number  <br />date: Date  <br />datetime: Date time  <br />boolean: Boolean</td>\n</tr>\n<tr>\n<td>displayName</td>\n<td>String</td>\n<td>Attribute display name</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","contacts"],"host":["open-api","omnichat","ai"],"query":[{"description":{"content":"<p>[Required] Messaging Platform</p>\n","type":"text/plain"},"key":"platform","value":"line"},{"description":{"content":"<p>[Optional] Specific Messaging Platform Channel ID</p>\n","type":"text/plain"},"key":"channelId","value":""},{"description":{"content":"<p>[Optional] Specific contact ID</p>\n","type":"text/plain"},"key":"userId","value":null},{"description":{"content":"<p>Page number. (Default: 1)</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Number of contacts per page. (Default: 20 ;Max: 100)</p>\n","type":"text/plain"},"key":"pageSize","value":"20"},{"description":{"content":"<p>The start of the specific date range in unix timestamp (milliseconds) (inclusive) [Max date range specified is 7 days]</p>\n","type":"text/plain"},"key":"updatedAfter","value":"1652371200000"},{"description":{"content":"<p>The end of the specific date range in unix timestamp (milliseconds) (exclusive) [Max date range specified is 7 days]</p>\n","type":"text/plain"},"key":"updatedBefore","value":"1653580800000"}],"variable":[]}},"response":[{"id":"2ad2127c-3c9a-419f-9f4b-02194617cbfa","name":"LINE","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://open-api.omnichat.ai/v1/contacts?platform=line&page=1&pageSize=20&updatedAfter=1652371200000&updatedBefore=1653580800000","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","contacts"],"query":[{"key":"platform","value":"line","description":"[Required] Messaging Platform"},{"key":"channelId","value":"","description":"[Optional] Specific Messaging Platform Channel ID","type":"text","disabled":true},{"key":"page","value":"1","description":"Page number. Default: 1"},{"key":"pageSize","value":"20","description":"Number of contacts per page. Default: 20 (Max: 100)"},{"key":"updatedAfter","value":"1652371200000","description":"The start of the specific date range in unix timestamp (milliseconds) (inclusive)"},{"key":"updatedBefore","value":"1653580800000","description":"The end of the specific date range in unix timestamp (milliseconds) (exclusive)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"content\": [\n        {\n            \"channel\": {\n                \"platform\": \"line\",\n                \"channelId\": \"165000000\"\n            },\n            \"id\": \"U2bd582c37356d37cb6d46a823de3a908\",\n            \"name\": \"Alan\",\n            \"lastMessageTime\": 1604650656053,\n            \"subscribedAt\": 1604650656053,\n            \"unsubscribedAt\": 1604650656053,\n            \"updatedAt\": 1604650656053,\n            \"tags\": [\n                \"VIP\",\n                \"Sports\"\n            ],\n            \"customAttributes\": [\n                { \"key\": \"MEMBER_TIER\", \"value\": \"GOLD\", \"type\": \"text\", \"displayName\": \"Member Tier\"},\n                { \"key\": \"GENDER\", \"value\": \"M\", \"type\": \"text\", \"displayName\": \"Gender\"}\n            ],\n            \"status\": true,\n            \"note\": \"new customer\",\n            \"email\": \"test@email.com\",\n            \"phone\": \"886966633355\",\n            \"memberId\": \"9431\",\n            \"agentName\": null,\n            \"agentEmployeeCode\": null,\n            \"agentBindTime\": null,\n            \"agentLocationName\": null,\n            \"agentLocationCode\": null\n        },\n        {\n            \"channel\": {\n                \"platform\": \"line\",\n                \"channelId\": \"165000000\"\n            },\n            \"id\": \"U2bd582c37356d37cb6d46a823de3a413\",\n            \"name\": \"Mary\",\n            \"lastMessageTime\": 1604650656053,\n            \"tags\": [],\n            \"status\": true,\n            \"note\": \"\",\n            \"email\": \"mary@email.com\",\n            \"phone\": \"88690000000\",\n            \"memberId\": \"\",\n            \"agentName\": \"Sales Ken\",\n            \"agentEmployeeCode\": \"S0001\",\n            \"agentBindTime\": 1604650656053,\n            \"agentLocationName\": \"Shop A\",\n            \"agentLocationCode\": \"S-001\"\n        },\n        {\n            \"channel\": {\n                \"platform\": \"line\",\n                \"channelId\": \"165000002\"\n            },\n            \"id\": \"U2bd582c37356d37cb6d46a823de3a444\",\n            \"name\": \"Peter\",\n            \"lastMessageTime\": 1604650656053,\n            \"tags\": [],\n            \"status\": true,\n            \"note\": \"refund on 6/7\",\n            \"email\": \"peter@email.com\",\n            \"phone\": \"\",\n            \"memberId\": \"\",\n            \"agentName\": null,\n            \"agentEmployeeCode\": null,\n            \"agentBindTime\": null,\n            \"agentLocationName\": null,\n            \"agentLocationCode\": null\n        }\n    ],\n    \"totalElements\": 3\n}"},{"id":"af929048-3fb7-48ec-b189-42d90057e38e","name":"Facebook","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://open-api.omnichat.ai/v1/contacts?platform=facebook&page=1&pageSize=20&updatedAfter=1652371200000&updatedBefore=1653580800000","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","contacts"],"query":[{"key":"platform","value":"facebook","description":"[Required] Messaging Platform"},{"key":"channelId","value":"","description":"[Optional] Specific Messaging Platform Channel ID","type":"text","disabled":true},{"key":"page","value":"1","description":"Page number. Default: 1"},{"key":"pageSize","value":"20","description":"Number of contacts per page. Default: 20 (Max: 100)"},{"key":"updatedAfter","value":"1652371200000","description":"The start of the specific date range in unix timestamp (milliseconds) (inclusive)"},{"key":"updatedBefore","value":"1653580800000","description":"The end of the specific date range in unix timestamp (milliseconds) (exclusive)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"content\": [\n    {\n      \"channel\": {\n        \"platform\": \"facebook\",\n        \"channelId\": \"202104673972398\"\n      },\n      \"id\": \"1991015490937924\",\n      \"name\": \"Mary\",\n      \"lastMessageTime\": 1604650656053,\n      \"subscribedAt\": 1604650656053,\n      \"unsubscribedAt\": 1604650656053,\n      \"updatedAt\": 1604650656053,\n      \"tags\": [],\n      \"customAttributes\": [\n                { \"key\": \"MEMBER_TIER\", \"value\": \"GOLD\", \"type\": \"text\", \"displayName\": \"Member Tier\"},\n                { \"key\": \"GENDER\", \"value\": \"M\", \"type\": \"text\", \"displayName\": \"Gender\"}\n      ],\n      \"status\": true,\n      \"note\": \"\",\n      \"email\": \"mary@email.com\",\n      \"phone\": \"88690000000\",\n      \"memberId\": \"\",\n      \"agentName\": null,\n      \"agentEmployeeCode\": null,\n      \"agentBindTime\": null,\n      \"agentLocationName\": null,\n      \"agentLocationCode\": null\n    }\n  ],\n  \"totalElements\": 1\n}"},{"id":"93a1ca6f-3484-4cb4-a741-df52284619c7","name":"Instagram","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://open-api.omnichat.ai/v1/contacts?platform=instagram&page=1&pageSize=20&updatedAfter=1652371200000&updatedBefore=1653580800000","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","contacts"],"query":[{"key":"platform","value":"instagram","description":"[Required] Messaging Platform"},{"key":"channelId","value":"","description":"[Optional] Specific Messaging Platform Channel ID","type":"text","disabled":true},{"key":"page","value":"1","description":"Page number. Default: 1"},{"key":"pageSize","value":"20","description":"Number of contacts per page. Default: 20 (Max: 100)"},{"key":"updatedAfter","value":"1652371200000","description":"The start of the specific date range in unix timestamp (milliseconds) (inclusive)"},{"key":"updatedBefore","value":"1653580800000","description":"The end of the specific date range in unix timestamp (milliseconds) (exclusive)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"content\": [\n    {\n      \"channel\": {\n        \"platform\": \"instagram\",\n        \"channelId\": \"17841441723885812\"\n      },\n      \"id\": \"3202549109798234\",\n      \"name\": \"Mary\",\n      \"lastMessageTime\": 1604650656053,\n      \"subscribedAt\": 1604650656053,\n      \"unsubscribedAt\": 1604650656053,\n      \"updatedAt\": 1604650656053,\n      \"tags\": [],\n      \"customAttributes\": [\n                { \"key\": \"MEMBER_TIER\", \"value\": \"GOLD\", \"type\": \"text\", \"displayName\": \"Member Tier\"},\n                { \"key\": \"GENDER\", \"value\": \"M\", \"type\": \"text\", \"displayName\": \"Gender\"}\n      ],\n      \"status\": true,\n      \"note\": \"\",\n      \"email\": \"mary@email.com\",\n      \"phone\": \"88690000000\",\n      \"memberId\": \"\",\n      \"agentName\": null,\n      \"agentEmployeeCode\": null,\n      \"agentBindTime\": null,\n      \"agentLocationName\": null,\n      \"agentLocationCode\": null\n    }\n  ],\n  \"totalElements\": 1\n}"},{"id":"d26b6400-0ee2-40f9-a989-fe47cfd44025","name":"WhatsApp","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://open-api.omnichat.ai/v1/contacts?platform=whatsapp&page=1&pageSize=20&updatedAfter=1652371200000&updatedBefore=1653580800000","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","contacts"],"query":[{"key":"platform","value":"whatsapp","description":"[Required] Messaging Platform"},{"key":"channelId","value":"","description":"[Optional] Specific Messaging Platform Channel ID","type":"text","disabled":true},{"key":"page","value":"1","description":"Page number. Default: 1"},{"key":"pageSize","value":"20","description":"Number of contacts per page. Default: 20 (Max: 100)"},{"key":"updatedAfter","value":"1652371200000","description":"The start of the specific date range in unix timestamp (milliseconds) (inclusive)"},{"key":"updatedBefore","value":"1653580800000","description":"The end of the specific date range in unix timestamp (milliseconds) (exclusive)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"content\": [\n    {\n      \"channel\": {\n        \"platform\": \"whatsapp\",\n        \"channelId\": \"852900000001\"\n      },\n      \"id\": \"88690000000\",\n      \"name\": \"Mary\",\n      \"lastMessageTime\": 1604650656053,\n      \"subscribedAt\": 1604650656053,\n      \"unsubscribedAt\": 1604650656053,\n      \"updatedAt\": 1604650656053,\n      \"tags\": [],\n      \"customAttributes\": [\n                { \"key\": \"MEMBER_TIER\", \"value\": \"GOLD\", \"type\": \"text\", \"displayName\": \"Member Tier\"},\n                { \"key\": \"GENDER\", \"value\": \"M\", \"type\": \"text\", \"displayName\": \"Gender\"}\n      ],\n      \"status\": true,\n      \"note\": \"\",\n      \"email\": \"mary@email.com\",\n      \"phone\": \"88690000000\",\n      \"memberId\": \"\",\n      \"agentName\": \"Sales Ken\",\n      \"agentEmployeeCode\": \"S0001\",\n      \"agentBindTime\": 1604650656053,\n      \"agentLocationName\": \"Shop A\",\n      \"agentLocationCode\": \"S-001\"\n    }\n  ],\n  \"totalElements\": 1\n}"},{"id":"3d60e777-7750-4fe0-a5f3-850a3bc5d44e","name":"Webchat","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://open-api.omnichat.ai/v1/contacts?page=1&pageSize=20&updatedAfter=1652371200000&updatedBefore=1653580800000&platform=webchat","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","contacts"],"query":[{"key":"channelId","value":"","description":"[Optional] Specific Messaging Platform Channel ID","type":"text","disabled":true},{"key":"page","value":"1","description":"Page number. Default: 1"},{"key":"pageSize","value":"20","description":"Number of contacts per page. Default: 20 (Max: 100)"},{"key":"updatedAfter","value":"1652371200000","description":"The start of the specific date range in unix timestamp (milliseconds) (inclusive)"},{"key":"updatedBefore","value":"1653580800000","description":"The end of the specific date range in unix timestamp (milliseconds) (exclusive)"},{"key":"platform","value":"webchat"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"content\": [\n    {\n      \"channel\": {\n        \"platform\": \"webchat\",\n        \"channelId\": \"webchat\"\n      },\n      \"id\": \"02f9573e-01dc-4189-9ee6-ed3821486def\",\n      \"name\": \"Mary\",\n      \"lastMessageTime\": 1604650656053,\n      \"subscribedAt\": 1604650656053,\n      \"unsubscribedAt\": 1604650656053,\n      \"updatedAt\": 1604650656053,\n      \"tags\": [],\n      \"customAttributes\": [\n                { \"key\": \"MEMBER_TIER\", \"value\": \"GOLD\", \"type\": \"text\", \"displayName\": \"Member Tier\"},\n                { \"key\": \"GENDER\", \"value\": \"M\", \"type\": \"text\", \"displayName\": \"Gender\"}\n      ],\n      \"status\": true,\n      \"note\": \"\",\n      \"email\": \"mary@email.com\",\n      \"phone\": \"88690000000\",\n      \"memberId\": \"\",\n      \"agentName\": null,\n      \"agentEmployeeCode\": null,\n      \"agentBindTime\": null,\n      \"agentLocationName\": null,\n      \"agentLocationCode\": null\n    }\n  ],\n  \"totalElements\": 1\n}"}],"_postman_id":"9fbcd2aa-7420-4a6c-ad25-fdb308dd0a6c"},{"name":"Upsert a Contact","id":"ef0e2438-ff90-4a58-97f6-44aa821ba2f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Peter Chan\",\n\t\"status\": false,\n\t\"email\": \"example@example.com\",\n\t\"phone\": \"85298765432\",\n\t\"memberId\": \"M00001\",\n\t\"agentEmployeeCode\": \"EMP-001\",\n\t\"agentLocationCode\": \"SHOP-A\",\n    \"tagsToAdd\": [ \"VVIP\", \"Sporty\" ],\n    \"tagsToRemove\": [ \"VIP\" ],\n\t\"customAttributes\": [\n\t\t{ \"key\": \"MemberTier\", \"value\": \"GOLD\" },\n\t\t{ \"key\": \"Points\", \"value\": 2031 },\n\t\t{ \"key\": \"TotalSpending\", \"value\": 900.00 },\n\t\t{ \"key\": \"AcceptedMarketingPromotion\", \"value\": true },\n\t\t{ \"key\": \"LastPurchaseDate\", \"value\": \"2022-11-01\" },\n\t\t{ \"key\": \"RegisterDatetime\", \"value\": \"2022-11-01T14:16:00\" }\n\t]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/contacts/{platform}?channelId=1655713616&userId=Ufc16ca0dac59929c665558fd0c040d1c","description":"<h4 id=\"description\">Description</h4>\n<p>This API allows you to create or update a contact</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>CS / Marketing / OMO Sales / Social CDP Cloud</p>\n</li>\n<li><p>CRM Open API Module</p>\n</li>\n</ul>\n<h4 id=\"parameters\">Parameters</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>Location</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>platform</td>\n<td>Path</td>\n<td><strong>Required.</strong>  <br />  <br />Messaging Platform.  <br />  <br />Supported values:  <br />- line  <br />- facebook  <br />- whatsapp  <br />- instagram  <br />- wechat  <br />- webchat</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>Query</td>\n<td><strong>Required.</strong>  <br />  <br />Specific Messaging Platform Channel ID.  <br />  <br />- For LINE → LINE Channel ID  <br />- For Facebook → Facebook Page ID  <br />- For WhatsApp → WhatsApp Business Phone Number  <br />- For Instagram → Instagram Business Account ID  <br />- For WeChat → WeChat ID  <br />- For Webchat → Fixed value webchat</td>\n</tr>\n<tr>\n<td>userId</td>\n<td>Query</td>\n<td><strong>Required.</strong>  <br />  <br />Contact’s User ID  <br />  <br />- For LINE → LINE User ID  <br />- For Facebook → Facebook PSID  <br />- For WhatsApp → WhatsApp Phone Number  <br />- For Instagram → Instagram User ID  <br />- For WeChat → WeChat User ID  <br />- For Webchat → Webchat User ID</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"request-body\">Request Body</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Contact’s Name</td>\n</tr>\n<tr>\n<td>status</td>\n<td>Boolean</td>\n<td>Contact’s subscription status</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>Array of String</td>\n<td>Contact’s tags to be replaced  <br />  <br /><strong>[Noted: This field cannot be used together with</strong> <strong><code>tagsToAdd</code></strong> <strong>or</strong> <strong><code>tagsToRemove</code></strong> <strong>fields]</strong></td>\n</tr>\n<tr>\n<td>tagsToAdd</td>\n<td>Array of String</td>\n<td>Tags to be added to the contacts  <br />  <br /><strong>[Noted: This field cannot be used together with</strong> <strong><code>tags</code></strong> <strong>field]</strong></td>\n</tr>\n<tr>\n<td>tagsToRemove</td>\n<td>Array of String</td>\n<td>Tags to be removed to the contacts  <br />  <br /><strong>[Noted: This field cannot be used together with</strong> <strong><code>tags</code></strong> <strong>field]</strong></td>\n</tr>\n<tr>\n<td>customAttributes</td>\n<td>Array of <code>Custom Attribute</code> Object</td>\n<td>Contact's custom attribute</td>\n</tr>\n<tr>\n<td>note</td>\n<td>String</td>\n<td>Contact’s note</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String</td>\n<td>Contact’s email</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>String</td>\n<td>Contact’s phone</td>\n</tr>\n<tr>\n<td>memberId</td>\n<td>String</td>\n<td>Contact’s member ID</td>\n</tr>\n<tr>\n<td>agentEmployeeCode</td>\n<td>String</td>\n<td>The employee code of the agent bound to the contact  <br />  <br />(Only for OMO Sales Cloud)</td>\n</tr>\n<tr>\n<td>agentLocationCode</td>\n<td>String</td>\n<td>The shop location code of the agent bound to the contact  <br />  <br />(Only for OMO Sales Cloud)</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Custom Attribute</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>key</td>\n<td>String</td>\n<td>Attribute key  <br />  <br /><strong>Limitation:</strong>  <br />- Max. length: 100 characters</td>\n</tr>\n<tr>\n<td>value</td>\n<td>String / Number / Boolean (according to the data type of the custom attribute configured in Omnichat portal)</td>\n<td>Attribute value  <br />  <br /><strong>Format:</strong>  <br />- For <strong>number</strong> value, use number (integer / float) format (NOT string)  <br />- For <strong>boolean</strong> value, use true / false  <br />- For <strong>datetime</strong> value, use ISO8601 format datetime string, e.g. <code>2022-11-01T14:16:00</code>  <br />- For <strong>date</strong> value, use <code>YYYY-MM-DD</code> format string  <br />  <br />Remove custom attribute value:  <br />- You can pass in empty string for <strong>string/date/datetime</strong> type custom attribute to remove the value  <br />- For <strong>date/datetime</strong>, it will convert to 1970-01-01 in system  <br />- For <strong>boolean</strong>, you should pass in false  <br />- For <strong>number</strong>, you should pass in 0  <br />  <br /><strong>Limitation:</strong>  <br />- Max. length: 1000 characters</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 204 with empty response body</p>\n<p><strong>Bad request</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n<p><strong>Error Codes:</strong></p>\n<ul>\n<li><p><code>INVALID_REQUEST_BODY</code>: Request body or field validation failed</p>\n</li>\n<li><p><code>MISSING_URL_PARAMETER</code>: Required path variable or query parameter is missing</p>\n</li>\n<li><p><code>INVALID_REQUEST_PARAMETERS</code>: Query parameter constraint violation</p>\n</li>\n<li><p><code>INTERNAL_SERVER_ERROR</code>: Internal server error</p>\n</li>\n<li><p><code>CHANNEL_ID_NOT_FOUND</code>: Channel not found for the given platform and team</p>\n</li>\n<li><p><code>WEBCHAT_USER_NOT_FOUND</code>: Webchat user not found for the given user ID</p>\n</li>\n<li><p><code>INVALID_PLATFORM</code>: Platform is not supported</p>\n</li>\n<li><p><code>AGENT_NOT_FOUND</code>: Agent not found for the given employee code and location</p>\n</li>\n<li><p><code>INVALID_CUSTOM_ATTRIBUTE</code>: Custom attribute key or value does not match the team's schema</p>\n</li>\n<li><p><code>UNEXPECTED_ERROR</code>: Unexpected error, please contact developers</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","contacts","{platform}"],"host":["open-api","omnichat","ai"],"query":[{"description":{"content":"<p>Specific Messaging Platform Channel ID.</p>\n","type":"text/plain"},"key":"channelId","value":"1655713616"},{"description":{"content":"<p>Contact’s User ID</p>\n","type":"text/plain"},"key":"userId","value":"Ufc16ca0dac59929c665558fd0c040d1c"}],"variable":[]}},"response":[],"_postman_id":"ef0e2438-ff90-4a58-97f6-44aa821ba2f7"},{"name":"Delete Contact by User ID","id":"0ac0b773-2184-4189-9300-430a0d3522e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"url":"https://open-api.omnichat.ai/v1/contacts/:platform?channelId=1655713616&userId=Ufc16ca0dac59929c665558fd0c040d1c","description":"<h4 id=\"description\">Description</h4>\n<p>This API allows you to delete a contact data (including member profile &amp; chat history) by User ID</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>CS / Marketing / OMO Sales / Social CDP Cloud</p>\n</li>\n<li><p>CRM Open API Module</p>\n</li>\n</ul>\n<h4 id=\"parameters\">Parameters</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>Location</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>platform</td>\n<td>Path</td>\n<td><strong>Required.</strong>  <br />  <br />Messaging Platform.  <br />  <br />Supported values:  <br />- line  <br />- facebook  <br />- whatsapp  <br />- instagram  <br />- wechat  <br />- website</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>Query</td>\n<td><strong>Required.</strong>  <br />  <br />Specific Messaging Platform Channel ID.  <br />  <br />- For LINE → LINE Channel ID  <br />- For Facebook → Facebook Page ID  <br />- For WhatsApp → WhatsApp Business Phone Number  <br />- For Instagram → Instagram Business Account ID  <br />- For WeChat → WeChat ID  <br />- For website → Fixed value website</td>\n</tr>\n<tr>\n<td>userId</td>\n<td>Query</td>\n<td><strong>Required.</strong>  <br />  <br />Contact’s User ID  <br />  <br />- For LINE → LINE User ID  <br />- For Facebook → Facebook PSID  <br />- For WhatsApp → WhatsApp Phone Number  <br />- For Instagram → Instagram User ID  <br />- For WeChat → WeChat User ID  <br />- For Website → Omnichat User ID</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 204 with empty response body</p>\n<p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","contacts",":platform"],"host":["open-api","omnichat","ai"],"query":[{"description":{"content":"<p>Specific Messaging Platform Channel ID.</p>\n","type":"text/plain"},"key":"channelId","value":"1655713616"},{"description":{"content":"<p>Contact’s User ID</p>\n","type":"text/plain"},"key":"userId","value":"Ufc16ca0dac59929c665558fd0c040d1c"}],"variable":[{"id":"f4030216-ec02-491d-bb65-2a9138749229","description":{"content":"<p>Messaging Platform</p>\n","type":"text/plain"},"type":"any","value":"line","key":"platform"}]}},"response":[],"_postman_id":"0ac0b773-2184-4189-9300-430a0d3522e3"}],"id":"9965c07f-a4ee-451c-936c-f196bde5d564","_postman_id":"9965c07f-a4ee-451c-936c-f196bde5d564","description":""},{"name":"Loyalty","item":[{"name":"Adjust loyalty points","id":"c886ff06-ae1c-4807-ad70-7dd341c4fb51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"points\": 10,\n    \"phone\": \"852912345678\",\n    \"email\": \"\",\n    \"memberId\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/loyalty-points/action/adjust","description":"<h4 id=\"description\">Description</h4>\n<p>This API allows you to adjust (add/deduct) contact's loyalty points using phone number, email or member ID.</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>Loyalty Points Module</p>\n</li>\n<li><p>Loyalty Open API Module</p>\n</li>\n</ul>\n<h4 id=\"request-body\">Request Body</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>phone</td>\n<td>String</td>\n<td>Phone number  <br />**  <br />- One of the phone, email or memberId is required  <br />- You can only use the field configured as the identifier for loyalty point to adjust**</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String</td>\n<td>Email  <br />**  <br />- One of the phone, email or memberId is required  <br />- You can only use the field configured as the identifier for loyalty point to adjust**</td>\n</tr>\n<tr>\n<td>memberId</td>\n<td>String</td>\n<td>Member ID  <br />**  <br />- One of the phone, email or memberId is required  <br />- You can only use the field configured as the identifier for loyalty point to adjust**</td>\n</tr>\n<tr>\n<td>points</td>\n<td>Integer</td>\n<td>The amount of loyalty points to be adjust  <br />  <br />[Noted: Use negative value for deduction]</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v1","loyalty-points","action","adjust"],"host":["open-api","omnichat","ai"],"query":[],"variable":[]}},"response":[{"id":"ecf9b863-cdcb-465e-8ada-f35719b46316","name":"Adjust loyalty points using phone number","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"phone\": \"852912345678\",\n    \"points\": 10\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/loyalty-points/action/adjust"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"bbcc6fa1-b2f2-4948-aa36-882b0f4a2a35","name":"Adjust loyalty points using email","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"john.doe@omnichat.ai\",\n    \"points\": 10\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/loyalty-points/action/adjust"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"acc3a6d3-0b38-44a8-a00f-71550d7174a4","name":"Adjust loyalty points using member ID","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"memberId\": \"123456\",\n    \"points\": 10\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/loyalty-points/action/adjust"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"c886ff06-ae1c-4807-ad70-7dd341c4fb51"}],"id":"d56c7473-2f1a-4e53-950c-0d0041c42d01","_postman_id":"d56c7473-2f1a-4e53-950c-0d0041c42d01","description":""},{"name":"OMO Sales","item":[{"name":"Get teammate’s messages sent report","id":"6574b20a-d62f-43f4-8659-e9acb272c8ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://open-api.omnichat.ai/v1/reports/messages?page=1&pageSize=20&after=1652371200000&before=1653580800000","description":"<h4 id=\"description\">Description</h4>\n<p>The messages sent statistics of each teammates in a specific date range in a specific date range</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>OMO Sales Cloud</p>\n</li>\n<li><p>OMO Sales Open API Module</p>\n</li>\n</ul>\n<h4 id=\"query-parameters\">Query Parameters</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>after</td>\n<td><strong>Required.</strong>  <br />The start of the specific date range in unix timestamp (inclusive)  <br />  <br />[Max date range specified by <code>after</code> &amp; <code>before</code> is 7 days]</td>\n</tr>\n<tr>\n<td>before</td>\n<td><strong>Required.</strong>  <br />The end of the specific date range in unix timestamp (exclusive)  <br />  <br />[Max date range specified by <code>after</code> &amp; <code>before</code> is 7 days]</td>\n</tr>\n<tr>\n<td>page</td>\n<td>**Required.  <br />  <br />**Page number .  <br />  <br />Default: 1</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td><strong>Required.</strong>  <br />Number of data per page  <br />  <br />Default: 20 (Max: 100)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>content</td>\n<td>Array of <code>Message Sent Statistics</code> Object</td>\n<td>The messages sent statistics of each teammates in a specific date range in a specific date range</td>\n</tr>\n<tr>\n<td>totalElements</td>\n<td>Integer</td>\n<td>Total number of data</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Message Sent Statistics</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Teammate name</td>\n</tr>\n<tr>\n<td>employeeCode</td>\n<td>String</td>\n<td>The employee code of the teammate</td>\n</tr>\n<tr>\n<td>shopLocations</td>\n<td>Array of <code>Shop Location</code> Object</td>\n<td>The shop locations where the teammate belongs to</td>\n</tr>\n<tr>\n<td>messageCount</td>\n<td>Array of <code>Message Count</code> Object</td>\n<td>Number of messages &amp; product referral link messages sent by the teammate</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Shop Location</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Shop Location name</td>\n</tr>\n<tr>\n<td>code</td>\n<td>String</td>\n<td>Shop Location code</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Message Count</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>platform</td>\n<td>String</td>\n<td>Messaging Platform.  <br />  <br />Supported values:  <br />  <br />* line  <br />* facebook  <br />* whatsapp  <br />* instagram  <br />* wechat  <br />* website</td>\n</tr>\n<tr>\n<td>messages</td>\n<td>Integer</td>\n<td>Number of messages sent</td>\n</tr>\n<tr>\n<td>productReferralLinks</td>\n<td>Integer</td>\n<td>Number of product referral link messages sent</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","reports","messages"],"host":["open-api","omnichat","ai"],"query":[{"description":{"content":"<p>Page number. (Default: 1)</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Number of result per page. (Default: 20 ;Max: 100)</p>\n","type":"text/plain"},"key":"pageSize","value":"20"},{"description":{"content":"<p>The start of the specific date range in unix timestamp (milliseconds) (inclusive) [Max date range specified by after &amp; before is 7 days]</p>\n","type":"text/plain"},"key":"after","value":"1652371200000"},{"description":{"content":"<p>The end of the specific date range in unix timestamp (milliseconds) (exclusive) [Max date range specified by after &amp; before is 7 days]</p>\n","type":"text/plain"},"key":"before","value":"1653580800000"}],"variable":[]}},"response":[{"id":"85b45dba-e7f8-46b1-9d13-bababb6ee63c","name":"Succcess","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://open-api.omnichat.ai/v1/reports/messages?page=1&pageSize=20&after=1652371200000&before=1653580800000","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","reports","messages"],"query":[{"key":"page","value":"1"},{"key":"pageSize","value":"20"},{"key":"after","value":"1652371200000"},{"key":"before","value":"1653580800000"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"content\": [\n    {\n      \"name\": \"Sales Ken\",\n      \"employeeCode\": \"S0001\",\n      \"shopLocations\": [\n        { \"name\": \"Shop A\", \"code\": \"S-001\" },\n        { \"name\": \"Shop B\", \"code\": \"S-002\" }\n      ],\n      \"messageCount\": [\n        { \"platform\": \"line\", \"messages\": 131, \"productReferralLinks\": 5 },\n        { \"platform\": \"facebook\", \"messages\": 4, \"productReferralLinks\": 0 },\n        { \"platform\": \"whatsapp\", \"messages\": 0, \"productReferralLinks\": 0 }\n      ]\n    }\n  ],\n  \"totalElements\": 1\n}"}],"_postman_id":"6574b20a-d62f-43f4-8659-e9acb272c8ac"},{"name":"Get product referral link order report","id":"2ff19920-132e-4a1a-a06b-677596fa7a35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://open-api.omnichat.ai/v1/reports/product-referral-links/orders?page=1&pageSize=20&after=1652371200000&before=1653580800000","description":"<h4 id=\"description\">Description</h4>\n<p>Get all orders from product referral links in a specific date range</p>\n<ul>\n<li>Order data returns in this API is real time</li>\n</ul>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li>OMO Sales Cloud</li>\n<li>OMO Sales Open API Module</li>\n</ul>\n<h4 id=\"query-parameters\">Query Parameters</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>after</td>\n<td><strong>Required.</strong>  <br />The start of the specific date range in unix timestamp (inclusive)  <br />  <br />[Max date range specified by <code>after</code> &amp; <code>before</code> is 7 days]</td>\n</tr>\n<tr>\n<td>before</td>\n<td><strong>Required.</strong>  <br />The end of the specific date range in unix timestamp (exclusive)  <br />  <br />[Max date range specified by <code>after</code> &amp; <code>before</code> is 7 days]</td>\n</tr>\n<tr>\n<td>page</td>\n<td><strong>Required.  <br /></strong>  <br />Page number .  <br />  <br />Default: 1</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td><strong>Required.</strong>  <br />Number of orders per page  <br />  <br />Default: 20 (Max: 100)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>content</td>\n<td>Array of <code>Order</code> Object</td>\n<td>Orders from product referral links in the specific date range</td>\n</tr>\n<tr>\n<td>totalElements</td>\n<td>Integer</td>\n<td>Total number of orders from product referral links in the specific date range</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Order</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>orderId</td>\n<td>String</td>\n<td>Order ID</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String</td>\n<td>Currency Code</td>\n</tr>\n<tr>\n<td>total</td>\n<td>Double</td>\n<td>Order total amount</td>\n</tr>\n<tr>\n<td>date</td>\n<td>Long</td>\n<td>Order purchase time in unix timestamp</td>\n</tr>\n<tr>\n<td>memberId</td>\n<td>String</td>\n<td>Member ID of the customer who placed this order</td>\n</tr>\n<tr>\n<td>linkSentTime</td>\n<td>Long</td>\n<td>The time of the agent sends the product referral link in unix timestamp</td>\n</tr>\n<tr>\n<td>linkClickedTime</td>\n<td>Long</td>\n<td>The time of the customer clicks the product referral link in unix timestamp</td>\n</tr>\n<tr>\n<td>considerationTime</td>\n<td>Double</td>\n<td><br />  <br />The consideration time of the customer to complete the purchase. Calculated as order (purchase time - link sent time)  <br />  <br />Value unit: minute (rounded up to 2 decimal places)  <br />  <br /></td>\n</tr>\n<tr>\n<td>agentName</td>\n<td>String</td>\n<td>The name of the sales agent who sends the product referral link</td>\n</tr>\n<tr>\n<td>agentEmployeeCode</td>\n<td>String</td>\n<td>The employee code of the sales agent who sends the product referral link</td>\n</tr>\n<tr>\n<td>agentLocationName</td>\n<td>String</td>\n<td>The shop location name of the sales agent who sends the product referral link</td>\n</tr>\n<tr>\n<td>agentLocationCode</td>\n<td>String</td>\n<td>The shop location code of the sales agent who sends the product referral link</td>\n</tr>\n<tr>\n<td>91appOrderId</td>\n<td><code>91App Order ID</code> Object</td>\n<td>The order IDs of 91App platform. (For 91App Client Only)  <br />  <br />[This data is not updated in real-time, data is updated at 2:30AM every day]</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>91App Order ID</code> Object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>tgCode</td>\n<td>String</td>\n<td>91App Shopping Cart ID</td>\n</tr>\n<tr>\n<td>tmCode</td>\n<td>Array of String</td>\n<td>91App Main Order ID</td>\n</tr>\n<tr>\n<td>tsCode</td>\n<td>Array of String</td>\n<td>91App Shippment ID</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","reports","product-referral-links","orders"],"host":["open-api","omnichat","ai"],"query":[{"description":{"content":"<p>Page number. (Default: 1)</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Number of result per page. (Default: 20 ;Max: 100)</p>\n","type":"text/plain"},"key":"pageSize","value":"20"},{"description":{"content":"<p>The start of the specific date range in unix timestamp (milliseconds) (inclusive) [Max date range specified by after &amp; before is 7 days]</p>\n","type":"text/plain"},"key":"after","value":"1652371200000"},{"description":{"content":"<p>The end of the specific date range in unix timestamp (milliseconds) (exclusive) [Max date range specified by after &amp; before is 7 days]</p>\n","type":"text/plain"},"key":"before","value":"1653580800000"}],"variable":[]}},"response":[{"id":"48d8785a-91b1-4448-a63f-f11088efd736","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://open-api.omnichat.ai/v1/reports/product-referral-links/orders?page=1&pageSize=20&after=1652371200000&before=1653580800000","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","reports","product-referral-links","orders"],"query":[{"key":"page","value":"1"},{"key":"pageSize","value":"20"},{"key":"after","value":"1652371200000"},{"key":"before","value":"1653580800000"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"content\": [\n        {\n            \"orderId\": \"TX000001\",\n            \"currency\": \"TWD\",\n            \"total\": 100,\n            \"date\": 1604650656053,\n            \"memberId\": \"M001\",\n            \"linkSentTime\": 1604650656053,\n            \"linkClickedTime\": 1604650656053,\n            \"considerationTime\": 14.51,\n            \"agentName\": \"Sales Ken\",\n            \"agentEmployeeCode\": \"S0001\",\n            \"agentLocationName\": \"Shop A\",\n            \"agentLocationCode\": \"S-001\",\n            \"91appOrderId\": {\n                \"tgCode\": \"TG00000000001\",\n                \"tmCode\": [\"TM00000000001\", \"TM00000000002\"],\n                \"tsCode\": [\"TS00000000001\", \"TS00000000002\"]\n            }\n        }\n    ],\n    \"totalElements\": 1\n}"}],"_postman_id":"2ff19920-132e-4a1a-a06b-677596fa7a35"},{"name":"Check product referral link tracking info","id":"65442cc9-49bb-4eab-ad18-88e66c018162","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://open-api.omnichat.ai/v1/product-referral-links/info?ocsaid={{ocsaid}}","description":"<h4 id=\"description\">Description</h4>\n<p>Get the tracking code information</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li>OMO Sales Cloud</li>\n<li>OMO Sales Open API Module</li>\n</ul>\n<h4 id=\"query-parameters\">Query Parameters</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>ocsaid</td>\n<td><strong>Required.</strong>  <br />  <br />The sales tracking code extract from the URL <code>ocsaid</code> query parameter or <code>__ocsaid</code> cookie</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the following body:</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>content</td>\n<td>Array of <code>Tracking Code Info</code> Object</td>\n<td>Tracking code information</td>\n</tr>\n<tr>\n<td>totalElements</td>\n<td>Integer</td>\n<td>Total number of records</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Tracking Code Info</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>agentName</td>\n<td>String</td>\n<td>The name of the sales agent who sends the product referral link</td>\n</tr>\n<tr>\n<td>agentEmployeeCode</td>\n<td>String</td>\n<td>The employee code of the sales agent who sends the product referral link</td>\n</tr>\n<tr>\n<td>agentLocationName</td>\n<td>String</td>\n<td>The shop location name of the sales agent who sends the product referral link</td>\n</tr>\n<tr>\n<td>agentLocationCode</td>\n<td>String</td>\n<td>The shop location code of the sales agent who sends the product referral link</td>\n</tr>\n<tr>\n<td>linkSentTime</td>\n<td>Long</td>\n<td>The link sent time in unix timestamp (milliseconds) format</td>\n</tr>\n<tr>\n<td>linkClickedTime</td>\n<td>Long</td>\n<td>The link click time in unix timestamp (milliseconds) format</td>\n</tr>\n<tr>\n<td>linkTrackingMode</td>\n<td>String</td>\n<td>The link tracking mode.  <br />  <br />Possible values:  <br />- <code>sent</code>: link lifetime is calculated based on sent time (<code>linkSentTime</code>)  <br />- <code>clicked</code>: link lifetime is calculated based on click time (<code>linkClickedTime</code>)</td>\n</tr>\n<tr>\n<td>linkLifetime</td>\n<td>Integer</td>\n<td>The current link lifetime, in days</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","product-referral-links","info"],"host":["open-api","omnichat","ai"],"query":[{"description":{"content":"<p>sales tracking code</p>\n","type":"text/plain"},"key":"ocsaid","value":"{{ocsaid}}"}],"variable":[]}},"response":[{"id":"e6e68103-1182-4bcb-85d5-702b37365fd3","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://open-api.omnichat.ai/v1/product-referral-links/info?ocsaid=c9ecaebe-7e50-4b9a-ae3c-e233390319dc:LP:639ace6c69c2b348ad6f6806","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","product-referral-links","info"],"query":[{"key":"ocsaid","value":"c9ecaebe-7e50-4b9a-ae3c-e233390319dc:LP:639ace6c69c2b348ad6f6806"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"content\": {\n        \"agentName\": \"Sales Ken\",\n        \"agentEmployeeCode\": \"S0001\",\n        \"agentLocationName\": \"Shop A\",\n        \"agentLocationCode\": \"S-001\",\n        \"linkSentTime\": 1604650656053,\n        \"linkClickedTime\": 1604650656053,\n        \"linkTrackingMode\": \"sent\",\n        \"linkLifetime\": 14\n    }\n}"}],"_postman_id":"65442cc9-49bb-4eab-ad18-88e66c018162"},{"name":"Upload Roster","id":"6d7ed6ce-3f3d-4fde-bfa7-296f57fbbfac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"month\": \"2023-04\",\n    \"idField\": \"email\",\n    \"records\": [\n        {\n            \"id\": \"A001\",\n            \"locationCode\": \"locationCode-001\",\n            \"time\": [\n                {\n                    \"day\": 1,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                },\n                {\n                    \"day\": 2,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                },\n                {\n                    \"day\": 3,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                }\n            ]\n        },\n        {\n            \"id\": \"A002\",\n            \"locationCode\": \"locationCode-001\",\n            \"time\": [\n                {\n                    \"day\": 1,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                },\n                {\n                    \"day\": 2,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/rosters","description":"<h4 id=\"description\">Description</h4>\n<p>This API allows you to upload salesperson roster to Omnichat</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li>OMO Sales Cloud</li>\n<li>OMO Sales Open API Module</li>\n</ul>\n<h4 id=\"request-body\">Request body</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>month</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />Month of the Roster  <br />  <br />Format: YYYY-MM</td>\n</tr>\n<tr>\n<td>idField</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />  <br />Staff Identify key  <br />  <br />Supported Value:  <br />- <code>email</code>  <br />- <code>phone</code>  <br />- <code>employeeCode</code></td>\n</tr>\n<tr>\n<td>records</td>\n<td>Array of <code>Staff Roster Record</code> Objects</td>\n<td><strong>Required.</strong>  <br />  <br />Roster records</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Staff Roster Record</code> object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />  <br />Identify of the staff  <br />  <br /><strong>(Noted: This value must match with the user setting on Omnichat)</strong></td>\n</tr>\n<tr>\n<td>locationCode</td>\n<td>String</td>\n<td><strong>Required.  <br /></strong>  <br />Shop location code of the staff  <br />  <br /><strong>(Noted: This value must match with the user setting on Omnichat)</strong></td>\n</tr>\n<tr>\n<td>time</td>\n<td>Array of <code>Roster Time</code> Objects</td>\n<td>**Required.  <br />  <br />**Roster details</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Roster Time</code> Object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>day</td>\n<td>Integer</td>\n<td><strong>Required.</strong>  <br />  <br />Day of month</td>\n</tr>\n<tr>\n<td>in</td>\n<td>String</td>\n<td><strong>Required</strong>  <br />  <br />Clock-in time. Format: <code>hh:mm</code>  <br />  <br />- Pass in empty value if the staff is day off.</td>\n</tr>\n<tr>\n<td>out</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />  <br />Clock-out time. Format: <code>hh:mm</code>  <br />  <br />- Pass in empty value if the staff is day off  <br />- <code>out</code> field cannot be empty if <code>in</code> field is not empty</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with empty response body</p>\n<p><strong>Bad request</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","rosters"],"host":["open-api","omnichat","ai"],"query":[],"variable":[]}},"response":[{"id":"957c2743-c3a9-4fcc-9527-83163e29dd0d","name":"success","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"API Token From Omnichat","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"month\": \"2023-04\",\n    \"idField\": \"email\",\n    \"records\": [\n        {\n            \"id\": \"lawrance.ho+1@easychat.co\",\n            \"locationCode\": \"locationCode4\",\n            \"time\": [\n                {\n                    \"day\": 1,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                },\n                {\n                    \"day\": 2,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/rosters"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Omnichat-Arkham-Version","value":"d93a439"},{"key":"X-Omnichat-Arkham-Trace-Id","value":"d04fca6e-cfed-45d5-90f7-8f1165411ed7"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 09 May 2023 06:47:54 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"content\": {\n        \"invalidRecords\": []\n    }\n}"},{"id":"e87cc0af-9af8-45e8-b55b-bb5fba40ec3e","name":"invalid records","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"API Token From Omnichat","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"month\": \"2023-04\",\n    \"idField\": \"email\",\n    \"records\": [\n        {\n            \"id\": \"lawrance.ho+1@easychat.co\",\n            \"locationCode\": \"locationCode4\",\n            \"time\": [\n                {\n                    \"day\": 1,\n                    \"in\": \"09:30\",\n                    \"out\": \"28:30\"\n                },\n                {\n                    \"day\": 2,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                }\n            ]\n        },\n        {\n            \"id\": \"lawrance.ho+1@easychat.co\",\n            \"locationCode\": \"locationCode-001\",\n            \"time\": [\n                {\n                    \"day\": 1,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                },\n                {\n                    \"day\": 2,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                }\n            ]\n        },\n        {\n            \"id\": \"lawrance.ho+1@easychat.co\",\n            \"locationCode\": \"locationCode-001\",\n            \"time\": [\n                {\n                    \"day\": 1,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                },\n                {\n                    \"day\": 2,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                }\n            ]\n        },\n        {\n            \"id\": \"A002\",\n            \"locationCode\": \"locationCode-001\",\n            \"time\": [\n                {\n                    \"day\": 1,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                },\n                {\n                    \"day\": 2,\n                    \"in\": \"09:30\",\n                    \"out\": \"18:30\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/rosters"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Omnichat-Arkham-Version","value":"a6a4881"},{"key":"X-Omnichat-Arkham-Trace-Id","value":"a033f8af-ee0c-4748-84eb-6aba650e8ecd"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 09 May 2023 06:58:09 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"content\": {\n        \"invalidRecords\": [\n            {\n                \"id\": \"A001\",\n                \"locationCode\": \"locationCode-001\",\n                \"time\": [\n                    {\n                        \"day\": 1,\n                        \"in\": \"09:30\",\n                        \"out\": \"18:30\"\n                    },\n                    {\n                        \"day\": 2,\n                        \"in\": \"09:30\",\n                        \"out\": \"18:30\"\n                    }\n                ],\n                \"error\": \"Duplicate 'id': 'A001', 'locationCode': 'locationCode-001'\"\n            },\n            {\n                \"id\": \"A001\",\n                \"locationCode\": \"locationCode-001\",\n                \"time\": [\n                    {\n                        \"day\": 1,\n                        \"in\": \"09:30\",\n                        \"out\": \"18:30\"\n                    },\n                    {\n                        \"day\": 2,\n                        \"in\": \"09:30\",\n                        \"out\": \"18:30\"\n                    }\n                ],\n                \"error\": \"Duplicate 'id': 'A001', 'locationCode': 'locationCode-001'\"\n            },\n            {\n                \"id\": \"A001\",\n                \"locationCode\": \"locationCode4\",\n                \"time\": [\n                    {\n                        \"day\": 1,\n                        \"in\": \"09:30\",\n                        \"out\": \"28:30\"\n                    },\n                    {\n                        \"day\": 2,\n                        \"in\": \"09:30\",\n                        \"out\": \"18:30\"\n                    }\n                ],\n                \"error\": \"Invalid in/out time format: '28:30'\"\n            },\n            {\n                \"id\": \"A002\",\n                \"locationCode\": \"locationCode-001\",\n                \"time\": [\n                    {\n                        \"day\": 1,\n                        \"in\": \"09:30\",\n                        \"out\": \"18:30\"\n                    },\n                    {\n                        \"day\": 2,\n                        \"in\": \"09:30\",\n                        \"out\": \"18:30\"\n                    }\n                ],\n                \"error\": \"User Not Found 'id' = A002\"\n            }\n        ]\n    }\n}"}],"_postman_id":"6d7ed6ce-3f3d-4fde-bfa7-296f57fbbfac"}],"id":"e65f1652-0a5b-467c-8078-942c12076213","_postman_id":"e65f1652-0a5b-467c-8078-942c12076213","description":""},{"name":"WhatsApp","item":[{"name":"Get WhatsApp Templates","id":"911cc1b7-6c78-4413-9b52-6ed30fc85bbd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"url":"https://open-api.omnichat.ai/v1/whatsapp-message-templates?page=1&pageSize=20&phone=85298765432","description":"<h4 id=\"description\">Description</h4>\n<p>Get WhatsApp message templates</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li>Marketing Could / Social CDP Cloud</li>\n<li>Marketing Open API Module</li>\n</ul>\n<h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the follow response body:</p>\n<p>Response object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>content</td>\n<td>Array of <code>WhatsAppMessageTemplate</code> Object</td>\n<td>List of WhatsApp message templates</td>\n</tr>\n<tr>\n<td>totalElements</td>\n<td>Integer</td>\n<td>Total Number of records</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>WhatsAppMessageTemplate</code> Objects</p>\n<p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","whatsapp-message-templates"],"host":["open-api","omnichat","ai"],"query":[{"description":{"content":"<p>Page number. (Default: 1)</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Number of templates per page. (Default: 20 ;Max: 100)</p>\n","type":"text/plain"},"key":"pageSize","value":"20"},{"description":{"content":"<p>WhatsApp Business phone number</p>\n","type":"text/plain"},"key":"phone","value":"85298765432"}],"variable":[]}},"response":[{"id":"e25d90b3-5bd0-4459-982e-1fdd2613b327","name":"Get WhatsApp Templates","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"API Token From Omnichat","type":"text"}],"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp-message-templates?page=1&pageSize=20&phone=85298765432","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp-message-templates"],"query":[{"key":"page","value":"1","description":"Page number. (Default: 1)"},{"key":"pageSize","value":"20","description":"Number of templates per page. (Default: 20 ;Max: 100)"},{"key":"phone","value":"85298765432","description":"WhatsApp Business phone number"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"content\": [\n        {\n            \"id\": \"1029152384366117\",\n            \"category\": \"UTILITY\",\n            \"status\": \"APPROVED\",\n            \"name\": \"pre_order_message\",\n            \"language\": \"zh_HK\",\n            \"components\": [\n                {\n                    \"type\": \"BODY\",\n                    \"text\": \"親愛的顧客：\\n\\n感謝您於網店的訂購！\\n\\n有關您的訂單（訂單編號：{{1}}）中訂購了 {{2}}件數預售產品\",\n                    \"example\": {\n                        \"body_text\": [\n                            [\n                                \"ORDER0001\",\n                                \"3\"\n                            ]\n                        ]\n                    }\n                }\n            ]\n        },\n        {\n            \"id\": \"3862205883993025\",\n            \"category\": \"MARKETING\",\n            \"status\": \"APPROVED\",\n            \"name\": \"autopush_eu\",\n            \"language\": \"zh_HK\",\n            \"components\": [\n                {\n                    \"type\": \"BODY\",\n                    \"text\": \"多謝您的支持，請持續關注我們最新動態與優惠資訊。若有查詢，歡迎與我們聯絡喔！💖\"\n                },\n                {\n                    \"type\": \"BUTTONS\",\n                    \"buttons\": [\n                        {\n                            \"type\": \"QUICK_REPLY\",\n                            \"text\": \"立即預約測試\"\n                        },\n                        {\n                            \"type\": \"QUICK_REPLY\",\n                            \"text\": \"主目錄\"\n                        },\n                        {\n                            \"type\": \"QUICK_REPLY\",\n                            \"text\": \"專人服務\"\n                        }\n                    ]\n                }\n            ]\n        },\n        {\n            \"id\": \"204650988695266\",\n            \"category\": \"UTILITY\",\n            \"status\": \"APPROVED\",\n            \"name\": \"canceled_order_en\",\n            \"language\": \"en\",\n            \"components\": [\n                {\n                    \"type\": \"HEADER\",\n                    \"format\": \"TEXT\",\n                    \"text\": \"Order cancelled\"\n                },\n                {\n                    \"type\": \"BODY\",\n                    \"text\": \"Order has been cancelled by store\\nOrder number：{{1}}\\nOrder amount：{{2}}$ {{3}}\\nPayment method：{{4}}\\nDelivery method：{{5}}\\nStore：{{6}}\\n*The link includes personal information, please do not share.\\n{{7}}\",\n                    \"example\": {\n                        \"body_text\": [\n                            [\n                                \"230601063333IRU\",\n                                \"HKD\",\n                                \"120\",\n                                \"online\",\n                                \"home-delivery\",\n                                \"Omnichat\",\n                                \"https://www.google.com.tw\"\n                            ]\n                        ]\n                    }\n                }\n            ]\n        },\n        {\n            \"id\": \"3474989632786277\",\n            \"category\": \"MARKETING\",\n            \"status\": \"APPROVED\",\n            \"name\": \"cart_abandonment_reminder_en\",\n            \"language\": \"en_US\",\n            \"components\": [\n                {\n                    \"type\": \"HEADER\",\n                    \"format\": \"IMAGE\",\n                    \"example\": {\n                        \"header_handle\": [\n                            \"https://scontent.whatsapp.net/v/t61.29466-34/295221653_3474989639452943_5806187949635819452_n.jpg?ccb=1-7&_nc_sid=57045b&_nc_ohc=GP4r5ue28zkAX_ofKdM&_nc_ht=scontent.whatsapp.net&edm=AH51TzQEAAAA&oh=01_AdS2_FN15DXiw_DHqee6LNfsNhTUBKpkO5m3MRLt1nc5nA&oe=64E82E12\"\n                        ]\n                    }\n                },\n                {\n                    \"type\": \"BODY\",\n                    \"text\": \"{{1}}\\n{{2}}\\n{{3}}\\n\\nIf you do not want to receive WhatsApp message, please send \\\"Unsubscribe\\\"\",\n                    \"example\": {\n                        \"body_text\": [\n                            [\n                                \"Black Tee\",\n                                \"$29.99\",\n                                \"Checkout with coupon code ABC123 to enjoy 10% off discount!\"\n                            ]\n                        ]\n                    }\n                },\n                {\n                    \"type\": \"BUTTONS\",\n                    \"buttons\": [\n                        {\n                            \"type\": \"URL\",\n                            \"text\": \"View Product\",\n                            \"url\": \"https://api.omnichat.ai/restapi/v1/redirect/abandoned_cart_msg?url={{1}}\",\n                            \"example\": [\n                                \"https://api.omnichat.ai/restapi/v1/redirect/abandoned_cart_msg?url=https://apple.com\"\n                            ]\n                        }\n                    ]\n                }\n            ]\n        },\n        {\n            \"id\": \"378881204331613\",\n            \"category\": \"MARKETING\",\n            \"status\": \"APPROVED\",\n            \"name\": \"doc_test\",\n            \"language\": \"en_US\",\n            \"components\": [\n                {\n                    \"type\": \"HEADER\",\n                    \"format\": \"DOCUMENT\",\n                    \"example\": {\n                        \"header_handle\": [\n                            \"https://scontent.whatsapp.net/v/t61.29466-34/299826941_378881207664946_3677727754011328572_n.pdf?ccb=1-7&_nc_sid=57045b&_nc_ohc=NOpL2ghaAB8AX8Lhvn0&_nc_ht=scontent.whatsapp.net&edm=AH51TzQEAAAA&oh=01_AdQn13farA6qGfiAmkTdLl3IhgbPIcsuvRtV-fa4f6C8-A&oe=64E8317C\"\n                        ]\n                    }\n                },\n                {\n                    \"type\": \"BODY\",\n                    \"text\": \"You can contact us via phone call\"\n                },\n                {\n                    \"type\": \"FOOTER\",\n                    \"text\": \"Brand A\"\n                },\n                {\n                    \"type\": \"BUTTONS\",\n                    \"buttons\": [\n                        {\n                            \"type\": \"PHONE_NUMBER\",\n                            \"text\": \"Contact Us\",\n                            \"phone_number\": \"+85200000000\"\n                        }\n                    ]\n                }\n            ]\n        }\n    ],\n    \"totalElements\": 5\n}"}],"_postman_id":"911cc1b7-6c78-4413-9b52-6ed30fc85bbd"}],"id":"1be790f8-4024-46c1-afa6-e4781e1f3291","_postman_id":"1be790f8-4024-46c1-afa6-e4781e1f3291","description":""},{"name":"Rooms","item":[{"name":"Assign follow up agent","id":"70f26131-973d-452d-922c-5cb90574f743","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"platform\": \"whatsapp\",\n    \"channelId\": \"85250000001\",\n    \"userId\": \"85215022101325\",\n    \"agentEmail\": \"agent001@example.com\",\n    \"agentPhone\": null,\n\t\"agentEmployeeCode\": \"EM0001\",\n\t\"agentShopLocationCode\": \"SHOP02\"\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/rooms/assign-agent","description":"<h4 id=\"description\">Description</h4>\n<p>Assign follow up agent user to a contact</p>\n<h4 id=\"note\">Note</h4>\n<p>if target room is a collaboration room and the target agent role is not CS role, the target agent must be assigned as a collaborator before assign-agent. Call <code>/collaborator/assign</code> first.</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>Customer Service Could / Social CDP Cloud</p>\n</li>\n<li><p>CRM Open API Module</p>\n</li>\n</ul>\n<h4 id=\"request-body\">Request body</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>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>platform</td>\n<td>String</td>\n<td>true</td>\n<td>Messaging Platform. Supported values:  <br />- <code>line</code>  <br />- <code>whatsapp</code></td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>String</td>\n<td>true</td>\n<td>Messaging Platform Channel ID.  <br />- For LINE → LINE Messaging Channel ID  <br />- For WhatsApp → WhatsApp Business Phone Number</td>\n</tr>\n<tr>\n<td>userId</td>\n<td>String</td>\n<td>true</td>\n<td>Contact's User ID.  <br />- For LINE → LINE User ID  <br />- For WhatsApp → WhatsApp Phone Number</td>\n</tr>\n<tr>\n<td>agentEmail</td>\n<td>String</td>\n<td>false</td>\n<td>Agent login email in Omnichat  <br />  <br />Note: One of <code>agentEmail</code>, <code>agentPhone</code> or <code>agentEmployeeCode</code> is required</td>\n</tr>\n<tr>\n<td>agentPhone</td>\n<td>String</td>\n<td>false</td>\n<td>Agent login phone in Omnichat  <br />  <br />Note: One of <code>agentEmail</code>, <code>agentPhone</code> or <code>agentEmployeeCode</code> is required</td>\n</tr>\n<tr>\n<td>agentEmployeeCode</td>\n<td>String</td>\n<td>false</td>\n<td>Agent employee code (Only for salesperson / sales manager agent user)  <br />  <br />Note: One of <code>agentEmail</code>, <code>agentPhone</code> or <code>agentEmployeeCode</code> is required</td>\n</tr>\n<tr>\n<td>agentShopLocationCode</td>\n<td>String</td>\n<td>false</td>\n<td>Agent shop location code  <br />  <br />Note: Required if assign to salesperson / sales manager agent user</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 204 with empty response body</p>\n<p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{  \"message\": \"OCE::&lt;category&gt;::&lt;message&gt;\" }\n\n</code></pre>\n<h4 id=\"error-response-examples\">Error Response Examples</h4>\n<p>For detailed error response examples, refer to: <a href=\"https://www.notion.so/Assign-agent-Error-Response-example-306ae8904ccc808282e5e274cac3af28\">Assign agent - Error Response example</a></p>\n","urlObject":{"protocol":"https","path":["v1","rooms","assign-agent"],"host":["open-api","omnichat","ai"],"query":[],"variable":[]}},"response":[{"id":"9617e00e-bfd5-4a4b-a37f-d1bd673998dc","name":"Assign to CS user","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"platform\": \"whatsapp\",\n    \"channelId\": \"85250000001\",\n    \"userId\": \"85215022101325\",\n    \"agentEmail\": null,\n    \"agentPhone\": \"+85298765432\",\n    \"agentEmployeeCode\": null,\n    \"agentShopLocationCode\": null\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/rooms/assign-agent"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":""},{"id":"8d3a65e3-1f07-4c15-9d07-c68103d454fc","name":"Assign to salesperson","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"platform\": \"whatsapp\",\n    \"channelId\": \"85250000001\",\n    \"userId\": \"85215022101325\",\n    \"agentEmail\": null,\n    \"agentPhone\": null,\n    \"agentEmployeeCode\": \"EM0001\",\n    \"agentShopLocationCode\": \"SHOP02\"\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/rooms/assign-agent"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"70f26131-973d-452d-922c-5cb90574f743"},{"name":"Assign collaborator","id":"d5c19faf-ed5b-46d6-88f2-6ab3512625dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n    \"platform\": \"whatsapp\",\n    \"channelId\": \"85250000001\",\n    \"userId\": \"85215022101325\",\n    \"agentEmail\": \"agent001@example.com\",\n    \"agentPhone\": null,\n    \"agentEmployeeCode\": \"EM0001\",\n    \"agentShopLocationCode\": \"SHOP02\"\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/rooms/assign-collaborator","description":"<h4 id=\"description\">Description</h4>\n<p>Assign collaborator to a contact</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>Customer Service Could / Social CDP Cloud</p>\n</li>\n<li><p>CRM Open API Module</p>\n</li>\n</ul>\n<h4 id=\"request-body\">Request body</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>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>platform</td>\n<td>String</td>\n<td>true</td>\n<td>Messaging Platform. Supported values:  <br />- <code>line</code>  <br />- <code>whatsapp</code></td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>String</td>\n<td>true</td>\n<td>Messaging Platform Channel ID.  <br />- For LINE → LINE Messaging Channel ID  <br />- For WhatsApp → WhatsApp Business Phone Number</td>\n</tr>\n<tr>\n<td>userId</td>\n<td>String</td>\n<td>true</td>\n<td>Contact's User ID.  <br />- For LINE → LINE User ID  <br />- For WhatsApp → WhatsApp Phone Number</td>\n</tr>\n<tr>\n<td>agentEmail</td>\n<td>String</td>\n<td>false</td>\n<td>Agent login email in Omnichat  <br />  <br />Note: One of <code>agentEmail</code>, <code>agentPhone</code> or <code>agentEmployeeCode</code> is required</td>\n</tr>\n<tr>\n<td>agentPhone</td>\n<td>String</td>\n<td>false</td>\n<td>Agent login phone in Omnichat  <br />  <br />Note: One of <code>agentEmail</code>, <code>agentPhone</code> or <code>agentEmployeeCode</code> is required</td>\n</tr>\n<tr>\n<td>agentEmployeeCode</td>\n<td>String</td>\n<td>false</td>\n<td>Agent employee code  <br />  <br />Note: One of <code>agentEmail</code>, <code>agentPhone</code> or <code>agentEmployeeCode</code> is required. If using <code>agentEmployeeCode</code>, <code>agentShopLocationCode</code> is also required.</td>\n</tr>\n<tr>\n<td>agentShopLocationCode</td>\n<td>String</td>\n<td>false</td>\n<td>Agent shop location code  <br />  <br />Note: Required if assigning via <code>agentEmployeeCode</code> (salesperson / sales manager agent user). Not required when using <code>agentEmail</code> or <code>agentPhone</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 204 with empty response body</p>\n<p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{  \"message\": \"OCE::&lt;category&gt;::&lt;message&gt;\" }\n\n</code></pre>\n<h4 id=\"400-bad-request\">400 Bad Request</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Message</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>OCE::BAD_REQUEST::userId is required</code></td>\n<td><code>userId</code> field is blank or missing.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::channelId is required</code></td>\n<td><code>channelId</code> field is blank or missing.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::platform is required</code></td>\n<td><code>platform</code> field is blank or missing.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::platform (xxx) is not supported yet</code></td>\n<td>The provided platform is not <code>line</code> or <code>whatsapp</code>.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::team (xxx) is not supported to use Open API Customer Service</code></td>\n<td>The team does not have <code>OPEN_API</code> or <code>OPEN_API_CUSTOMER_SERVICE</code> feature enabled.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::At least one of agentEmail, agentPhone, or agentEmployeeCode must be provided</code></td>\n<td>All three agent identifier fields are blank.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::agentShopLocationCode is required when agentEmployeeCode is provided</code></td>\n<td><code>agentEmployeeCode</code> was provided but <code>agentShopLocationCode</code> is missing.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::Platform not found: xxx</code></td>\n<td>Platform name does not match any known platform enum.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::Channel not found: xxx</code></td>\n<td>WhatsApp account not found for the given team and channel telephone.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::WhatsappAccUserDoc not found: xxx</code></td>\n<td>WhatsApp user not found for the given team, channel, and telephone.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::No valid agent identifier provided</code></td>\n<td>No agent resolver could handle the provided agent identifiers.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::Unauthenticated access token</code></td>\n<td>The provided <code>token</code> does not match the system API key.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"500-internal-server-error\">500 Internal Server Error</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Message</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>OCE::INTERNAL_SERVER_ERROR::</code></td>\n<td>Unexpected server error.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v1","rooms","assign-collaborator"],"host":["open-api","omnichat","ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"d5c19faf-ed5b-46d6-88f2-6ab3512625dc"},{"name":"Unassign agent","id":"9ea26161-d084-48cc-9b6c-43a378562246","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n    \"platform\": \"whatsapp\",\n    \"channelId\": \"85250000001\",\n    \"userId\": \"85215022101325\"\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/rooms/unassign-agent","description":"<h4 id=\"description\">Description</h4>\n<p>Unassign single sales role agent</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li>Available for OMO teams only</li>\n</ul>\n<h4 id=\"request-body\">Request body</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>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>platform</td>\n<td>String</td>\n<td>true</td>\n<td>Messaging Platform. Supported values:<br />- <code>line</code><br />- <code>whatsapp</code></td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>String</td>\n<td>true</td>\n<td>Messaging Platform Channel ID.<br />- For LINE → LINE Messaging Channel ID<br />- For WhatsApp → WhatsApp Business Phone Number</td>\n</tr>\n<tr>\n<td>userId</td>\n<td>String</td>\n<td>true</td>\n<td>Contact's User ID.<br />- For LINE → LINE User ID<br />- For WhatsApp → WhatsApp Phone Number</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 204 with empty response body</p>\n<p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{  \"message\": \"OCE::&lt;category&gt;::&lt;message&gt;\" }\n</code></pre>\n<h4 id=\"error-response-examples\">Error Response Examples</h4>\n<p>For detailed error response examples, refer to: <a href=\"https://www.notion.so/Unassign-Agent-Error-Response-example-306ae8904ccc80b6bbf4f57415679132\">Unassign Agent - Error Response example</a></p>\n","urlObject":{"protocol":"https","path":["v1","rooms","unassign-agent"],"host":["open-api","omnichat","ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"9ea26161-d084-48cc-9b6c-43a378562246"},{"name":"Unassign collaborator","id":"34bfee7a-c6bb-412a-81fa-90cf6d69b7a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"platform\": \"whatsapp\",\n  \"channelId\": \"85250000001\",\n  \"userId\": \"85215022101325\",\n  \"agentEmail\": \"agent001@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/rooms/unassign-collaborator","description":"<h4 id=\"description\">Description</h4>\n<p>Unassign collaborator from a contact</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>Customer Service Could / Social CDP Cloud</p>\n</li>\n<li><p>CRM Open API Module</p>\n</li>\n</ul>\n<h4 id=\"request-body\">Request body</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>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>platform</td>\n<td>String</td>\n<td>true</td>\n<td>Messaging Platform. Supported values:  <br />- <code>line</code>  <br />- <code>whatsapp</code></td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>String</td>\n<td>true</td>\n<td>Messaging Platform Channel ID.  <br />- For LINE → LINE Messaging Channel ID  <br />- For WhatsApp → WhatsApp Business Phone Number</td>\n</tr>\n<tr>\n<td>userId</td>\n<td>String</td>\n<td>true</td>\n<td>Contact's User ID.  <br />- For LINE → LINE User ID  <br />- For WhatsApp → WhatsApp Phone Number</td>\n</tr>\n<tr>\n<td>agentEmail</td>\n<td>String</td>\n<td>false</td>\n<td>Agent login email in Omnichat  <br />  <br />Note: One of <code>agentEmail</code>, <code>agentPhone</code> or <code>agentEmployeeCode</code> is required</td>\n</tr>\n<tr>\n<td>agentPhone</td>\n<td>String</td>\n<td>false</td>\n<td>Agent login phone in Omnichat  <br />  <br />Note: One of <code>agentEmail</code>, <code>agentPhone</code> or <code>agentEmployeeCode</code> is required</td>\n</tr>\n<tr>\n<td>agentEmployeeCode</td>\n<td>String</td>\n<td>false</td>\n<td>Agent employee code  <br />  <br />Note: One of <code>agentEmail</code>, <code>agentPhone</code> or <code>agentEmployeeCode</code> is required</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 204 with empty response body</p>\n<p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{ \"message\": \"OCE::&lt;category&gt;::&lt;message&gt;\" }\n\n</code></pre>\n<h4 id=\"400-bad-request\">400 Bad Request</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Message</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>OCE::BAD_REQUEST::userId is required</code></td>\n<td><code>userId</code> field is blank or missing.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::channelId is required</code></td>\n<td><code>channelId</code> field is blank or missing.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::platform is required</code></td>\n<td><code>platform</code> field is blank or missing.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::platform (xxx) is not supported yet</code></td>\n<td>The provided platform is not <code>line</code> or <code>whatsapp</code>.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::team (xxx) is not supported to use Open API Customer Service</code></td>\n<td>The team does not have <code>OPEN_API</code> or <code>OPEN_API_CUSTOMER_SERVICE</code> feature enabled.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::Platform not found: xxx</code></td>\n<td>Platform name does not match any known platform enum.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::Channel not found: xxx</code></td>\n<td>WhatsApp account not found for the given team and channel telephone.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::WhatsappAccUserDoc not found: xxx</code></td>\n<td>WhatsApp user not found for the given team, channel, and telephone.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::No valid agent identifier provided</code></td>\n<td>No agent resolver could handle the provided agent identifiers.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::Unauthenticated access token</code></td>\n<td>The provided <code>token</code> does not match the system API key.</td>\n</tr>\n<tr>\n<td><code>OCE::BAD_REQUEST::Missing arkhamApiToken in systemSetting</code></td>\n<td>System setting <code>arkhamApiToken</code> is not configured.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"500-internal-server-error\">500 Internal Server Error</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Message</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>OCE::INTERNAL_SERVER_ERROR::</code></td>\n<td>Unexpected server error.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v1","rooms","unassign-collaborator"],"host":["open-api","omnichat","ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"34bfee7a-c6bb-412a-81fa-90cf6d69b7a8"}],"id":"7a869355-042c-4421-8d56-5c9877c5d5b8","_postman_id":"7a869355-042c-4421-8d56-5c9877c5d5b8","description":""},{"name":"Broadcast","item":[{"name":"Send broadcast","id":"b53ed761-e423-426a-b8f8-d6e94b8c3a00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"subject\": \"Final Sales Promo\",\n    \"platform\": \"line\",\n    \"channelId\": \"12345678\",\n    \"to\": [\n        \"U1111111111111\",\n        \"U2222222222222\"\n    ],\n    \"tags\": [\"sales-2023\"],\n    \"messages\": [\n        {\n            \"type\": \"text\",\n            \"text\": \"Final Sale Message 1\"\n        },\n        {\n            \"type\": \"text\",\n            \"text\": \"Final Sale Message 2\"\n        },\n        {\n            \"type\": \"image\",\n            \"image\": \"https://example.com/image.png\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/broadcast","description":"<h4 id=\"description\">Description</h4>\n<p>Send broadcast message to multiple contacts</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li>Marketing Could / Social CDP Cloud</li>\n<li>Marketing Open API Module</li>\n</ul>\n<h4 id=\"request-body\">Request body</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subject</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />Broadcast Subject.</td>\n</tr>\n<tr>\n<td>platform</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />Messaging Platform.  <br />  <br />Supported values:  <br />- <code>line</code>  <br />- <code>facebook</code>  <br />- <code>whatsapp</code></td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />  <br />Messaging Platform Channel ID.  <br />  <br />- For LINE → LINE Messaging Channel ID  <br />- For For Facebook → Facebook Page ID  <br />- For WhatsApp → WhatsApp Business Phone Number</td>\n</tr>\n<tr>\n<td>to</td>\n<td>Array of String</td>\n<td><strong>Required.</strong>  <br />Contact’s User IDs.  <br /><strong>Max: 150 User IDs</strong>  <br />  <br />- For LINE → LINE User ID  <br />- For Facebook → Facebook PSID  <br />- For WhatsApp → WhatsApp Phone Number</td>\n</tr>\n<tr>\n<td>scheduledAt</td>\n<td>String</td>\n<td>Optional.  <br />  <br />Broadcast scheduled time in ISO8601 datetime string (Format: <code>YYYY-MM-DD'T'HH:mm:ss</code> , e.g. <code>2023-08-12T10:43:11</code>)</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>Array of String</td>\n<td>Optional.  <br />  <br />Tags to be added to the contacts receive this broadcast</td>\n</tr>\n<tr>\n<td>messages</td>\n<td>Array of <code>Message</code> Object</td>\n<td><strong>Required.</strong>  <br />  <br />Messages sent to the contact.  <br />  <br />You can either send text/products messages (at most 5 messages) or chatbot message block (at most 1 message block).  <br />  <br /><strong>You CANNOT send text/image/products message together with chatbot message block.  <br /></strong>  <br /><strong>Noted: text / image / products messages can be sent together</strong></td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Message</code> object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />Message type.  <br />  <br />Supported value:  <br />- <code>text</code>: Text message  <br />- <code>image</code>: Image message  <br />- <code>block</code>: Chatbot message block</td>\n</tr>\n<tr>\n<td>text</td>\n<td>String</td>\n<td><strong>Required for type=text.</strong>  <br />  <br />Text Message content</td>\n</tr>\n<tr>\n<td>image</td>\n<td>String</td>\n<td><strong>Required for type=image.</strong>  <br />  <br />Image URL</td>\n</tr>\n<tr>\n<td>blockId</td>\n<td>String</td>\n<td><strong>Required for type=block.</strong>  <br />  <br />Chatbot Message Block ID from Get chatbot message block list API</td>\n</tr>\n<tr>\n<td>products</td>\n<td>Array of <code>Product</code> Object</td>\n<td><strong>Required for type=products.</strong>  <br />  <br />Product information for the carousel message  <br />  <br />Max. number of products: 10</td>\n</tr>\n<tr>\n<td>whatsappTemplate</td>\n<td>WhatsApp template Object</td>\n<td>Required for type=whatsappTemplate.  <br />  <br />WhatsApp template message infromation</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Product</code> Object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />  <br />Product Name</td>\n</tr>\n<tr>\n<td>image</td>\n<td>String</td>\n<td><strong>Required</strong>  <br />  <br />Product Image URL</td>\n</tr>\n<tr>\n<td>url</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />Product Link URL, which is used as the url of the call-to-action button</td>\n</tr>\n<tr>\n<td>price</td>\n<td>String</td>\n<td>Product Price with currency</td>\n</tr>\n<tr>\n<td>buttonLabel</td>\n<td>String</td>\n<td><strong>Required.</strong>  <br />The text label of the call-to-action button</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>WhatsApp template</code> Object</p>\n<p>Please refer to <code>Template Object</code> in <a href=\"https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages#template-object\">WhatsApp API Documentation</a>.</p>\n<p>Please refer to <code>namespace</code> in <a href=\"https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates#--------\">WhatsApp API Documentation Guide</a></p>\n<h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the follow body:</p>\n<p>Response <code>content</code> object</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>broadcastId</td>\n<td>Broadcast ID. Used for retrieve the performance report</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","broadcast"],"host":["open-api","omnichat","ai"],"query":[],"variable":[]}},"response":[{"id":"abf1f008-b6e2-4238-8e72-270e5f99bbc3","name":"Send broadcast (text + image message)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"subject\": \"Final Sales Promo\",\n    \"platform\": \"line\",\n    \"channelId\": \"12345678\",\n    \"to\": [\n        \"U1111111111111\",\n        \"U2222222222222\"\n    ],\n    \"tags\": [\"sales-2023\"],\n    \"messages\": [\n        {\n            \"type\": \"text\",\n            \"text\": \"Final Sale Message 1\"\n        },\n        {\n            \"type\": \"text\",\n            \"text\": \"Final Sale Message 2\"\n        },\n        {\n            \"type\": \"image\",\n            \"image\": \"https://example.com/image.png\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/broadcast"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"content\": {\n    \"broadcastId\": \"f5e1f7be-3aa3-4989-be6e-997b9568d3e5\"\n  }\n}"},{"id":"7063d9e5-3934-4637-80a1-ce8e9e4c5ec0","name":"Send broadcast (products + text message)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"subject\": \"Final Sale Promo\",\n  \"platform\": \"line\",\n  \"channelId\": \"1626460947\",\n  \"to\": [\n    \"U66a669e12ff66601c06e1dc\",\n    \"U66a669e12ff66601c06e1db\"\n  ],\n  \"tags\": [\"sales-2023\"],\n  \"messages\": [\n    {\n      \"type\": \"text\",\n      \"text\": \"Something left in your shopping cart\"\n    },{\n      \"type\": \"text\",\n      \"text\": \"Checkout now with discount code OFF10 to get 10% off\"\n    },\n    {\n      \"type\": \"products\",\n      \"products\": [\n        {\n          \"name\": \"Black Tee\",\n          \"url\": \"https://example.com/tee.html\",\n          \"image\": \"https://example.com/tee.png\",\n          \"price\": \"TWD$100\",\n          \"buttonLabel\": \"View Product\"\n        },\n        {\n          \"name\": \"White Tee\",\n          \"url\": \"https://example.com/white-tee.html\",\n          \"image\": \"https://example.com/white-tee.png\",\n          \"price\": \"TWD$250\",\n          \"buttonLabel\": \"View Product\"\n        }\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/broadcast"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"content\": {\n    \"broadcastId\": \"f5e1f7be-3aa3-4989-be6e-997b9568d3e5\"\n  }\n}"},{"id":"06a057c6-3815-45de-b803-1120ac72a546","name":"Send broadcast (chatbot message)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"subject\": \"Final Sales Promo\",\n    \"platform\": \"line\",\n    \"channelId\": \"12345678\",\n    \"to\": [\n        \"U1111111111111\",\n        \"U2222222222222\"\n    ],\n    \"tags\": [\"sales-2023\"],\n    \"messages\": [\n        {\n            \"type\": \"block\",\n            \"blockId\": \"07269d7a-68d6-4f36-9c0b-c837d9b296ef\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/broadcast"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"content\": {\n    \"broadcastId\": \"f5e1f7be-3aa3-4989-be6e-997b9568d3e5\"\n  }\n}"},{"id":"2fe82d8c-9a14-4669-9682-1b4d6236517f","name":"Send broadcast (whatsapp template message)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"subject\": \"Final Sales Promo\",\n    \"platform\": \"whatsapp\",\n    \"channelId\": \"85290000001\",\n    \"to\": [\n        \"85260000001\",\n        \"85260000002\"\n    ],\n    \"tags\": [\"sales-2023\"],\n    \"messages\": [\n        {\n            \"type\": \"whatsappTemplate\",\n            \"whatsappTemplate\": {\n                \"name\": \"cny_campaign_2023\",\n                \"namespace\": \"1324_3242_3413_123\",\n                \"components\": [\n                    {\n                        \"type\": \"header\",\n                        \"parameters\": [\n                            {\n                                \"type\": \"image\",\n                                \"image\": {\n                                    \"link\": \"https://example.com/red-pocket.png\"\n                                }\n                            }\n                        ]\n                    },\n                    {\n                        \"type\": \"body\",\n                        \"parameters\": [\n                            {\n                                \"type\": \"text\",\n                                \"text\": \"Mr. Chan\"\n                            },\n                            {\n                                \"type\": \"text\",\n                                \"text\": \"$100 Red pocket\"\n                            }\n                        ]\n                    },\n                    {\n                        \"type\": \"button\",\n                        \"sub_type\": \"url\",\n                        \"index\": \"0\",\n                        \"parameters\": [\n                            {\n                                \"type\": \"text\",\n                                \"text\": \"https://example.com/landing.html\"\n                            }\n                        ]\n                    }\n                ]\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/broadcast"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"content\": {\n    \"broadcastId\": \"f5e1f7be-3aa3-4989-be6e-997b9568d3e5\"\n  }\n}"}],"_postman_id":"b53ed761-e423-426a-b8f8-d6e94b8c3a00"},{"name":"Get broadcast list","id":"5cd5ff29-4464-4774-ab8e-a9888eaad7d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://open-api.omnichat.ai/v1/broadcast?platform=line&channelId=&page=1&pageSize=10&type=1,3,4","description":"<h4 id=\"description\">Description</h4>\n<p>Get broadcast job list</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>Marketing / Social CDP Could</p>\n</li>\n<li><p>Marketing Open API Module</p>\n</li>\n</ul>\n<h4 id=\"query-parameters\">Query Parameters</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>platform</td>\n<td>Messaging Platform.  <br />  <br />Supported values:  <br />- line  <br />- facebook  <br />- whatsapp</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>Specific Messaging Platform Channel ID.  <br />  <br />- For LINE → LINE Channel ID  <br />- For Facebook → Facebook Page ID  <br />- For WhatsApp → WhatsApp Business Phone Number</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Page number .  <br />  <br />Default: 1</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Number of records per page  <br />  <br />Default: 10 (Max: 100)</td>\n</tr>\n<tr>\n<td>type</td>\n<td><strong>Required.</strong>  <br />  <br />Supported values:  <br />- 1: Broadcast  <br />- 2: Mass message  <br />- 3: Open API Broadcast  <br />- 4: Open API External Integration Broadcast</td>\n</tr>\n<tr>\n<td>status</td>\n<td>Supported values:  <br />- 0: pending  <br />- 1: completed  <br />- 2: processing  <br />- 3: canceled  <br />- 4: scheduled  <br />- 5: on hold (display as pending)  <br />- 6: pending csv recipient list to be processed (display as pending)  <br />- 7: processing csv recipient list (display as pending)  <br />- 8: processing recipient list by filter (display as pending)  <br />- 9: failed</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the follow response body:</p>\n<p>Response object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>content</td>\n<td>Array of <code>BroadcastJob</code> Object</td>\n<td>List of broadcast jobs</td>\n</tr>\n<tr>\n<td>totalElements</td>\n<td>Integer</td>\n<td>Total Number of records</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>BroadcastJob</code> Object</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>id</td>\n<td>Broadcast ID</td>\n</tr>\n<tr>\n<td>platform</td>\n<td>Messaging Platform.  <br />  <br />Supported values:  <br />- line  <br />- facebook  <br />- whatsapp</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>Specific Messaging Platform Channel ID.  <br />  <br />- For LINE → LINE Channel ID  <br />- For Facebook → Facebook Page ID  <br />- For WhatsApp → WhatsApp Business Phone Number</td>\n</tr>\n<tr>\n<td>channelName</td>\n<td>Messaging Platform Channel Name</td>\n</tr>\n<tr>\n<td>subject</td>\n<td>Broadcast Subject</td>\n</tr>\n<tr>\n<td>recipientType</td>\n<td>Recipient type.  <br />  <br />Supported values:  <br />- 1: Customer filter  <br />- 2: CSV list  <br />- 3: Open API</td>\n</tr>\n<tr>\n<td>type</td>\n<td>Broadcast type  <br />  <br />Supported values:  <br />- 1: Broadcast  <br />- 2: Mass message  <br />- 3: Open API Broadcast</td>\n</tr>\n<tr>\n<td>mode</td>\n<td>Recipient filter mode.  <br />  <br />Possible values:  <br />- filter: By filters  <br />- manual: Manually select recipients  <br />- csv: Use CSV file as recipient list</td>\n</tr>\n<tr>\n<td>sentAt</td>\n<td>Broadcast sent time in ISO8601 format</td>\n</tr>\n<tr>\n<td>status</td>\n<td>Broadcast status  <br />  <br />Supported values:  <br />- 0: pending  <br />- 1: completed  <br />- 2: processing  <br />- 3: canceled  <br />- 4: scheduled  <br />- 5: on hold (display as pending)  <br />- 6: pending csv recipient list to be processed (display as pending)  <br />- 7: processing csv recipient list (display as pending)  <br />- 8: processing recipient list by filter (display as pending)  <br />- 9: failed</td>\n</tr>\n<tr>\n<td>recipientCount</td>\n<td>Number of audience</td>\n</tr>\n<tr>\n<td>success</td>\n<td>Number of audience successfully received this message  <br />  <br />[Noted: for WhatsApp broadcast, success refers to message delivered to contact (double grey ticks)]</td>\n</tr>\n<tr>\n<td>successRate</td>\n<td>Success rate, calculated as (success / recipientCount) x 100%</td>\n</tr>\n<tr>\n<td>sent</td>\n<td>Number of audience successfully sent  <br />  <br />[Noted: for WhatsApp, sent refers to message sent to WhatsApp server only (single grey tick)]</td>\n</tr>\n<tr>\n<td>sentRate</td>\n<td>Sent rate, calculated as (sent / recipientCount) x 100%</td>\n</tr>\n<tr>\n<td>failed</td>\n<td>Number of audience failed to receive this message</td>\n</tr>\n<tr>\n<td>failRate</td>\n<td>Fail rate, calculated as (failed / recipientCount) x 100%</td>\n</tr>\n<tr>\n<td>read</td>\n<td>Number of audience read the message</td>\n</tr>\n<tr>\n<td>readRate</td>\n<td>Read rate, calculated as (read / success) x 100%</td>\n</tr>\n<tr>\n<td>clicked</td>\n<td>Number of audience clicked the message</td>\n</tr>\n<tr>\n<td>clickRate</td>\n<td>Click through rate, calculated as (clicked / success) x 100%</td>\n</tr>\n<tr>\n<td>revenue</td>\n<td>Revenue generated by this broadcast</td>\n</tr>\n<tr>\n<td>purchase</td>\n<td>Number of purchase generated by this broadcast</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>Tags added to the contact after broadcast</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","broadcast"],"host":["open-api","omnichat","ai"],"query":[{"description":{"content":"<p>[Required] Messaging Platform</p>\n","type":"text/plain"},"key":"platform","value":"line"},{"description":{"content":"<p>[Optional] Specific Messaging Platform Channel ID</p>\n","type":"text/plain"},"key":"channelId","value":""},{"description":{"content":"<p>Page number. (Default: 1)</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Number of contacts per page. (Default: 10 ;Max: 100)</p>\n","type":"text/plain"},"key":"pageSize","value":"10"},{"description":{"content":"<p>[Optional] Broadcast job type</p>\n","type":"text/plain"},"key":"type","value":"1,3,4"}],"variable":[]}},"response":[{"id":"350edb1e-0551-42ee-9cce-af34ed169f0d","name":"Get broadcast list","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://open-api.omnichat.ai/v1/broadcast?platform=line&channelId=&page=1&pageSize=10&type=1,3","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","broadcast"],"query":[{"key":"platform","value":"line","description":"[Required] Messaging Platform"},{"key":"channelId","value":"","description":"[Optional] Specific Messaging Platform Channel ID"},{"key":"page","value":"1","description":"Page number. Default: 1"},{"key":"pageSize","value":"10","description":"Number of contacts per page. Default: 10 (Max: 100)"},{"key":"type","value":"1,3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"content\": [\n\t\t{\n\t\t\t\"id\": \"9748a4b1-d106-4d67-bc1c-9fe6cb85a91b\",\n\t\t\t\"platform\": \"line\",\n\t\t\t\"channelId\": \"124321231\",\n\t\t\t\"channelName\": \"LINE OA 1\",\n\t\t\t\"subject\": \"Broadcast 1\",\n\t\t\t\"recipientType\": 1,\n\t\t\t\"type\": 1,\n\t\t\t\"mode\": \"filter\",\n\t\t\t\"sentAt\": \"2023-01-03T12:32:12\",\n\t\t\t\"status\": 1,\n            \"recipientCount\": 1942,\n            \"success\": 1491,\n            \"successRate\": \"76.78%\",\n            \"sent\": 1662,\n            \"sentRate\": \"85.58%\",\n            \"failed\": 280,\n            \"failRate\": \"14.42%\",\n            \"read\": 861,\n            \"readRate\": \"57.75%\",\n            \"clicked\": 9,\n            \"clickRate\": \"0.60%\",\n\t\t\t\"purchase\": 1,\n\t\t\t\"revenue\": \"NT$10,234\",\n\t\t\t\"tags\": [\"cyn-broadcast\"]\n\t\t}\t\n\t],\n\t\"totalElements\": 20\n}"}],"_postman_id":"5cd5ff29-4464-4774-ab8e-a9888eaad7d2"},{"name":"Get broadcast details","id":"65888a59-2beb-4f9d-ae4e-e567d92c3e6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://open-api.omnichat.ai/v1/broadcast/:id","description":"<h4 id=\"description\">Description</h4>\n<p>Get broadcast job details</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>Marketing / Social CDP Could</p>\n</li>\n<li><p>Marketing Open API Module</p>\n</li>\n</ul>\n<h4 id=\"path-parameters\">Path Parameters</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>id</td>\n<td>Broadcast ID</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the follow response body:</p>\n<p>Response object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>content</td>\n<td><code>BroadcastJob</code> Object</td>\n<td>Broadcast job details</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>BroadcastJob</code> Object</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>id</td>\n<td>Broadcast ID</td>\n</tr>\n<tr>\n<td>platform</td>\n<td>Messaging Platform.  <br />  <br />Supported values:  <br />- line  <br />- facebook  <br />- whatsapp</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>Specific Messaging Platform Channel ID.  <br />  <br />- For LINE → LINE Channel ID  <br />- For Facebook → Facebook Page ID  <br />- For WhatsApp → WhatsApp Business Phone Number</td>\n</tr>\n<tr>\n<td>channelName</td>\n<td>Messaging Platform Channel Name</td>\n</tr>\n<tr>\n<td>subject</td>\n<td>Broadcast Subject</td>\n</tr>\n<tr>\n<td>recipientType</td>\n<td>Recipient type.  <br />  <br />Supported values:  <br />- 1: Customer filter  <br />- 2: CSV list  <br />- 3: Open API</td>\n</tr>\n<tr>\n<td>type</td>\n<td>Broadcast type  <br />  <br />Supported values:  <br />- 1: Broadcast  <br />- 2: Mass message  <br />- 3: Open API Broadcast</td>\n</tr>\n<tr>\n<td>mode</td>\n<td>Recipient filter mode.  <br />  <br />Possible values:  <br />- filter: By filters  <br />- manual: Manually select recipients  <br />- csv: Use CSV file as recipient list</td>\n</tr>\n<tr>\n<td>sentAt</td>\n<td>Broadcast sent time in ISO8601 format</td>\n</tr>\n<tr>\n<td>status</td>\n<td>Broadcast status  <br />  <br />Supported values:  <br />- 0: pending  <br />- 1: completed  <br />- 2: processing  <br />- 3: canceled  <br />- 4: scheduled  <br />- 5: on hold (display as pending)  <br />- 6: pending csv recipient list to be processed (display as pending)  <br />- 7: processing csv recipient list (display as pending)  <br />- 8: processing recipient list by filter (display as pending)  <br />- 9: failed</td>\n</tr>\n<tr>\n<td>recipientCount</td>\n<td>Number of audience</td>\n</tr>\n<tr>\n<td>success</td>\n<td>Number of audience successfully received this message  <br />  <br />[Noted: for WhatsApp broadcast, success refers to message delivered to contact (double grey ticks)]</td>\n</tr>\n<tr>\n<td>successRate</td>\n<td>Success rate, calculated as (success / recipientCount) x 100%</td>\n</tr>\n<tr>\n<td>sent</td>\n<td>Number of audience successfully sent  <br />  <br />[Noted: for WhatsApp, sent refers to message sent to WhatsApp server only (single grey tick)]</td>\n</tr>\n<tr>\n<td>sentRate</td>\n<td>Sent rate, calculated as (sent / recipientCount) x 100%</td>\n</tr>\n<tr>\n<td>failed</td>\n<td>Number of audience failed to receive this message</td>\n</tr>\n<tr>\n<td>failRate</td>\n<td>Fail rate, calculated as (failed / recipientCount) x 100%</td>\n</tr>\n<tr>\n<td>read</td>\n<td>Number of audience read the message</td>\n</tr>\n<tr>\n<td>readRate</td>\n<td>Read rate, calculated as (read / success) x 100%</td>\n</tr>\n<tr>\n<td>clicked</td>\n<td>Number of audience clicked the message</td>\n</tr>\n<tr>\n<td>clickRate</td>\n<td>Click through rate, calculated as (clicked / success) x 100%</td>\n</tr>\n<tr>\n<td>revenue</td>\n<td>Revenue generated by this broadcast</td>\n</tr>\n<tr>\n<td>purchase</td>\n<td>Number of purchase generated by this broadcast</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>Tags added to the contact after broadcast</td>\n</tr>\n<tr>\n<td>responded</td>\n<td>Number of audience responed to the broadcast message</td>\n</tr>\n<tr>\n<td>respondRate</td>\n<td>Respond rate, calculated as (responded / success) x 100%</td>\n</tr>\n<tr>\n<td>unsubscribed</td>\n<td>Number of audience unsubscribed after receiving the broadcast message</td>\n</tr>\n<tr>\n<td>unsubscribeRate</td>\n<td>Unscription rate, calculated as (unsubscribed / success) x 100%</td>\n</tr>\n<tr>\n<td>cost</td>\n<td>Total message cost of this broadcast</td>\n</tr>\n<tr>\n<td>roas</td>\n<td>Return on Ad Spend, calculated as (revenue / cost)</td>\n</tr>\n<tr>\n<td>messageCount</td>\n<td>Total number of messages to be sent, calculated as (recipientCount * number of messages)</td>\n</tr>\n<tr>\n<td>messageSuccess</td>\n<td>Total number of messages successfully received by audience</td>\n</tr>\n<tr>\n<td>messageSuccessRate</td>\n<td>Message successful deliver rate, calculated as (messageSuccess / messageCount) x 100%</td>\n</tr>\n<tr>\n<td>respondedWithin12Hour</td>\n<td>Number of audience responded to the broadcast message within 12 hours</td>\n</tr>\n<tr>\n<td>responseRateWithin12Hour</td>\n<td>Respond rate within 12 hours, calculated as (respondedWithin12Hour / success) x 100%</td>\n</tr>\n<tr>\n<td>respondedWithin24Hour</td>\n<td>Number of audience responded to the broadcast message within 24 hours</td>\n</tr>\n<tr>\n<td>responseRateWithin24Hour</td>\n<td>Respond rate within 24 hours, calculated as (respondedWithin24Hour / success) x 100%</td>\n</tr>\n<tr>\n<td>respondedWithin48Hour</td>\n<td>Number of audience responded to the broadcast message within 48 hours</td>\n</tr>\n<tr>\n<td>responseRateWithin48Hour</td>\n<td>Respond rate within 48 hours, calculated as (respondedWithin48Hour / success) x 100%</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","broadcast",":id"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"694b7703-574b-4772-90f0-361778f73c14","description":{"content":"<p>Broadcast job ID</p>\n","type":"text/plain"},"type":"any","value":"9748a4b1-d106-4d67-bc1c-9fe6cb85a91b","key":"id"}]}},"response":[{"id":"2435eb31-f520-4818-b414-0ae2de905720","name":"Get broadcast job details","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://open-api.omnichat.ai/v1/broadcast/:id","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","broadcast",":id"],"variable":[{"key":"id","value":"9748a4b1-d106-4d67-bc1c-9fe6cb85a91b","description":"Broadcast job ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"content\": {\n    \"id\": \"9748a4b1-d106-4d67-bc1c-9fe6cb85a91b\",\n    \"platform\": \"line\",\n    \"channelId\": \"124321231\",\n    \"channelName\": \"LINE OA 1\",\n    \"subject\": \"Broadcast 1\",\n    \"recipientType\": 2,\n    \"type\": 1,\n    \"mode\": \"filter\",\n    \"sentAt\": \"2024-06-07T11:32:01\",\n    \"status\": 1,\n    \"recipientCount\": 1942,\n    \"success\": 1491,\n    \"successRate\": \"76.78%\",\n    \"sent\": 1662,\n    \"sentRate\": \"85.58%\",\n    \"failed\": 280,\n    \"failRate\": \"14.42%\",\n    \"read\": 861,\n    \"readRate\": \"57.75%\",\n    \"clicked\": 9,\n    \"clickRate\": \"0.60%\",\n    \"revenue\": \"HK$ 0.00\",\n    \"purchase\": 0,\n    \"tags\": [],\n    \"respondRate\": \"0.69%\",\n    \"responded\": 342,\n    \"unsubscribeRate\": \"0.02%\",\n    \"unsubscribed\": 11,\n    \"cost\": \"HK$ 34,707.40\",\n    \"roas\": \"0.00%\",\n    \"messageCount\": 57988,\n    \"messageSuccess\": 49582,\n    \"messageSuccessRate\": \"85.50%\",\n    \"responseRateWithin12Hour\": \"0.35%\",\n    \"responseRateWithin24Hour\": \"0.45%\",\n    \"responseRateWithin48Hour\": \"0.69%\",\n    \"respondedWithin12Hour\": 172,\n    \"respondedWithin24Hour\": 223,\n    \"respondedWithin48Hour\": 342\n  }\n}"}],"_postman_id":"65888a59-2beb-4f9d-ae4e-e567d92c3e6c"},{"name":"Get broadcast recipient list","id":"22901cfb-0713-40a8-bad1-a8fa15423ad3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://open-api.omnichat.ai/v1/broadcast/:id/recipients?page=1&pageSize=10","urlObject":{"protocol":"https","path":["v1","broadcast",":id","recipients"],"host":["open-api","omnichat","ai"],"query":[{"key":"page","value":"1"},{"key":"pageSize","value":"10"}],"variable":[{"id":"87cb2852-cd02-4f28-94b4-a2ec805ed0cd","description":{"content":"<p>Broadcast job ID</p>\n","type":"text/plain"},"type":"any","value":"9748a4b1-d106-4d67-bc1c-9fe6cb85a91b","key":"id"}]}},"response":[{"id":"1da71bde-c5a2-4cce-8648-cfefbbced37e","name":"Get broadcast job recipient list","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://open-api.omnichat.ai/v1/broadcast/:id/recipients?page=1&pageSize=10","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","broadcast",":id","recipients"],"query":[{"key":"page","value":"1"},{"key":"pageSize","value":"10"}],"variable":[{"key":"id","value":"9748a4b1-d106-4d67-bc1c-9fe6cb85a91b","description":"Broadcast job ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n\t\"content\": [\n\t\t{\n\t\t\t\"name\": \"Peter\",\n\t\t\t\"phone\": \"85291234567\",\n\t\t\t\"success\": true,\n\t\t\t\"sentAt\": \"2023-07-24T11:38:33\",\n\t\t\t\"clicked\": true,\n\t\t\t\"clickedAt\": \"\",\n\t\t\t\"read\": false,\n\t\t\t\"readAt\": null,\n\t\t\t\"responded\": false,\n\t\t\t\"respondedAt\": null,\n\t\t\t\"messageId\": \"wamid.HBgMODg2OTEyODY1OTcyFQIAERgSMkZBOUNDMkE4NEE2M0I3REQ0AA==\",\n\t\t\t\"error\": null\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Mary\",\n\t\t\t\"phone\": \"85290000000\",\n\t\t\t\"success\": false,\n\t\t\t\"sentAt\": null,\n\t\t\t\"clicked\": false,\n\t\t\t\"clickedAt\": null,\n\t\t\t\"read\": false,\n\t\t\t\"readAt\": null,\n\t\t\t\"responded\": false,\n\t\t\t\"respondedAt\": null,\n\t\t\t\"messageId\": null,\n\t\t\t\"error\": \"Undeliverable\"\n\t\t}\n\t],\n\t\"totalElements\": 20\n}"}],"_postman_id":"22901cfb-0713-40a8-bad1-a8fa15423ad3"}],"id":"49cf808d-750f-41e9-8e81-a0689314d7a9","_postman_id":"49cf808d-750f-41e9-8e81-a0689314d7a9","description":""},{"name":"Customers","item":[{"name":"Get customer detail by member ID","id":"8dcb38fc-7b49-450b-82cb-8da23fde0520","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"url":"https://open-api.omnichat.ai/v1/customers?memberId={{memberId}}","description":"<h4 id=\"description\">Description</h4>\n<p>This API allows you to get the customer details by Member ID</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>CS / Marketing / OMO Sales / Social CDP Could</p>\n</li>\n<li><p>CRM Open API Module</p>\n</li>\n</ul>\n<h4 id=\"parameters\">Parameters</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>Location</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>memberId</td>\n<td>Query</td>\n<td><strong>Required.</strong>  <br />  <br />Customer's Member ID</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the follow response body:</p>\n<p>Response object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>content</td>\n<td><code>Customer</code> Object</td>\n<td>Customer details</td>\n</tr>\n<tr>\n<td>totalElements</td>\n<td>Integer</td>\n<td>Total Number of records</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Customer</code> Object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>username</td>\n<td>String</td>\n<td>Customer username</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Customer's name</td>\n</tr>\n<tr>\n<td>profilePicture</td>\n<td>String</td>\n<td>Customer's profile picture url</td>\n</tr>\n<tr>\n<td>memberId</td>\n<td>String</td>\n<td>Member ID</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>String</td>\n<td>Phone</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String</td>\n<td>Email</td>\n</tr>\n<tr>\n<td>socialChannelSubscribed</td>\n<td>Boolean</td>\n<td>Flag to indicate if the customer linked any social messaging profile</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>Array of String</td>\n<td>Tags</td>\n</tr>\n<tr>\n<td>reachable</td>\n<td>Boolean</td>\n<td>Flag to indicate if the customer is reachable via marketing message</td>\n</tr>\n<tr>\n<td>customAttributes</td>\n<td>Array of <code>Custom Attribute</code> Object</td>\n<td>Custom attributes</td>\n</tr>\n<tr>\n<td>linkedUsers</td>\n<td>Array of <code>LInked User</code> Object</td>\n<td>Social messaging channel contacts linked with this customer profile</td>\n</tr>\n<tr>\n<td>pointBalance</td>\n<td>String</td>\n<td>Current Loyalty point balance</td>\n</tr>\n<tr>\n<td>accumulatedPoints</td>\n<td>String</td>\n<td>Accumulated loyalty point</td>\n</tr>\n<tr>\n<td>lastMessageReceivedAt</td>\n<td>Long</td>\n<td>Time of the last message received from customer(in unix timestamp)</td>\n</tr>\n<tr>\n<td>lastCsMessageSentAt</td>\n<td>Long</td>\n<td>Time of the last customer service message sent to the customer(in unix timestamp)</td>\n</tr>\n<tr>\n<td>lastMarketingMessageSentAt</td>\n<td>Long</td>\n<td>Time of the last marketing message sent to the customer (in unix timestamp)</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>Long</td>\n<td>Creation time (in unix timestamp)</td>\n</tr>\n<tr>\n<td>updatedAt</td>\n<td>Long</td>\n<td>Last modification time (in unix timestamp)</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Custom Attribute</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>key</td>\n<td>String</td>\n<td>Attribute key</td>\n</tr>\n<tr>\n<td>type</td>\n<td>Integer</td>\n<td>Attribute data type  <br />  <br />Possible values:  <br />- <code>1</code>: text  <br />- <code>2</code>: Number  <br />- <code>3</code>: Date  <br />- <code>4</code>: Date time  <br />- <code>5</code>: Boolean</td>\n</tr>\n<tr>\n<td>value</td>\n<td>String</td>\n<td>Attribute value</td>\n</tr>\n<tr>\n<td>displayName</td>\n<td>String</td>\n<td>Attribute display name</td>\n</tr>\n<tr>\n<td>status</td>\n<td>Boolean</td>\n<td>Flag to indicate if the custom attribute is active</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Bad request</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"MISSING_URL_PARAMETER\",\n    \"message\": \"Missing URL parameters\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","customers"],"host":["open-api","omnichat","ai"],"query":[{"description":{"content":"<p>Customer's member ID</p>\n","type":"text/plain"},"key":"memberId","value":"{{memberId}}"}],"variable":[]}},"response":[{"id":"0541adef-b564-4ea8-bbfb-3eda63d1fe36","name":"Get customer detail by member ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"API Token From Omnichat","type":"text"}],"url":{"raw":"https://open-api.omnichat.ai/v1/customers?memberId={{memberId}}","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","customers"],"query":[{"key":"memberId","value":"{{memberId}}","description":"Customer's member ID"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"content\": {\n        \"username\": \"6694e599b4dadc211e33f9da\",\n        \"name\": \"Peter Chan\",\n        \"profilePicture\": \"https://example.com/profile.png\",\n        \"memberId\": \"OC-TEST-0001\",\n        \"phone\": \"85222222222\",\n        \"email\": \"example@omnichat.ai\",\n        \"socialChannelSubscribed\": true,\n        \"tags\": [\n            \"VVIP\",\n            \"Sporty\"\n        ],\n        \"reachable\": true,\n        \"customAttributes\": [\n            {\n                \"key\": \"gender\",\n                \"type\": 1,\n                \"value\": \"male\",\n                \"displayName\": \"Gender\",\n                \"status\": true\n            },\n            {\n                \"key\": \"total_spending\",\n                \"type\": 2,\n                \"value\": 120321.11,\n                \"displayName\": \"Total Spending\",\n                \"status\": true\n            },\n            {\n                \"key\": \"date_01\",\n                \"type\": 3,\n                \"value\": \"2025-11-11\",\n                \"displayName\": \"Date field\",\n                \"status\": true\n            },\n            {\n                \"key\": \"date_time_01\",\n                \"type\": 4,\n                \"value\": \"2024-11-18 05:15:48\",\n                \"displayName\": \"Date time field\",\n                \"status\": true\n            },\n            {\n                \"key\": \"boolean_field\",\n                \"type\": 5,\n                \"value\": false,\n                \"displayName\": \"Boolean Field\",\n                \"status\": true\n            }\n        ],\n        \"linkedUsers\": [\n            {\n                \"platform\": \"line\",\n                \"channelId\": \"1111111111111\",\n                \"channelUserId\": \"U0000000000000000000000\",\n                \"channelUsername\": \"liu0000000000000000000000\",\n                \"channelName\": \"LINE channel name\",\n                \"roomId\": \"li1111111111111-u0000000000000000000000\",\n                \"subscribed\": true\n            },\n            {\n                \"platform\": \"whatsapp\",\n                \"channelId\": \"85211111111\",\n                \"channelUserId\": \"85222222222\",\n                \"channelUsername\": \"wh24e3c17b-fa49-403a-a3de-398831f39394-85222222222\",\n                \"channelName\": \"WhatsApp Business Name\",\n                \"roomId\": \"wh24e3c17b-fa49-403a-a3de-398831f39394-85222222222\",\n                \"subscribed\": true\n            }\n        ],\n        \"pointBalance\": \"1\",\n        \"accumulatedPoints\": \"1\",\n        \"lastMessageReceivedAt\": 1742196237835,\n        \"lastCsMessageSentAt\": 1729564624123,\n        \"lastMarketingMessageSentAt\": 1736236655000,\n        \"createdAt\": 1679037836356,\n        \"updatedAt\": 1743387002575\n    }\n}"}],"_postman_id":"8dcb38fc-7b49-450b-82cb-8da23fde0520"},{"name":"Upsert a Customer by member ID","id":"d95c7106-310a-402c-acde-dfd8681368c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Peter Chan\",\n\t\"email\": \"example@example.com\",\n\t\"phone\": \"85298765432\",\n    \"tagsToAdd\": [ \"VVIP\", \"Sporty\" ],\n    \"tagsToRemove\": [ \"VIP\" ],\n\t\"customAttributes\": [\n\t\t{ \"key\": \"MemberTier\", \"value\": \"GOLD\" },\n\t\t{ \"key\": \"Points\", \"value\": 2031 },\n\t\t{ \"key\": \"TotalSpending\", \"value\": 900.00 },\n\t\t{ \"key\": \"AcceptedMarketingPromotion\", \"value\": true },\n\t\t{ \"key\": \"LastPurchaseDate\", \"value\": \"2022-11-01\" },\n\t\t{ \"key\": \"RegisterDatetime\", \"value\": \"2022-11-01T14:16:00\" }\n\t]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/customers?memberId={{memberId}}","description":"<h4 id=\"description\">Description</h4>\n<p>This API allows you to create or update a customer by Member ID</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li>CS / Marketing / OMO Sales / Social CDP Could</li>\n<li>CRM Open API Module</li>\n</ul>\n<h4 id=\"parameters\">Parameters</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>Location</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>memberId</td>\n<td>Query</td>\n<td><strong>Required.</strong>  <br />  <br />Customer's Member ID</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"request-body\">Request Body</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Contact’s Name</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>Array of String</td>\n<td>Contact’s tags to be replaced  <br />  <br /><strong>[Noted: This field cannot be used together with</strong> <strong><code>tagsToAdd</code></strong> <strong>or</strong> <strong><code>tagsToRemove</code></strong> <strong>fields]</strong></td>\n</tr>\n<tr>\n<td>tagsToAdd</td>\n<td>Array of String</td>\n<td>Tags to be added to the contacts  <br />  <br /><strong>[Noted: This field cannot be used together with</strong> <strong><code>tags</code></strong> <strong>field]</strong></td>\n</tr>\n<tr>\n<td>tagsToRemove</td>\n<td>Array of String</td>\n<td>Tags to be removed to the contacts  <br />  <br /><strong>[Noted: This field cannot be used together with</strong> <strong><code>tags</code></strong> <strong>field]</strong>  <br /></td>\n</tr>\n<tr>\n<td>customAttributes</td>\n<td>Array of <code>Custom Attribute</code> Object</td>\n<td>Contact's custom attribute</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String</td>\n<td>Contact’s email</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>String</td>\n<td>Contact’s phone</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Custom Attribute</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>key</td>\n<td>String</td>\n<td>Attribute key  <br />  <br /><strong>Limitation:</strong>  <br />- Max. length: 100 characters</td>\n</tr>\n<tr>\n<td>value</td>\n<td>String / Number / Boolean (according to the data type of the custom attribute configured in Omnichat portal)</td>\n<td>Attribute value  <br />  <br /><strong>Format:</strong>  <br />- For <strong>number</strong> value, use number (integer / float) format (NOT string)  <br />- For <strong>boolean</strong> value, use true / false  <br />- For <strong>datetime</strong> value, use ISO8601 format datetime string, e.g. <code>2022-11-01T14:16:00</code>  <br />- For <strong>date</strong> value, use <code>YYYY-MM-DD</code> format string  <br />  <br />Remove custom attribute value:  <br />- You can pass in empty string for <strong>string/date/datetime</strong> type custom attribute to remove the value  <br />- For <strong>date/datetime</strong>, it will convert to 1970-01-01 in system  <br />- For <strong>boolean</strong>, you should pass in false  <br />- For <strong>number</strong>, you should pass in 0  <br />  <br /><strong>Limitation:</strong>  <br />- Max. length: 1000 characters</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 204 with empty response body</p>\n<p><strong>Bad request</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"MISSING_URL_PARAMETER\",\n    \"message\": \"Missing URL parameters\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","customers"],"host":["open-api","omnichat","ai"],"query":[{"description":{"content":"<p>Customer's member ID</p>\n","type":"text/plain"},"key":"memberId","value":"{{memberId}}"}],"variable":[]}},"response":[],"_postman_id":"d95c7106-310a-402c-acde-dfd8681368c2"},{"name":"Upsert a Customer by omniCustomerId","id":"099492bd-2bf0-47d1-b1b6-09c4b8f8e09d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Peter Chan\",\n\t\"email\": \"example@example.com\",\n\t\"phone\": \"85298765432\",\n    \"tagsToAdd\": [ \"VVIP\", \"Sporty\" ],\n    \"tagsToRemove\": [ \"VIP\" ],\n\t\"customAttributes\": [\n\t\t{ \"key\": \"MemberTier\", \"value\": \"GOLD\" },\n\t\t{ \"key\": \"Points\", \"value\": 2031 },\n\t\t{ \"key\": \"TotalSpending\", \"value\": 900.00 },\n\t\t{ \"key\": \"AcceptedMarketingPromotion\", \"value\": true },\n\t\t{ \"key\": \"LastPurchaseDate\", \"value\": \"2022-11-01\" },\n\t\t{ \"key\": \"RegisterDatetime\", \"value\": \"2022-11-01T14:16:00\" }\n\t]\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/customers?omniCustomerId={{omniCustomerId}}","description":"<h4 id=\"description\">Description</h4>\n<p>This API allows you to create or update a customer by OmniCustomer ID</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>CS / Marketing / OMO Sales / Social CDP Could</p>\n</li>\n<li><p>CRM Open API Module</p>\n</li>\n</ul>\n<h4 id=\"parameters\">Parameters</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>Location</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>omniCustomerId</td>\n<td>Query</td>\n<td><strong>Required.</strong>  <br />  <br />OmniCustomer ID</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"request-body\">Request Body</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Contact’s Name</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>Array of String</td>\n<td>Contact’s tags to be replaced  <br />  <br /><strong>[Noted: This field cannot be used together with</strong> <strong><code>tagsToAdd</code></strong> <strong>or</strong> <strong><code>tagsToRemove</code></strong> <strong>fields]</strong></td>\n</tr>\n<tr>\n<td>tagsToAdd</td>\n<td>Array of String</td>\n<td>Tags to be added to the contacts  <br />  <br /><strong>[Noted: This field cannot be used together with</strong> <strong><code>tags</code></strong> <strong>field]</strong></td>\n</tr>\n<tr>\n<td>tagsToRemove</td>\n<td>Array of String</td>\n<td>Tags to be removed to the contacts  <br />  <br /><strong>[Noted: This field cannot be used together with</strong> <strong><code>tags</code></strong> <strong>field]</strong></td>\n</tr>\n<tr>\n<td>customAttributes</td>\n<td>Array of <code>Custom Attribute</code> Object</td>\n<td>Contact's custom attribute</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String</td>\n<td>Contact’s email</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>String</td>\n<td>Contact’s phone</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>Custom Attribute</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>key</td>\n<td>String</td>\n<td>Attribute key  <br />  <br /><strong>Limitation:</strong>  <br />- Max. length: 100 characters</td>\n</tr>\n<tr>\n<td>value</td>\n<td>String / Number / Boolean (according to the data type of the custom attribute configured in Omnichat portal)</td>\n<td>Attribute value  <br />  <br /><strong>Format:</strong>  <br />- For <strong>number</strong> value, use number (integer / float) format (NOT string)  <br />- For <strong>boolean</strong> value, use true / false  <br />- For <strong>datetime</strong> value, use ISO8601 format datetime string, e.g. <code>2022-11-01T14:16:00</code>  <br />- For <strong>date</strong> value, use <code>YYYY-MM-DD</code> format string  <br />  <br />Remove custom attribute value:  <br />- You can pass in empty string for <strong>string/date/datetime</strong> type custom attribute to remove the value  <br />- For <strong>date/datetime</strong>, it will convert to 1970-01-01 in system  <br />- For <strong>boolean</strong>, you should pass in false  <br />- For <strong>number</strong>, you should pass in 0  <br />  <br /><strong>Limitation:</strong>  <br />- Max. length: 1000 characters</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 204 with empty response body</p>\n<p><strong>Bad request</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"MISSING_URL_PARAMETER\",\n    \"message\": \"Missing URL parameters\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","customers"],"host":["open-api","omnichat","ai"],"query":[{"key":"omniCustomerId","value":"{{omniCustomerId}}"}],"variable":[]}},"response":[],"_postman_id":"099492bd-2bf0-47d1-b1b6-09c4b8f8e09d"},{"name":"Delete Customer by Member ID","id":"4f47a8a2-919a-4b0a-9b06-01b52051aa6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"url":"https://open-api.omnichat.ai/v1/customers?memberId={{memberID}}","description":"<h4 id=\"description\">Description</h4>\n<p>This API allows you to delete a customer data (including member profile &amp; chat history) by Member ID</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li><p>CS / Marketing / OMO Sales / Social CDP Could</p>\n</li>\n<li><p>CRM Open API Module</p>\n</li>\n</ul>\n<h4 id=\"query-parameters\">Query Parameters</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>memberId</td>\n<td><strong>Required.</strong>  <br />  <br />Customer's member ID</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 204 with empty response body</p>\n<p><strong>Bad request / Internal Server Error</strong> - HTTP Status 4xx / 5xx</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errorCode\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","customers"],"host":["open-api","omnichat","ai"],"query":[{"description":{"content":"<p>Contact's member ID</p>\n","type":"text/plain"},"key":"memberId","value":"{{memberID}}"}],"variable":[]}},"response":[],"_postman_id":"4f47a8a2-919a-4b0a-9b06-01b52051aa6a"}],"id":"47809bae-e893-4dc0-baf2-66a86b496b54","_postman_id":"47809bae-e893-4dc0-baf2-66a86b496b54","description":""},{"name":"WhatsApp Message Webhook","item":[{"name":"Message Status","item":[{"name":"Status: Message Sent","id":"27acf038-a51f-4278-9140-76ea575d2eac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n\n                        // Contacts will be included for sent, delivered, and read status\n                        \"contacts\": [                                      // ADDED\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{USER-DISPLAY-NAME}}\",               // ADDED // Only included if user has enabled the username feature\n                                    \"username\": \"{{USERNAME}}\"                     // ADDED\n                                },\n                                \"wa_id\": \"{{USER-PHONE-NUMBER}}\",                // ADDED\n                                \"user_id\": \"{{BSUID}}\",                          // ADDED // Only included if parent BSUIDs enabled\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\"             // ADDED\n                            }\n                        ],\n\n                        \"statuses\": [\n                            {\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"conversation\": {\n                                    \"expiration_timestamp\": \"1692148560\",\n                                    \"origin\": {\n                                        \"type\": \"{{CONVERSATION-CATEGORY}}\"\n                                    },\n                                    \"id\": \"{{CONVERSATION-ID}}\"\n                                },\n                                \"pricing\": {\n                                    \"pricing_model\": \"CBP\",\n                                    \"category\": \"{{CONVERSATION-CATEGORY}}\",\n                                    \"billable\": true\n                                },\n                                \"status\": \"sent\",\n                                \"timestamp\": \"1692064412\",\n                                \"recipient_id\": \"{{RECIPIENT-PHONE-NUMBER}}\",         // CHANGED\n                                \"recipient_user_id\": \"{{BSUID}}\",                // ADDED // Only included if parent BSUIDs enabled\n                                \"parent_recipient_user_id\": \"{{PARENT-BSUID}}\"   // ADDED\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>The following notification is received when a business sends a message</p>\n","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"27acf038-a51f-4278-9140-76ea575d2eac"},{"name":"Status: Message Delivered","id":"fe5b772d-aae1-4fc5-bdf3-cd2aad8b58f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n\n                        // Contacts will be included for sent, delivered, and read status\n                        \"contacts\": [                                      // ADDED\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{USER-DISPLAY-NAME}}\",               // ADDED // Only included if user has enabled the username feature\n                                    \"username\": \"{{USERNAME}}\"                     // ADDED\n                                },\n                                \"wa_id\": \"{{USER-PHONE-NUMBER}}\",                // ADDED\n                                \"user_id\": \"{{BSUID}}\",                          // ADDED // Only included if parent BSUIDs enabled\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\"             // ADDED\n                            }\n                        ],\n\n                        \"statuses\": [\n                            {\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"conversation\": {\n                                    \"expiration_timestamp\": \"1692148560\",\n                                    \"origin\": {\n                                        \"type\": \"{{CONVERSATION-CATEGORY}}\"\n                                    },\n                                    \"id\": \"{{CONVERSATION-ID}}\"\n                                },\n                                \"pricing\": {\n                                    \"pricing_model\": \"CBP\",\n                                    \"category\": \"{{CONVERSATION-CATEGORY}}\",\n                                    \"billable\": true\n                                },\n                                \"status\": \"delivered\",\n                                \"timestamp\": \"1692064412\",\n                                \"recipient_id\": \"{{RECIPIENT-PHONE-NUMBER}}\",         // CHANGED\n                                \"recipient_user_id\": \"{{BSUID}}\",                // ADDED // Only included if parent BSUIDs enabled\n                                \"parent_recipient_user_id\": \"{{PARENT-BSUID}}\"   // ADDED\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>The following notification is received when a business’ message is delivered</p>\n","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fe5b772d-aae1-4fc5-bdf3-cd2aad8b58f4"},{"name":"Status: Message Read","id":"77a88973-4c33-476b-8812-f85ac3be5c20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n\n                        // Contacts will be included for sent, delivered, and read status\n                        \"contacts\": [                                      // ADDED\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{USER-DISPLAY-NAME}}\",               // ADDED // Only included if user has enabled the username feature\n                                    \"username\": \"{{USERNAME}}\"                     // ADDED\n                                },\n                                \"wa_id\": \"{{USER-PHONE-NUMBER}}\",                // ADDED\n                                \"user_id\": \"{{BSUID}}\",                          // ADDED // Only included if parent BSUIDs enabled\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\"             // ADDED\n                            }\n                        ],\n\n                        \"statuses\": [\n                            {\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"status\": \"read\",\n                                \"timestamp\": \"{{TIMESTAMP}}\",\n                                \"recipient_id\": \"{{RECIPIENT-PHONE-NUMBER}}\",         // CHANGED\n                                \"recipient_user_id\": \"{{BSUID}}\",                // ADDED // Only included if parent BSUIDs enabled\n                                \"parent_recipient_user_id\": \"{{PARENT-BSUID}}\"   // ADDED\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>The following notification is received when a business’ message is read</p>\n","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"77a88973-4c33-476b-8812-f85ac3be5c20"},{"name":"Status: Message Failed","id":"6bb43b13-b338-4500-8d88-03fc89b3fa05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n                        \"statuses\": [\n                            {\n                                \"id\": \"wamid.ID\",\n                                \"status\": \"failed\",\n                                \"timestamp\": \"1712721774\",\n                                \"recipient_id\": \"{{RECIPIENT-PHONE-NUMBER}}\",         // CHANGED\n                                \"recipient_user_id\": \"{{BSUID}}\",                // ADDED // Only included if parent BSUIDs enabled\n                                \"parent_recipient_user_id\": \"{{PARENT-BSUID}}\",   // ADDED\n                                \"errors\": [\n                                    {\n                                        \"code\": 131014,\n                                        \"title\": \"Request for url https://URL.jpg failed with error: 404 (Not Found)\"\n                                    }\n                                ]\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>The following notification shows a Webhook with failed status</p>\n","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6bb43b13-b338-4500-8d88-03fc89b3fa05"},{"name":"Status: Message Deleted","id":"3fd48738-6709-44c6-94a2-1bb933832f3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n                        \"contacts\": [\n                            {\n                                \"profile\": {\n                                    \"name\": \"NAME\"\n                                },\n                                \"wa_id\": \"{{RECIPIENT-PHONE-NUMBER}}\"\n                            }\n                        ],\n                        \"messages\": [\n                            {\n                                \"from\": \"{{RECIPIENT-PHONE-NUMBER}}\",\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"timestamp\": \"1712721774\",\n                                \"errors\": [\n                                    {\n                                        \"code\": 131051,\n                                        \"details\": \"Message type is not currently supported\",\n                                        \"title\": \"Unsupported message type\"\n                                    }\n                                ],\n                                \"type\": \"unsupported\"\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>Currently, the Cloud API does not support webhook status updates for deleted messages. If a user deletes a message, you will receive a webhook with an error code for an unsupported message type:</p>\n","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3fd48738-6709-44c6-94a2-1bb933832f3a"}],"id":"94b596b0-5abe-43d6-b9ee-10b6767787e5","_postman_id":"94b596b0-5abe-43d6-b9ee-10b6767787e5","description":""},{"name":"Message","item":[{"name":"Received Text Message","id":"c7f9895a-be4a-4462-80de-2b376cb5ffb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n                        \"contacts\": [\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{WHATSAPP-USER-PROFILE-NAME}}\",\n                                    \"username\": \"{{USERNAME}}\" // ADDED - Only included if user has enabled the username feature\n                                },\n                                \"wa_id\": \"{{WHATSAPP-USER-ID}}\", // CHANGED\n                                \"user_id\": \"{{BSUID}}\", // ADDED\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\" // ADDED - Only included if parent BSUIDs enabled\n                            }\n                        ],\n                        \"messages\": [\n                            {\n                                \"from\": \"{{WHATSAPP-USER-PHONE-NUMBER}}\", // CHANGED\n                                \"from_user_id\": \"{{BSUID}}\", // ADDED\n                                \"from_parent_user_id\": \"{{PARENT-BSUID}}\", // ADDED\n                                \"group_id\": \"{{GROUP-ID}}\", // ADDED - Only included if incoming message sent in a group\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"timestamp\": \"1603059201\",\n                                \"text\": {\n                                    \"body\": \"Hello this is an answer\"\n                                },\n                                \"type\": \"text\"\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>The following is an example of a text message you received from a customer</p>\n","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7f9895a-be4a-4462-80de-2b376cb5ffb9"},{"name":"Received Message with Reaction","id":"f3e94b76-e5a0-4188-9f70-60fbc771952d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n                        \"contacts\": [\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{WHATSAPP-USER-PROFILE-NAME}}\",\n                                    \"username\": \"{{USERNAME}}\" // ADDED - Only included if user has enabled the username feature\n                                },\n                                \"wa_id\": \"{{WHATSAPP-USER-ID}}\", // CHANGED\n                                \"user_id\": \"{{BSUID}}\", // ADDED\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\" // ADDED - Only included if parent BSUIDs enabled\n                            }\n                        ],\n                        \"messages\": [\n                            {\n                                \"from\": \"{{WHATSAPP-USER-PHONE-NUMBER}}\", // CHANGED\n                                \"from_user_id\": \"{{BSUID}}\", // ADDED\n                                \"from_parent_user_id\": \"{{PARENT-BSUID}}\", // ADDED\n                                \"group_id\": \"{{GROUP-ID}}\", // ADDED - Only included if incoming message sent in a group\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"timestamp\": \"1603059201\",\n                                \"type\": \"reaction\",\n                                \"reaction\": {\n                                    \"emoji\": \"<emoji>\",\n                                    \"message_id\": \"<WAMID>\" // CHANGED - fixed typo from messsage_id\n                                }\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>If the message being reacted to is more than 30 days old the reaction message webhook will not be delivered. Note that for reactions, the <strong><code>timestamp</code></strong> value indicates when the customer sent the reaction, not when the Webhook was generated.</p>\n","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3e94b76-e5a0-4188-9f70-60fbc771952d"},{"name":"Received Media Message with Image","id":"d1470a60-017f-4dae-890b-4d0970e72088","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n                        \"contacts\": [\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{WHATSAPP-USER-PROFILE-NAME}}\",\n                                    \"username\": \"{{USERNAME}}\" // ADDED - Only included if user has enabled the username feature\n                                },\n                                \"wa_id\": \"{{WHATSAPP-USER-ID}}\", // CHANGED\n                                \"user_id\": \"{{BSUID}}\", // ADDED\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\" // ADDED - Only included if parent BSUIDs enabled\n                            }\n                        ],\n                        \"messages\": [\n                            {\n                                \"from\": \"{{WHATSAPP-USER-PHONE-NUMBER}}\", // CHANGED\n                                \"from_user_id\": \"{{BSUID}}\", // ADDED\n                                \"from_parent_user_id\": \"{{PARENT-BSUID}}\", // ADDED\n                                \"group_id\": \"{{GROUP-ID}}\", // ADDED - Only included if incoming message sent in a group\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"timestamp\": \"1603059201\",\n                                \"type\": \"image\",\n                                \"image\": {\n                                    \"caption\": \"This is a caption\",\n                                    \"mime_type\": \"image/jpeg\",\n                                    \"sha256\": \"81d3bd8a8db4868c9520ed47186e8b7c5789e61ff79f7f834be6950b808a90d3\",\n                                    \"id\": \"2754859441498128\"\n                                }\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>When a message with media is received, the WhatsApp Business API downloads the media. A notification is sent to your Webhook once the media is downloaded.</p>\n<p>The Webhook notification contains information that identifies the media object and enables you to find and retrieve the object.</p>\n","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1470a60-017f-4dae-890b-4d0970e72088"},{"name":"Received Media Message with Sticker","id":"64591950-d753-4cc1-937b-94ed06a56cf2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n                        \"contacts\": [\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{WHATSAPP-USER-PROFILE-NAME}}\",\n                                    \"username\": \"{{USERNAME}}\" // ADDED - Only included if user has enabled the username feature\n                                },\n                                \"wa_id\": \"{{WHATSAPP-USER-ID}}\", // CHANGED\n                                \"user_id\": \"{{BSUID}}\", // ADDED\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\" // ADDED - Only included if parent BSUIDs enabled\n                            }\n                        ],\n                        \"messages\": [\n                            {\n                                \"from\": \"{{WHATSAPP-USER-PHONE-NUMBER}}\", // CHANGED\n                                \"from_user_id\": \"{{BSUID}}\", // ADDED\n                                \"from_parent_user_id\": \"{{PARENT-BSUID}}\", // ADDED\n                                \"group_id\": \"{{GROUP-ID}}\", // ADDED - Only included if incoming message sent in a group\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"timestamp\": \"1603059201\",\n                                \"type\": \"sticker\",\n                                \"sticker\": {\n                                    \"id\": \"<ID>\",\n                                    \"animated\": false,\n                                    \"mime_type\": \"image/webp\",\n                                    \"sha256\": \"<HASH>\"\n                                }\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>When you receive a media message containing a sticker, WhatsApp Business API downloads the sticker and a notification is sent to your Webhook once the sticker is downloaded.</p>\n<p>The Webhook notification contains information that identifies the media object and allows you to find and retrieve the object.</p>\n","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"64591950-d753-4cc1-937b-94ed06a56cf2"},{"name":"Received Contact Messages","id":"7262c14f-0dfa-446c-a9e2-c60f47d2125e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n                        \"contacts\": [\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{WHATSAPP-USER-PROFILE-NAME}}\",\n                                    \"username\": \"{{USERNAME}}\" // ADDED - Only included if user has enabled the username feature\n                                },\n                                \"wa_id\": \"{{WHATSAPP-USER-ID}}\", // CHANGED\n                                \"user_id\": \"{{BSUID}}\", // ADDED\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\" // ADDED - Only included if parent BSUIDs enabled\n                            }\n                        ],\n                        \"messages\": [\n                            {\n                                \"from\": \"{{WHATSAPP-USER-PHONE-NUMBER}}\", // CHANGED\n                                \"from_user_id\": \"{{BSUID}}\", // ADDED\n                                \"from_parent_user_id\": \"{{PARENT-BSUID}}\", // ADDED\n                                \"group_id\": \"{{GROUP-ID}}\", // ADDED - Only included if incoming message sent in a group\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"timestamp\": \"1603059201\",\n                                \"type\": \"contacts\",\n                                \"contacts\": [\n                                    {\n                                        \"addresses\": [\n                                            {\n                                                \"city\": \"<ADDRESS_CITY>\",\n                                                \"country\": \"<ADDRESS_COUNTRY>\",\n                                                \"country_code\": \"<ADDRESS_COUNTRY_CODE>\",\n                                                \"state\": \"<ADDRESS_STATE>\",\n                                                \"street\": \"<ADDRESS_STREET>\",\n                                                \"type\": \"<HOME|WORK>\",\n                                                \"zip\": \"<ADDRESS_ZIP>\"\n                                            }\n                                        ],\n                                        \"birthday\": \"<CONTACT_BIRTHDAY>\",\n                                        \"emails\": [\n                                            {\n                                                \"email\": \"<CONTACT_EMAIL>\",\n                                                \"type\": \"<WORK|HOME>\"\n                                            }\n                                        ],\n                                        \"name\": {\n                                            \"formatted_name\": \"<CONTACT_FORMATTED_NAME>\",\n                                            \"first_name\": \"<CONTACT_FIRST_NAME>\",\n                                            \"last_name\": \"<CONTACT_LAST_NAME>\",\n                                            \"middle_name\": \"<CONTACT_MIDDLE_NAME>\",\n                                            \"suffix\": \"<CONTACT_SUFFIX>\",\n                                            \"prefix\": \"<CONTACT_PREFIX>\"\n                                        },\n                                        \"org\": {\n                                            \"company\": \"<CONTACT_ORG_COMPANY>\",\n                                            \"department\": \"<CONTACT_ORG_DEPARTMENT>\",\n                                            \"title\": \"<CONTACT_ORG_TITLE>\"\n                                        },\n                                        \"phones\": [\n                                            {\n                                                \"phone\": \"<CONTACT_PHONE>\",\n                                                \"wa_id\": \"<CONTACT_WA_ID>\",\n                                                \"type\": \"<HOME|WORK>\"\n                                            }\n                                        ],\n                                        \"urls\": [\n                                            {\n                                                \"url\": \"<CONTACT_URL>\",\n                                                \"type\": \"<HOME|WORK>\"\n                                            }\n                                        ]\n                                    }\n                                ]\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>The following is an example of a contact message you received from a customer.</p>\n","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7262c14f-0dfa-446c-a9e2-c60f47d2125e"},{"name":"Received Static Location Messages","id":"cb77697c-20f3-493b-85ac-b29f1f47bf0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n                        \"contacts\": [\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{WHATSAPP-USER-PROFILE-NAME}}\",\n                                    \"username\": \"{{USERNAME}}\" // ADDED - Only included if user has enabled the username feature\n                                },\n                                \"wa_id\": \"{{WHATSAPP-USER-ID}}\", // CHANGED\n                                \"user_id\": \"{{BSUID}}\", // ADDED\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\" // ADDED - Only included if parent BSUIDs enabled\n                            }\n                        ],\n                        \"messages\": [\n                            {\n                                \"from\": \"{{WHATSAPP-USER-PHONE-NUMBER}}\", // CHANGED\n                                \"from_user_id\": \"{{BSUID}}\", // ADDED\n                                \"from_parent_user_id\": \"{{PARENT-BSUID}}\", // ADDED\n                                \"group_id\": \"{{GROUP-ID}}\", // ADDED - Only included if incoming message sent in a group\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"timestamp\": \"1603059201\",\n                                \"type\": \"location\",\n                                \"location\": {\n                                    \"latitude\": \"<LOCATION_LATITUDE>\",\n                                    \"longitude\": \"<LOCATION_LONGITUDE>\",\n                                    \"name\": \"<LOCATION_NAME>\",\n                                    \"address\": \"<LOCATION_ADDRESS>\"\n                                }\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>The following is an example of a static location message you received from a customer.</p>\n","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb77697c-20f3-493b-85ac-b29f1f47bf0a"},{"name":"Received Message Triggered by Click to WhatsApp Ads","id":"75bb96ef-8fda-4ee6-b5b7-aef344db904d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n                        \"contacts\": [\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{WHATSAPP-USER-PROFILE-NAME}}\",\n                                    \"username\": \"{{USERNAME}}\" // ADDED - Only included if user has enabled the username feature\n                                },\n                                \"wa_id\": \"{{WHATSAPP-USER-ID}}\", // CHANGED\n                                \"user_id\": \"{{BSUID}}\", // ADDED\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\" // ADDED - Only included if parent BSUIDs enabled\n                            }\n                        ],\n                        \"messages\": [\n                            {\n                                \"from\": \"{{WHATSAPP-USER-PHONE-NUMBER}}\", // CHANGED\n                                \"from_user_id\": \"{{BSUID}}\", // ADDED\n                                \"from_parent_user_id\": \"{{PARENT-BSUID}}\", // ADDED\n                                \"group_id\": \"{{GROUP-ID}}\", // ADDED - Only included if incoming message sent in a group\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"timestamp\": \"1603059201\",\n                                \"type\": \"text\",\n                                \"text\": {\n                                    \"body\": \"<BODY>\"\n                                },\n                                \"referral\": {\n                                    \"source_url\": \"<AD_OR_POST_FB_URL>\",\n                                    \"source_id\": \"<AD_ID>\",\n                                    \"source_type\": \"<AD_OR_POST>\",\n                                    \"headline\": \"<AD_TITLE>\",\n                                    \"body\": \"<AD_DESCRIPTION>\",\n                                    \"media_type\": \"<IMAGE_OR_VIDEO>\",\n                                    \"image_url\": \"<RAW_IMAGE_URL>\",\n                                    \"video_url\": \"<RAW_VIDEO_URL>\",\n                                    \"thumbnail_url\": \"<RAW_THUMBNAIL_URL>\",\n                                    \"ctwa_clid\": \"<CTWA_CLID>\" // ADDED\n                                }\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"75bb96ef-8fda-4ee6-b5b7-aef344db904d"},{"name":"Received Unknown Messages","id":"051589b5-39b8-4cb0-a56d-a416125dd995","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n                        \"contacts\": [\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{WHATSAPP-USER-PROFILE-NAME}}\",\n                                    \"username\": \"{{USERNAME}}\" // ADDED - Only included if user has enabled the username feature\n                                },\n                                \"wa_id\": \"{{WHATSAPP-USER-ID}}\", // CHANGED\n                                \"user_id\": \"{{BSUID}}\", // ADDED\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\" // ADDED - Only included if parent BSUIDs enabled\n                            }\n                        ],\n                        \"messages\": [\n                            {\n                                \"from\": \"{{WHATSAPP-USER-PHONE-NUMBER}}\", // CHANGED\n                                \"from_user_id\": \"{{BSUID}}\", // ADDED\n                                \"from_parent_user_id\": \"{{PARENT-BSUID}}\", // ADDED\n                                \"group_id\": \"{{GROUP-ID}}\", // ADDED - Only included if incoming message sent in a group\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"timestamp\": \"1603059201\",\n                                \"type\": \"unknown\",\n                                \"errors\": [\n                                    {\n                                        \"code\": 130501,\n                                        \"details\": \"Message type is not currently supported\",\n                                        \"title\": \"Unsupported message type\"\n                                    }\n                                ]\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>It’s possible to receive an unknown message callback notification. The following is an example of a message you received from a customer that is not supported.</p>\n","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"051589b5-39b8-4cb0-a56d-a416125dd995"},{"name":"Received Callback from a Quick Reply Button Click","id":"b87c5b55-f3cd-4f88-b7f8-877afe359575","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n                        \"contacts\": [\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{WHATSAPP-USER-PROFILE-NAME}}\",\n                                    \"username\": \"{{USERNAME}}\" // ADDED - Only included if user has enabled the username feature\n                                },\n                                \"wa_id\": \"{{WHATSAPP-USER-ID}}\", // CHANGED\n                                \"user_id\": \"{{BSUID}}\", // ADDED\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\" // ADDED - Only included if parent BSUIDs enabled\n                            }\n                        ],\n                        \"messages\": [\n                            {\n                                \"context\": {\n                                    \"from\": \"16505553333\",\n                                    \"id\": \"{{REFERER-MESSAGE-ID}}\"\n                                },\n                                \"from\": \"{{WHATSAPP-USER-PHONE-NUMBER}}\", // CHANGED\n                                \"from_user_id\": \"{{BSUID}}\", // ADDED\n                                \"from_parent_user_id\": \"{{PARENT-BSUID}}\", // ADDED\n                                \"group_id\": \"{{GROUP-ID}}\", // ADDED - Only included if incoming message sent in a group\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"timestamp\": \"1603059201\",\n                                \"type\": \"button\",\n                                \"button\": {\n                                    \"text\": \"No\",\n                                    \"payload\": \"No-Button-Payload\"\n                                }\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>When your customer clicks on a quick reply button in an interactive message template, a response is sent. Below is an example of the callback format.</p>\n","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b87c5b55-f3cd-4f88-b7f8-877afe359575"},{"name":"Received Product Enquiry Message","id":"6cf3152b-e73c-4ffe-8113-46a143d352b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n                        \"contacts\": [\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{WHATSAPP-USER-PROFILE-NAME}}\",\n                                    \"username\": \"{{USERNAME}}\" // ADDED - Only included if user has enabled the username feature\n                                },\n                                \"wa_id\": \"{{WHATSAPP-USER-ID}}\", // CHANGED\n                                \"user_id\": \"{{BSUID}}\", // ADDED\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\" // ADDED - Only included if parent BSUIDs enabled\n                            }\n                        ],\n                        \"messages\": [\n                            {\n                                \"from\": \"{{WHATSAPP-USER-PHONE-NUMBER}}\", // CHANGED\n                                \"from_user_id\": \"{{BSUID}}\", // ADDED\n                                \"from_parent_user_id\": \"{{PARENT-BSUID}}\", // ADDED\n                                \"group_id\": \"{{GROUP-ID}}\", // ADDED - Only included if incoming message sent in a group\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"timestamp\": \"1603059201\",\n                                \"type\": \"text\",\n                                \"text\": {\n                                    \"body\": \"MESSAGE_TEXT\"\n                                },\n                                \"context\": {\n                                    \"from\": \"PHONE_NUMBER\",\n                                    \"id\": \"{{REFERER-MESSAGE-ID}}\",\n                                    \"referred_product\": {\n                                        \"catalog_id\": \"CATALOG_ID\",\n                                        \"product_retailer_id\": \"PRODUCT_ID\"\n                                    }\n                                }\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","description":"<p>A Product Enquiry Message is received when a user is asking for more information about a specific product. These can be received as in two scenarios:</p>\n<ol><li><div>When a customer replies to Single or Multi-Product Messages</div></li><li><div>When a customer accesses a business’ catalog through another entry point, navigates to a <b>Product Details Page</b>, and clicks <b>Message Business about this Product</b>.</div></li></ol>","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cf3152b-e73c-4ffe-8113-46a143d352b1"},{"name":"Received Order Messages","id":"fb0c0e50-62b0-4497-a693-2e3ceb39a11e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"whatsapp_business_account\",\n    \"entry\": [\n        {\n            \"id\": \"{{WHATSAPP-BUSINESS-ACCOUNT-ID}}\",\n            \"changes\": [\n                {\n                    \"value\": {\n                        \"messaging_product\": \"whatsapp\",\n                        \"metadata\": {\n                            \"display_phone_number\": \"{{BUSINESS-PHONE-NUMBER}}\",\n                            \"phone_number_id\": \"{{BUSINESS-PHONE-NUMBER-ID}}\"\n                        },\n                        \"contacts\": [\n                            {\n                                \"profile\": {\n                                    \"name\": \"{{WHATSAPP-USER-PROFILE-NAME}}\",\n                                    \"username\": \"{{USERNAME}}\" // ADDED - Only included if user has enabled the username feature\n                                },\n                                \"wa_id\": \"{{WHATSAPP-USER-ID}}\", // CHANGED\n                                \"user_id\": \"{{BSUID}}\", // ADDED\n                                \"parent_user_id\": \"{{PARENT-BSUID}}\" // ADDED - Only included if parent BSUIDs enabled\n                            }\n                        ],\n                        \"messages\": [\n                            {\n                                \"from\": \"{{WHATSAPP-USER-PHONE-NUMBER}}\", // CHANGED\n                                \"from_user_id\": \"{{BSUID}}\", // ADDED\n                                \"from_parent_user_id\": \"{{PARENT-BSUID}}\", // ADDED\n                                \"group_id\": \"{{GROUP-ID}}\", // ADDED - Only included if incoming message sent in a group\n                                \"id\": \"{{MESSAGE-ID}}\",\n                                \"timestamp\": \"1603059201\",\n                                \"type\": \"order\",\n                                \"order\": {\n                                    \"catalog_id\": \"the-catalog_id\",\n                                    \"product_items\": [\n                                        {\n                                            \"product_retailer_id\": \"the-product-SKU-identifier\",\n                                            \"quantity\": \"number-of-item\",\n                                            \"item_price\": \"unitary-price-of-item\",\n                                            \"currency\": \"price-currency\"\n                                        }\n                                    ],\n                                    \"text\": \"text-message-sent-along-with-the-order\"\n                                },\n                                \"context\": {\n                                    \"from\": \"PHONE_NUMBER\",\n                                    \"id\": \"{{REFERER-MESSAGE-ID}}\"\n                                }\n                            }\n                        ]\n                    },\n                    \"field\": \"messages\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"https://your-webhook-url.com/whatsapp-webhook","urlObject":{"protocol":"https","path":["whatsapp-webhook"],"host":["your-webhook-url","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb0c0e50-62b0-4497-a693-2e3ceb39a11e"}],"id":"c76768ac-22c3-46c3-8285-ef3e4ad35aea","_postman_id":"c76768ac-22c3-46c3-8285-ef3e4ad35aea","description":""}],"id":"d653793d-d948-4f37-909e-eec192e8b467","_postman_id":"d653793d-d948-4f37-909e-eec192e8b467","description":""},{"name":"WhatsApp Headless API","item":[{"name":"Send Text Message","id":"0a7a6978-615d-44dd-be77-1277b6ac76e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"text\",\n    \"text\": {\n        \"preview_url\": false,\n        \"body\": \"<TEXT_MSG_CONTENT>\"\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"c9d5096c-6a58-4e15-905e-f9188cafea9e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"text\",\n    \"text\": {\n        \"preview_url\": false,\n        \"body\": \"<TEXT_MSG_CONTENT>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"0a7a6978-615d-44dd-be77-1277b6ac76e3"},{"name":"Send Text Message with Preview URL","id":"f974debd-3833-49aa-bf81-adc8277ce3c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"text\",\n    \"text\": {\n        \"preview_url\": true,\n        \"body\": \"Please visit https://youtu.be/hpltvTEiRrY to inspire your day!\"\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"7a714cd1-bc4a-4cf6-a3cf-62b20abb8277","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"dac4299d-0d38-4341-8e0f-a558d174e045","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"text\",\n    \"text\": {\n        \"preview_url\": true,\n        \"body\": \"Please visit https://youtu.be/hpltvTEiRrY to inspire your day!\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"f974debd-3833-49aa-bf81-adc8277ce3c5"},{"name":"Send Reply to Text Message","id":"b6859564-e650-4002-a72b-475bf50ec91a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"context\": {\n        \"message_id\": \"<MSGID_OF_PREV_MSG>\"\n    },\n    \"type\": \"text\",\n    \"text\": {\n        \"preview_url\": false,\n        \"body\": \"<TEXT_MSG_CONTENT>\"\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"c8841916-1014-4c21-a6ca-8e8137e6b03f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"context\": {\n        \"message_id\": \"<MSGID_OF_PREV_MSG>\"\n    },\n    \"type\": \"text\",\n    \"text\": {\n        \"preview_url\": false,\n        \"body\": \"<TEXT_MSG_CONTENT>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"b6859564-e650-4002-a72b-475bf50ec91a"},{"name":"Send Reply with Reaction Message","id":"32888361-a12d-4f5c-a059-0c756618260b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"reaction\",\n    \"reaction\": {\n        \"message_id\": \"<WAM_ID>\",\n        \"emoji\": \"<EMOJI>\"\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"f5f12395-e0dd-4884-9bad-53a2d1132f66","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"reaction\",\n    \"reaction\": {\n        \"message_id\": \"<WAM_ID>\",\n        \"emoji\": \"<EMOJI>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"32888361-a12d-4f5c-a059-0c756618260b"},{"name":"Send Image Message by URL","id":"7c1cf93d-745b-4058-8f7a-ddd128af293f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"image\",\n    \"image\": {\n        \"link\": \"https://example.com/image.png\"\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"a520d126-155f-4031-945f-d0b5a24bfeb8","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"image\",\n    \"image\": {\n        \"link\": \"https://example.com/image.png\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"7c1cf93d-745b-4058-8f7a-ddd128af293f"},{"name":"Send Audio Message by URL","id":"ccf96acf-25e5-4411-9536-7528fe6fdfdd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"audio\",\n    \"audio\": {\n        \"link\": \"https://example.com/audio.mp4\"\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"e5057217-a08e-4447-8d06-9590821d3d48","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"audio\",\n    \"audio\": {\n        \"link\": \"https://example.com/audio.mp4\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"ccf96acf-25e5-4411-9536-7528fe6fdfdd"},{"name":"Send Video Message by URL","id":"57003c97-3af6-4717-a7b2-4a4c474250dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"video\",\n    \"video\": {\n        \"link\": \"https://example.com/video.mp4\",\n        \"caption\": \"<VIDEO_CAPTION_TEXT>\"\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"87cbcdca-5d3c-4b62-b57b-e76d2a42eb3d","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"video\",\n    \"video\": {\n        \"link\": \"https://example.com/video.mp4\",\n        \"caption\": \"<VIDEO_CAPTION_TEXT>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"57003c97-3af6-4717-a7b2-4a4c474250dd"},{"name":"Send Document Message by URL","id":"15e652e6-77f9-4a1d-b8b2-78c0c1048fa1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"document\",\n    \"document\": {\n        \"link\": \"https://example.com/doc.pdf\",\n        \"caption\": \"<DOCUMENT_CAPTION_TEXT>\",\n        \"filename\": \"<DOCUMENT_FILENAME>\"\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"beb87074-50d0-42ed-aad1-78f6636d2ce3","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"document\",\n    \"document\": {\n        \"link\": \"https://example.com/doc.phf\",\n        \"caption\": \"<DOCUMENT_CAPTION_TEXT>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"15e652e6-77f9-4a1d-b8b2-78c0c1048fa1"},{"name":"Send Sticker Message by URL","id":"a3d27fda-901b-476b-8e8b-0ce66b91bdb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"sticker\",\n    \"sticker\": {\n        \"link\": \"https://example.com/sticker.webp\"\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"28f3db67-35c4-419b-ad59-ed43ede91e64","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"sticker\",\n    \"sticker\": {\n        \"link\": \"https://example.com/sticker.webp\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"a3d27fda-901b-476b-8e8b-0ce66b91bdb3"},{"name":"Send Location Message","id":"247bba35-e4cb-4f79-aafb-78aebfa9089f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"location\",\n    \"location\": {\n        \"latitude\": \"<LOCATION_LATITUDE>\",\n        \"longitude\": \"<LOCATION_LONGITUDE>\",\n        \"name\": \"<LOCATION_NAME>\",\n        \"address\": \"<LOCATION_ADDRESS>\"\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"54403663-1e0c-48c6-85f7-5d7f7c837f41","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"location\",\n    \"location\": {\n        \"latitude\": \"<LOCATION_LATITUDE>\",\n        \"longitude\": \"<LOCATION_LONGITUDE>\",\n        \"name\": \"<LOCATION_NAME>\",\n        \"address\": \"<LOCATION_ADDRESS>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"247bba35-e4cb-4f79-aafb-78aebfa9089f"},{"name":"Send List Message","id":"c553c824-6817-447d-a6e9-a1adc148c399","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"interactive\",\n    \"interactive\": {\n        \"type\": \"list\",\n        \"header\": {\n            \"type\": \"text\",\n            \"text\": \"<HEADER_TEXT>\"\n        },\n        \"body\": {\n            \"text\": \"<BODY_TEXT>\"\n        },\n        \"footer\": {\n            \"text\": \"<FOOTER_TEXT>\"\n        },\n        \"action\": {\n            \"button\": \"<BUTTON_TEXT>\",\n            \"sections\": [\n                {\n                    \"title\": \"<LIST_SECTION_1_TITLE>\",\n                    \"rows\": [\n                        {\n                            \"id\": \"<LIST_SECTION_1_ROW_1_ID>\",\n                            \"title\": \"<SECTION_1_ROW_1_TITLE>\",\n                            \"description\": \"<SECTION_1_ROW_1_DESC>\"\n                        },\n                        {\n                            \"id\": \"<LIST_SECTION_1_ROW_2_ID>\",\n                            \"title\": \"<SECTION_1_ROW_2_TITLE>\",\n                            \"description\": \"<SECTION_1_ROW_2_DESC>\"\n                        }\n                    ]\n                },\n                {\n                    \"title\": \"<LIST_SECTION_2_TITLE>\",\n                    \"rows\": [\n                        {\n                            \"id\": \"<LIST_SECTION_2_ROW_1_ID>\",\n                            \"title\": \"<SECTION_2_ROW_1_TITLE>\",\n                            \"description\": \"<SECTION_2_ROW_1_DESC>\"\n                        },\n                        {\n                            \"id\": \"<LIST_SECTION_2_ROW_2_ID>\",\n                            \"title\": \"<SECTION_2_ROW_2_TITLE>\",\n                            \"description\": \"<SECTION_2_ROW_2_DESC>\"\n                        }\n                    ]\n                }\n            ]\n        }\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"08f4b078-2e1c-444f-951f-805988dd7024","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"interactive\",\n    \"interactive\": {\n        \"type\": \"list\",\n        \"header\": {\n            \"type\": \"text\",\n            \"text\": \"<HEADER_TEXT>\"\n        },\n        \"body\": {\n            \"text\": \"<BODY_TEXT>\"\n        },\n        \"footer\": {\n            \"text\": \"<FOOTER_TEXT>\"\n        },\n        \"action\": {\n            \"button\": \"<BUTTON_TEXT>\",\n            \"sections\": [\n                {\n                    \"title\": \"<LIST_SECTION_1_TITLE>\",\n                    \"rows\": [\n                        {\n                            \"id\": \"<LIST_SECTION_1_ROW_1_ID>\",\n                            \"title\": \"<SECTION_1_ROW_1_TITLE>\",\n                            \"description\": \"<SECTION_1_ROW_1_DESC>\"\n                        },\n                        {\n                            \"id\": \"<LIST_SECTION_1_ROW_2_ID>\",\n                            \"title\": \"<SECTION_1_ROW_2_TITLE>\",\n                            \"description\": \"<SECTION_1_ROW_2_DESC>\"\n                        }\n                    ]\n                },\n                {\n                    \"title\": \"<LIST_SECTION_2_TITLE>\",\n                    \"rows\": [\n                        {\n                            \"id\": \"<LIST_SECTION_2_ROW_1_ID>\",\n                            \"title\": \"<SECTION_2_ROW_1_TITLE>\",\n                            \"description\": \"<SECTION_2_ROW_1_DESC>\"\n                        },\n                        {\n                            \"id\": \"<LIST_SECTION_2_ROW_2_ID>\",\n                            \"title\": \"<SECTION_2_ROW_2_TITLE>\",\n                            \"description\": \"<SECTION_2_ROW_2_DESC>\"\n                        }\n                    ]\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"c553c824-6817-447d-a6e9-a1adc148c399"},{"name":"Send Reply Button","id":"2b6ad008-3280-4055-8816-d2f14ab5fc57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"interactive\",\n    \"interactive\": {\n        \"type\": \"button\",\n        \"body\": {\n            \"text\": \"<BUTTON_TEXT>\"\n        },\n        \"action\": {\n            \"buttons\": [\n                {\n                    \"type\": \"reply\",\n                    \"reply\": {\n                        \"id\": \"<UNIQUE_BUTTON_ID_1>\",\n                        \"title\": \"<BUTTON_TITLE_1>\"\n                    }\n                },\n                {\n                    \"type\": \"reply\",\n                    \"reply\": {\n                        \"id\": \"<UNIQUE_BUTTON_ID_2>\",\n                        \"title\": \"<BUTTON_TITLE_2>\"\n                    }\n                }\n            ]\n        }\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"64e9d8aa-f67e-49f7-aeff-90453ceb58d5","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"interactive\",\n    \"interactive\": {\n        \"type\": \"button\",\n        \"body\": {\n            \"text\": \"<BUTTON_TEXT>\"\n        },\n        \"action\": {\n            \"buttons\": [\n                {\n                    \"type\": \"reply\",\n                    \"reply\": {\n                        \"id\": \"<UNIQUE_BUTTON_ID_1>\",\n                        \"title\": \"<BUTTON_TITLE_1>\"\n                    }\n                },\n                {\n                    \"type\": \"reply\",\n                    \"reply\": {\n                        \"id\": \"<UNIQUE_BUTTON_ID_2>\",\n                        \"title\": \"<BUTTON_TITLE_2>\"\n                    }\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"2b6ad008-3280-4055-8816-d2f14ab5fc57"},{"name":"Send Single Product Message","id":"f712ec1f-b35c-410a-aeba-55d7ed778759","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"interactive\",\n    \"interactive\": {\n        \"type\": \"product\",\n        \"body\": {\n            \"text\": \"<OPTIONAL_BODY_TEXT>\"\n        },\n        \"footer\": {\n            \"text\": \"<OPTIONAL_FOOTER_TEXT>\"\n        },\n        \"action\": {\n            \"catalog_id\": \"367025965434465\",\n            \"product_retailer_id\": \"<ID_TEST_ITEM_1>\"\n        }\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"70d0ab36-be43-452b-91d2-5614f449208a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"interactive\",\n    \"interactive\": {\n        \"type\": \"product\",\n        \"body\": {\n            \"text\": \"<OPTIONAL_BODY_TEXT>\"\n        },\n        \"footer\": {\n            \"text\": \"<OPTIONAL_FOOTER_TEXT>\"\n        },\n        \"action\": {\n            \"catalog_id\": \"367025965434465\",\n            \"product_retailer_id\": \"<ID_TEST_ITEM_1>\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"f712ec1f-b35c-410a-aeba-55d7ed778759"},{"name":"Send Multi-Product Message","id":"68a2dfa1-a136-436f-aa41-1b259da9d914","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"interactive\",\n    \"interactive\": {\n        \"type\": \"product_list\",\n        \"header\": {\n            \"type\": \"<HEADER_TYPE>\",\n            \"text\": \"<YOUR_TEXT_HEADER_CONTENT>\"\n        },\n        \"body\": {\n            \"text\": \"<YOUR_TEXT_BODY_CONTENT>\"\n        },\n        \"footer\": {\n            \"text\": \"<YOUR_TEXT_FOOTER_CONTENT>\"\n        },\n        \"action\": {\n            \"catalog_id\": \"146265584024623\",\n            \"sections\": [\n                {\n                    \"title\": \"<SECTION1_TITLE>\",\n                    \"product_items\": [\n                        {\n                            \"product_retailer_id\": \"<YOUR_PRODUCT1_SKU_IN_CATALOG>\"\n                        },\n                        {\n                            \"product_retailer_id\": \"<YOUR_SECOND_PRODUCT1_SKU_IN_CATALOG>\"\n                        }\n                    ]\n                },\n                {\n                    \"title\": \"<SECTION2_TITLE>\",\n                    \"product_items\": [\n                        {\n                            \"product_retailer_id\": \"<YOUR_PRODUCT2_SKU_IN_CATALOG>\"\n                        },\n                        {\n                            \"product_retailer_id\": \"<YOUR_SECOND_PRODUCT2_SKU_IN_CATALOG>\"\n                        }\n                    ]\n                }\n            ]\n        }\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"e8909c36-a48a-4728-aaf1-678809c7739c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"interactive\",\n    \"interactive\": {\n        \"type\": \"product_list\",\n        \"header\": {\n            \"type\": \"<HEADER_TYPE>\",\n            \"text\": \"<YOUR_TEXT_HEADER_CONTENT>\"\n        },\n        \"body\": {\n            \"text\": \"<YOUR_TEXT_BODY_CONTENT>\"\n        },\n        \"footer\": {\n            \"text\": \"<YOUR_TEXT_FOOTER_CONTENT>\"\n        },\n        \"action\": {\n            \"catalog_id\": \"146265584024623\",\n            \"sections\": [\n                {\n                    \"title\": \"<SECTION1_TITLE>\",\n                    \"product_items\": [\n                        {\n                            \"product_retailer_id\": \"<YOUR_PRODUCT1_SKU_IN_CATALOG>\"\n                        },\n                        {\n                            \"product_retailer_id\": \"<YOUR_SECOND_PRODUCT1_SKU_IN_CATALOG>\"\n                        }\n                    ]\n                },\n                {\n                    \"title\": \"<SECTION2_TITLE>\",\n                    \"product_items\": [\n                        {\n                            \"product_retailer_id\": \"<YOUR_PRODUCT2_SKU_IN_CATALOG>\"\n                        },\n                        {\n                            \"product_retailer_id\": \"<YOUR_SECOND_PRODUCT2_SKU_IN_CATALOG>\"\n                        }\n                    ]\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"68a2dfa1-a136-436f-aa41-1b259da9d914"},{"name":"Send Catalog Message","id":"463bd5fb-076f-43f4-a05b-0fcf89d39acd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"interactive\",\n    \"interactive\": {\n        \"type\": \"catalog_message\",\n        \"body\": {\n            \"text\": \"Hello! Thanks for your interest. Ordering is easy. Just visit our catalog and add items to purchase.\"\n        },\n        \"action\": {\n            \"name\": \"catalog_message\",\n            \"parameters\": {\n                \"thumbnail_product_retailer_id\": \"2lc20305pt\"\n            }\n        },\n        \"footer\": {\n            \"text\": \"Best grocery deals on WhatsApp!\"\n        }\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"4ede83f0-c617-4bb0-90c0-649c08709d2b","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"interactive\",\n    \"interactive\": {\n        \"type\": \"catalog_message\",\n        \"body\": {\n            \"text\": \"Hello! Thanks for your interest. Ordering is easy. Just visit our catalog and add items to purchase.\"\n        },\n        \"action\": {\n            \"name\": \"catalog_message\",\n            \"parameters\": {\n                \"thumbnail_product_retailer_id\": \"2lc20305pt\"\n            }\n        },\n        \"footer\": {\n            \"text\": \"Best grocery deals on WhatsApp!\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"463bd5fb-076f-43f4-a05b-0fcf89d39acd"},{"name":"Send Message Template Text","id":"92a90699-2300-4c2e-baa7-b8ac2c743c68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"template\",\n    \"template\": {\n        \"name\": \"template-name\",\n        \"language\": {\n            \"code\": \"language-and-locale-code\"\n        },\n        \"components\": [{\n            \"type\": \"body\",\n            \"parameters\": [\n                {\n                    \"type\": \"<param type>\",\n                    \"text\": \"<param value>\"\n                }\n            ]\n        }]\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"eece1bd3-d67b-4c06-b39e-97e0626441de","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"template\",\n    \"template\": {\n        \"name\": \"template-name\",\n        \"language\": {\n            \"code\": \"language-and-locale-code\"\n        },\n        \"components\": [{\n            \"type\": \"body\",\n            \"parameters\": [\n                {\n                    \"type\": \"<param type>\",\n                    \"text\": \"<param value>\"\n                }\n            ]\n        }]\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"92a90699-2300-4c2e-baa7-b8ac2c743c68"},{"name":"Send Message Template Media","id":"f19338ca-b404-498c-bcfe-af662672940e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"template\",\n    \"template\": {\n        \"name\": \"template-name\",\n        \"language\": {\n            \"code\": \"language-and-locale-code\"\n        },\n        \"components\": [\n            {\n                \"type\": \"header\",\n                \"parameters\": [\n                    {\n                        \"type\": \"image\",\n                        \"image\": {\n                            \"link\": \"https://example.com/image.png\"\n                        }\n                    }\n                ]\n            },\n            {\n                \"type\": \"body\",\n                \"parameters\": [\n                    {\n                        \"type\": \"<param type>\",\n                        \"text\": \"<param value>\"\n                    }\n                ]\n            }\n        ]\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"b90eed30-24bb-43df-ad96-2e1979444ce8","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"template\",\n    \"template\": {\n        \"name\": \"template-name\",\n        \"language\": {\n            \"code\": \"language-and-locale-code\"\n        },\n        \"components\": [\n            {\n                \"type\": \"header\",\n                \"parameters\": [\n                    {\n                        \"type\": \"image\",\n                        \"image\": {\n                            \"link\": \"https://example.com/image.png\"\n                        }\n                    }\n                ]\n            },\n            {\n                \"type\": \"body\",\n                \"parameters\": [\n                    {\n                        \"type\": \"<param type>\",\n                        \"text\": \"<param value>\"\n                    }\n                ]\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"f19338ca-b404-498c-bcfe-af662672940e"},{"name":"Send Message Template Interactive","id":"33730ad4-5492-46e5-8e54-ba84f511c73d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"template\",\n    \"template\": {\n        \"name\": \"template-name\",\n        \"language\": {\n            \"code\": \"language-and-locale-code\"\n        },\n        \"components\": [\n            {\n                \"type\": \"body\",\n                \"parameters\": [\n                    {\n                        \"type\": \"<param type>\",\n                        \"text\": \"<param value>\"\n                    }\n                ]\n            },\n            {\n                \"type\": \"button\",\n                \"sub_type\": \"quick_reply\",\n                \"index\": \"0\",\n                \"parameters\": [\n                    {\n                        \"type\": \"payload\",\n                        \"payload\": \"aGlzIHRoaXMgaXMgY29v\"\n                    }\n                ]\n            },\n            {\n                \"type\": \"button\",\n                \"sub_type\": \"quick_reply\",\n                \"index\": \"1\",\n                \"parameters\": [\n                    {\n                        \"type\": \"payload\",\n                        \"payload\": \"9rwnB8RbYmPF5t2Mn09x4h\"\n                    }\n                ]\n            }\n        ]\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"0832e7d5-944b-4e1e-b69f-d8abbfec2508","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"template\",\n    \"template\": {\n        \"name\": \"template-name\",\n        \"language\": {\n            \"code\": \"language-and-locale-code\"\n        },\n        \"components\": [\n            {\n                \"type\": \"header\",\n                \"parameters\": [\n                    {\n                        \"type\": \"image\",\n                        \"image\": {\n                            \"link\": \"https://example.com/image.png\"\n                        }\n                    }\n                ]\n            },\n            {\n                \"type\": \"body\",\n                \"parameters\": [\n                    {\n                        \"type\": \"<param type>\",\n                        \"text\": \"<param value>\"\n                    }\n                ]\n            },\n            {\n                \"type\": \"button\",\n                \"sub_type\": \"quick_reply\",\n                \"index\": \"0\",\n                \"parameters\": [\n                    {\n                        \"type\": \"payload\",\n                        \"payload\": \"aGlzIHRoaXMgaXMgY29v\"\n                    }\n                ]\n            },\n            {\n                \"type\": \"button\",\n                \"sub_type\": \"quick_reply\",\n                \"index\": \"1\",\n                \"parameters\": [\n                    {\n                        \"type\": \"payload\",\n                        \"payload\": \"9rwnB8RbYmPF5t2Mn09x4h\"\n                    }\n                ]\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"33730ad4-5492-46e5-8e54-ba84f511c73d"},{"name":"Send Catalog Template Message","id":"914d6b42-3608-4f46-b510-2ffadbc6209c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"template\",\n    \"template\": {\n        \"name\": \"template-name\",\n        \"language\": {\n            \"code\": \"language-and-locale-code\"\n        },\n        \"components\": [\n            {\n                \"type\": \"body\",\n                \"parameters\": [\n                    {\n                        \"type\": \"<param type>\",\n                        \"text\": \"<param value>\"\n                    }\n                ]\n            },\n            {\n                \"type\": \"button\",\n                \"sub_type\": \"CATALOG\",\n                \"index\": 0,\n                \"parameters\": [\n                    {\n                        \"type\": \"action\",\n                        \"action\": {\n                            \"thumbnail_product_retailer_id\": \"2lc20305pt\"\n                        }\n                    }\n                ]\n            }\n        ]\n    }\n}"},"url":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","urlObject":{"protocol":"https","path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"host":["open-api","omnichat","ai"],"query":[],"variable":[{"id":"68677c01-720b-44bd-8b2c-12d677818c59","type":"any","value":"","key":"business-phone-number"}]}},"response":[{"id":"cfeb61b0-9ac6-41dd-92c7-65585718888f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{API-TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"{{Recipient-Phone-Number}}\",\n    \"type\": \"template\",\n    \"template\": {\n        \"name\": \"template-name\",\n        \"language\": {\n            \"code\": \"language-and-locale-code\"\n        },\n        \"components\": [\n            {\n                \"type\": \"body\",\n                \"parameters\": [\n                    {\n                        \"type\": \"<param type>\",\n                        \"text\": \"<param value>\"\n                    }\n                ]\n            },\n            {\n                \"type\": \"button\",\n                \"sub_type\": \"CATALOG\",\n                \"index\": 0,\n                \"parameters\": [\n                    {\n                        \"type\": \"action\",\n                        \"action\": {\n                            \"thumbnail_product_retailer_id\": \"2lc20305pt\"\n                        }\n                    }\n                ]\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://open-api.omnichat.ai/v1/whatsapp/headless-api/:business-phone-number/messages","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","whatsapp","headless-api",":business-phone-number","messages"],"variable":[{"key":"business-phone-number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"messaging_product\": \"whatsapp\",\n    \"contacts\": [\n        {\n            \"input\": \"{{Recipient-Phone-Number}}\",\n            \"wa_id\": \"{{Recipient-Phone-Number}} \"\n        }\n    ],\n    \"messages\": [\n        {\n            \"id\": \"{{MESSAGE-ID}}\"\n        }\n    ]\n}"}],"_postman_id":"914d6b42-3608-4f46-b510-2ffadbc6209c"}],"id":"db4a7444-926a-4090-b6f1-3245a31c0444","_postman_id":"db4a7444-926a-4090-b6f1-3245a31c0444","description":""},{"name":"System users","item":[{"name":"Get system users list","id":"d5a45c38-5650-4999-b2c6-19603a7bac5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"url":"https://open-api.omnichat.ai/v1/system-users","urlObject":{"protocol":"https","path":["v1","system-users"],"host":["open-api","omnichat","ai"],"query":[],"variable":[]}},"response":[{"id":"473e9a65-0bb3-4fbf-86be-bb562a87ad99","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"API Token From Omnichat","type":"text"}],"url":"https://open-api.omnichat.ai/v1/system-users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"content\": [\n        {\n            \"team\": \"Omnichat\",\n            \"username\": \"1d9e3925-f08c-4236-92ef-b4c5394c9a14\",\n            \"email\": \"john.doe@omnichat.ai\",\n            \"phone\": \"+85212345678\",\n            \"profilePicture\": \"https://media-cdn.omnichat.ai/upload/photos/user-upload-photo/1d9e3925-f08c-4236-92ef-b4c5394c9a14.png\",\n            \"available\": true,\n            \"status\": 1,\n            \"role\": 7,\n            \"name\": \"John Doe\",\n            \"employeeCode\": \"E0001\",\n            \"shops\": [\n                {\n                    \"id\": \"60fd8409892243037e17f1d2\",\n                    \"code\": \"A01\",\n                    \"name\": \"Shop A01\",\n                    \"categories\": []\n                }\n            ]\n        },\n        {\n            \"team\": \"Omnichat\",\n            \"username\": \"e5255710-1701-4876-ac22-1d0da7f9291c\",\n            \"email\": \"peter.pan@omnichat.ai\",\n            \"phone\": null,\n            \"profilePicture\": null,\n            \"available\": true,\n            \"status\": 1,\n            \"role\": 7,\n            \"name\": \"Peter Pan\",\n            \"employeeCode\": null,\n            \"shops\": null\n        }\n    ]\n}"}],"_postman_id":"d5a45c38-5650-4999-b2c6-19603a7bac5f"}],"id":"976efcb7-9858-45a6-8bac-0942f697d2f2","_postman_id":"976efcb7-9858-45a6-8bac-0942f697d2f2","description":""},{"name":"Tag","item":[{"name":"Get tagging log records","id":"08ecab47-a8da-4bbc-a384-15522d6c9a64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"<p>API Token From Omnichat</p>\n","type":"text"}],"url":"https://open-api.omnichat.ai/v1/tagging-logs/records?taggedAfter=1742087630000&taggedBefore=1742202830000&page=1&pageSize=20","description":"<h4 id=\"description\">Description</h4>\n<p>Get tagging log records by specific date range</p>\n<h4 id=\"subscription-required\">Subscription Required</h4>\n<ul>\n<li>CRM Open API Module</li>\n</ul>\n<h4 id=\"query-parameters\">Query Parameters</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>taggedAfter</td>\n<td><strong>Required</strong>  <br />  <br />The start of the specific date range in unix timestamp (milliseconds) (inclusive)</td>\n</tr>\n<tr>\n<td>taggedBefore</td>\n<td><strong>Required</strong>  <br />  <br />The end of the specific date range in unix timestamp (milliseconds) (exclusive)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the follow response body:</p>\n<p>Response object</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>content</td>\n<td>Array of <code>TaggingLog</code> Object</td>\n<td>tagging log records in the specific period</td>\n</tr>\n<tr>\n<td>totalElements</td>\n<td>Integer</td>\n<td>Total Number of updated contacts</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>TaggingLog</code> Objects</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>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>time</td>\n<td>String</td>\n<td>Time when the tagging happened</td>\n</tr>\n<tr>\n<td>platform</td>\n<td>String</td>\n<td>Messaging Platform.  <br />  <br />Supported values:  <br />- line  <br />- facebook  <br />- whatsapp  <br />- instagram  <br />- wechat  <br />- webchat</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>String</td>\n<td>Specific Messaging Platform Channel ID.  <br />  <br />- For LINE → LINE Channel ID  <br />- For Facebook → Facebook Page ID  <br />- For WhatsApp → WhatsApp Business Phone Number  <br />- For Instagram → Instagram Business Account ID  <br />- For WeChat → WeChat ID  <br />- For webchat → Fixed value webchat</td>\n</tr>\n<tr>\n<td>userId</td>\n<td>String</td>\n<td>Contact’s User ID  <br />  <br />- For LINE → LINE User ID  <br />- For Facebook → Facebook PSID  <br />- For WhatsApp → WhatsApp Phone Number  <br />- For Instagram → Instagram User ID  <br />- For WeChat → WeChat User ID  <br />- For Web Chat → Omnichat User ID</td>\n</tr>\n<tr>\n<td>tag</td>\n<td>String</td>\n<td>Tag added to contact</td>\n</tr>\n<tr>\n<td>source</td>\n<td>String</td>\n<td>Source of the tagging  <br />  <br />Possible values:  <br />- bot  <br />- broadcast  <br />- manual  <br />- import  <br />- keyword_auto_reply  <br />- open_api  <br />- game  <br />- abandoned_cart  <br />- remarketing  <br />- product_referral  <br />- journey  <br />- line_rich_menu  <br />- third_party_system  <br />- coupon  <br />- cross_channel_connector  <br />- phone_binding  <br />- survey_cake  <br />- social_channel_mapping  <br />- chatbot_button  <br />- add_cart</td>\n</tr>\n<tr>\n<td>messageId</td>\n<td>String</td>\n<td>Related message ID when the tagging happened</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v1","tagging-logs","records"],"host":["open-api","omnichat","ai"],"query":[{"description":{"content":"<p>[Required] The start of the specific date range in unix timestamp (milliseconds) (inclusive)</p>\n","type":"text/plain"},"key":"taggedAfter","value":"1742087630000"},{"description":{"content":"<p>[Required] The end of the specific date range in unix timestamp (milliseconds) (exclusive)</p>\n","type":"text/plain"},"key":"taggedBefore","value":"1742202830000"},{"description":{"content":"<p>Page</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Page size</p>\n","type":"text/plain"},"key":"pageSize","value":"20"}],"variable":[]}},"response":[{"id":"2e6818b1-66ed-423e-abe1-947e68a41530","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API-TOKEN}}","description":"API Token From Omnichat","type":"text"}],"url":{"raw":"https://open-api.omnichat.ai/v1/tagging-logs/records?taggedAfter=1742087630000&taggedBefore=1742202830000","protocol":"https","host":["open-api","omnichat","ai"],"path":["v1","tagging-logs","records"],"query":[{"key":"taggedAfter","value":"1742087630000"},{"key":"taggedBefore","value":"1742202830000"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"content\": [\n    {\n      \"time\": \"2023-01-03T12:32:12\",\n      \"platform\": \"whatsapp\",\n      \"channelId\": \"85211111111\",\n      \"userId\": \"85222222222\",\n      \"tag\": \"subscribed\",\n      \"source\": \"Bot\",\n      \"messageId\": \"wamid.123213123123\"\n    }\n  ],\n  \"totalElements\": 1\n}"}],"_postman_id":"08ecab47-a8da-4bbc-a384-15522d6c9a64"}],"id":"9ea6a1aa-9cbe-40ba-8c47-dd5e676d17ed","_postman_id":"9ea6a1aa-9cbe-40ba-8c47-dd5e676d17ed","description":""},{"name":"Meta Business","item":[{"name":"Upload Public Key","id":"5432956a-eba6-4a49-bad8-a0a2caec3250","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{API-TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"phone\":\"{{YOUR_WHATSAPP_NUMBER}}\",    \n    \"businessPublicKey\":\"{{YOUR_PUBLIC_KEY}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://open-api.omnichat.ai/v1/whatsapp-business/public-key","urlObject":{"protocol":"https","path":["v1","whatsapp-business","public-key"],"host":["open-api","omnichat","ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"5432956a-eba6-4a49-bad8-a0a2caec3250"}],"id":"a6a8f79a-1df8-4f88-8a92-30b1880dadb2","_postman_id":"a6a8f79a-1df8-4f88-8a92-30b1880dadb2","description":""},{"name":"Channels","item":[{"name":"Get Channels","id":"146096d9-b276-4d6d-8b45-5013864226a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{API-TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://open-api.omnichat.ai/v1/channels","description":"<h4 id=\"description\">Description</h4>\n<p>Get Channel Info</p>\n<h4 id=\"responses\">Responses</h4>\n<p><strong>Success</strong> - HTTP Status 200 with the follow response body:</p>\n<p>Response object</p>\n<p>Return array of <strong>Channel</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Nullable</th>\n<th>Description</th>\n<th>Remark</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>platform</td>\n<td>String</td>\n<td>N</td>\n<td>Channel platform</td>\n<td>Available platform:web: Webchat  <br />line: LINE</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>String</td>\n<td>N</td>\n<td>Channel ID / webchat (Webchat)</td>\n<td>On the webchat platform, this field will be set to \"webchat\"</td>\n</tr>\n<tr>\n<td>channelName</td>\n<td>String</td>\n<td>N</td>\n<td>Channel name / Team Name (Webchat)</td>\n<td>On the webchat platform, this field will be set to team name</td>\n</tr>\n</tbody>\n</table>\n</div><p>Response Example</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"platform\": \"webchat\",\n        \"channelId\": \"webchat\",\n        \"channelName\": \"Team name\"\n    },\n    { \n        \"platform\": \"line\",\n        \"channelId\": \"1657703186\",\n        \"channelName\": \"LINE Channel Name\"\n    }\n]\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["v1","channels"],"host":["open-api","omnichat","ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"146096d9-b276-4d6d-8b45-5013864226a9"}],"id":"2c5d2150-d277-4513-b18b-25fa1e40b92c","description":"<p>Get Channel Info</p>\n","_postman_id":"2c5d2150-d277-4513-b18b-25fa1e40b92c"}],"variable":[{"key":"channelId","value":"1655713616"},{"key":"platform","value":"line"},{"key":"userId","value":"Ufc16ca0dac59929c665558fd0c040d1c"}]}