{"info":{"_postman_id":"273750a5-cd30-431d-8004-4bd32d266f17","name":"Messages API","description":"<html><head></head><body><p>Provided by <a href=\"https://www.lynn.cx\">lynn.cx</a></p>\n<p>The Lynn Messages API provides access to most of the data processed by Lynn. You can access the API from the <a href=\"https://premium-testing.lynn.cx/\">Lynn testing environment</a> or <a href=\"https://premium-production.lynn.cx/\">Lynn production environment</a>.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"16934353","collectionId":"273750a5-cd30-431d-8004-4bd32d266f17","publishedId":"UVypzxcw","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-03-30T19:12:40.000Z"},"item":[{"name":"Parameter Information","item":[],"id":"2afc7bd6-cc91-4455-80e8-05f286b94a8a","description":"<p>The following query parameters can be used with all methods and all resources of the <code>Messages API</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>endpoint</td>\n<td><a href=\"https://premium-testing.lynn.cx/\">Lynn testing environment</a></td>\n</tr>\n<tr>\n<td>tenant</td>\n<td>Numeric identifier of the tenant. Obtained in the Lynn GUI</td>\n</tr>\n<tr>\n<td>accessToken</td>\n<td>Text string that is part of the authentication parameters, is generated at the time of creating the tenant security credentials and you can no longer Modify. Example: 90234137e9752f1. Note: It is similar to a user</td>\n</tr>\n<tr>\n<td>accessSecret</td>\n<td>Text string that is part of the authentication parameters, is generated at the time of creating the tenant security credentials and you can no longer Modify. Example: 66d83a1b-4da4-42f5-9883-44b8f32c36d5</td>\n</tr>\n<tr>\n<td>capacity</td>\n<td>Tipo de capacidad del canal. Las capacidades validas son UNKNOWN = 0, PhoneCall = 1,DeviceVoice = 2, WebViewer = 3, OfficialChannel = 4, UnOfficialChannel = 5</td>\n</tr>\n<tr>\n<td>clientID</td>\n<td>Customer identifier, it is a uniqueidentifier that must be keep in the whole conversation</td>\n</tr>\n<tr>\n<td>myToken</td>\n<td>Value unit created by the createtoken method so that users can interact with the other methods.</td>\n</tr>\n<tr>\n<td>mySessionID</td>\n<td>Identifier of the session to which you want to send the message</td>\n</tr>\n<tr>\n<td>clientIdentifier</td>\n<td>Customer identifier in the current interaction, which is generated when you start communication from a prior communication (executive chat, IVR, Bot, among others).</td>\n</tr>\n<tr>\n<td>proposalId</td>\n<td>identifier of the response being sent, handles a GUID format, changes with each new request. This value is necessary to start the deflection process.</td>\n</tr>\n<tr>\n<td>method</td>\n<td>Numeric identifier of the deflection medium to be used requested. Possible values ​​are: WhatsApp = 1, FacebookMessenger = 2, Teams = 3, Skype = 4, Sms = 5, Slack = 6, DirectLyne = 7, Emulator = 19, Chat = 20, UNKNOWN = 21</td>\n</tr>\n<tr>\n<td>criteria</td>\n<td>Text string with the criteria of the record to be searched, has a common format. Example: rut_usuario</td>\n</tr>\n<tr>\n<td>value</td>\n<td>Value corresponding to the criterion established in the above parameter, has a text string format open. Example: 231231, abcds 232dsdda, 0000-0000-0000-0000</td>\n</tr>\n<tr>\n<td>inactivityTimeout</td>\n<td>Downtime in seconds to compare and just get the last interactions which your last request is less than the value of this parameter, this idle time does not applies while in the queue of the strategy</td>\n</tr>\n<tr>\n<td>callIId</td>\n<td>Identifier of the associated voice call, in the event that apply, otherwise it can be sent with the value \"unknown\"</td>\n</tr>\n<tr>\n<td>verbose</td>\n<td>Level of logs to generate [1… 5] (DEPRECATED)</td>\n</tr>\n<tr>\n<td>sessionId</td>\n<td>Identifier of the session to be retrieved</td>\n</tr>\n<tr>\n<td>capacityType</td>\n<td>Channel capacity type. Valid capabilities are: UNKNOWN = 0, PhoneCall = 1, DeviceVoice = 2, WebViewer = 3, OfficialChannel = 4, UnOfficialChannel = 5</td>\n</tr>\n<tr>\n<td>intent</td>\n<td>The intention to force. This causes Lynn to execute said intention no associated text evaluation</td>\n</tr>\n<tr>\n<td>entityName</td>\n<td>Name of the entity to add</td>\n</tr>\n<tr>\n<td>reason</td>\n<td>Reason why you want to cancel the interaction</td>\n</tr>\n<tr>\n<td>configurationName</td>\n<td>Name of the configuration that was assigned at the time of create it.</td>\n</tr>\n<tr>\n<td>file</td>\n<td>Text string in GUID format that was saved in elastic search when sending the file</td>\n</tr>\n<tr>\n<td>channelId</td>\n<td>Identifier of the channel through which the client is communicating and which is registered in the platform that supports the tenant.</td>\n</tr>\n<tr>\n<td>date</td>\n<td>date the request is made ex. 2020-07-10</td>\n</tr>\n<tr>\n<td>campaignId</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"2afc7bd6-cc91-4455-80e8-05f286b94a8a"},{"name":"Messenger service","item":[{"name":"GetStatsByTenant","id":"c884c843-e051-43e4-b548-5f311d5ebdb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/GetStatsByTenant/{{tenant}}","description":"<p>With this method you can observe the statistics active sessions, active bot, among others and in which, the payload depends on the genesys statistics.</p>\n","urlObject":{"path":["api","LynnService","GetStatsByTenant","{{tenant}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"9e8ebf1e-1e19-4fc3-87ff-6a39fc8ade0c","name":"Example 200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"premium-key","type":"text","disabled":true}],"url":"{{endpoint}}/api/LynnService/GetStatsByTenant/{{tenant}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"sessionId\": \"00000000-0000-0000-0000-000000000000\",\n    \"calculatedStats\": null,\n    \"calculatedStatsList\": {},\n    \"calculationType\": 3,\n    \"activeBotSessions\": 1,\n    \"activeChatSessions\": 6,\n    \"countAdditionalStats\": 0,\n    \"additionalStats\": {},\n    \"countAdditionalStatsErrors\": 0,\n    \"success\": true,\n    \"message\": null,\n    \"pureCloudEstimatedWaitTimeList\": {}\n}"}],"_postman_id":"c884c843-e051-43e4-b548-5f311d5ebdb1"},{"name":"Status","id":"2a30c294-6b0c-4a91-bd05-0ad5bc166f82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}​/api​/LynnService/Status/{{tenant}}","description":"<p>Get the status of a specific tenant.</p>\n","urlObject":{"path":["api​","LynnService","Status","{{tenant}}"],"host":["{{endpoint}}​"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a30c294-6b0c-4a91-bd05-0ad5bc166f82"},{"name":"GetChannelConfiguration","id":"ada2b287-d4a4-4fc6-a538-89bccab40f8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}​​/api​/LynnService​/GetChannelConfiguration​/{tenant}​/{{configurationName}}​/{{channelId}}​/{{providerStr}}​/{{service}}","description":"<p>Get the status of a specific tenant.</p>\n","urlObject":{"path":["api​","LynnService​","GetChannelConfiguration​","{tenant}​","{{configurationName}}​","{{channelId}}​","{{providerStr}}​","{{service}}"],"host":["{{endpoint}}​​"],"query":[],"variable":[]}},"response":[],"_postman_id":"ada2b287-d4a4-4fc6-a538-89bccab40f8b"},{"name":"(Decrecated) ReadMessages","id":"e215f9dd-0aab-408f-a7eb-82c96d2ee0ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}"}],"url":"{{endpoint}}/api/LynnService/ReadMessages/{{tenant}}/{{sessionId}}/{{capacity}}/{{clientID}}/{{date}}","description":"<p><em><strong>We recommend webhook integration.</strong></em></p>\n<p>By executing all this function periodically, you can get the messages available in\nLynn for the client. It is recommended that for voice environments the frequency of execution of this function must be at least one second. For chat environments this frequency must be configured in 4 seconds.</p>\n","urlObject":{"path":["api","LynnService","ReadMessages","{{tenant}}","{{sessionId}}","{{capacity}}","{{clientID}}","{{date}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"52063204-6960-4050-a0e4-85dfcb99128e","name":"Example 200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}"},{"key":"Ocp-Apim-Subscription-Key","value":"premium-key","type":"text","disabled":true}],"url":"{{endpoint}}/api/LynnService/ReadMessages/{{tenant}}/{{sessionId}}/{{capacity}}/{{clientID}}/2020-07-10"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"sessionId\": \"00000000-0000-0000-0000-000000000000\",\n    \"textMessages\": [],\n    \"menuMessages\": [],\n    \"eventMessages\": [\n        {\n            \"event\": 1,\n            \"details\": \"The given key '471fefad-f5f6-4540-b63a-5200f20950f7' was not present in the dictionary.\",\n            \"source\": \"ReadMessages\",\n            \"messageType\": 2,\n            \"data\": null,\n            \"code\": 6,\n            \"sessionId\": \"471fefad-f5f6-4540-b63a-5200f20950f7\",\n            \"id\": \"88135d7d-6219-47bc-8b81-8a451a1f4dba\",\n            \"correlation\": 0,\n            \"capacities\": [],\n            \"date\": \"2021-07-01T19:33:24.2967791+00:00\",\n            \"availableByVoice\": true,\n            \"availableByText\": true,\n            \"conversationId\": \"00000000-0000-0000-0000-000000000000\",\n            \"part\": 0,\n            \"partName\": \"LYNN\",\n            \"description\": null,\n            \"formatter\": null\n        }\n    ],\n    \"awaitingMenu\": false,\n    \"awaitingText\": false,\n    \"isOnChatConversation\": false,\n    \"isAgentConnect\": false,\n    \"awaitingValidation\": null,\n    \"awaitingType\": \"\",\n    \"supportCancelation\": false,\n    \"capacity\": null,\n    \"pending\": false,\n    \"success\": true\n}"}],"_postman_id":"e215f9dd-0aab-408f-a7eb-82c96d2ee0ea"},{"name":"EndSession","id":"5b6e7eb6-f6f5-4ae4-a1a9-d93d0333f9c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{myToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}"}],"url":"{{endpoint}}/api/LynnService/EndSession/{{tenant}}/{{sessionId}}","description":"<p>All Lynn sessions can be terminated unilaterally by the Lynn interactions if the idle time used (inactivityTimeout) is reached at the time of create such a session. Additionally, it is recommended that the sessions that are no longer used be finished which will increase Lynn's performance because it will not use resources to monitor deprecated sessions.</p>\n","urlObject":{"path":["api","LynnService","EndSession","{{tenant}}","{{sessionId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"f0fce94d-e325-48ed-9f5a-71bdecca37f9","name":"Example 200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}"},{"key":"Ocp-Apim-Subscription-Key","value":"premium-key","type":"text","disabled":true}],"url":"{{endpoint}}/api/LynnService/EndSession/{{tenant}}/{{sessionId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"sessionId\": \"471fefad-f5f6-4540-b63a-5200f20950f7\",\n    \"messages\": [],\n    \"eventMessages\": [],\n    \"pending\": true,\n    \"success\": true\n}"}],"_postman_id":"5b6e7eb6-f6f5-4ae4-a1a9-d93d0333f9c2"},{"name":"SessionByCriteria","id":"9ab0961d-1fc3-410f-8278-a23bdf794ad3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}"}],"body":{"mode":"raw","raw":"{\r\n    \"lang\" : \"ES\",\r\n    \"ChannelId\" : \"20\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/api/LynnService/SessionByCriteria/{{criteria}}/{{value}}/{{inactivityTimeout}}/{{clientIdentifier}}/{{callIId}}/{{capacity}}/{{clientID}}/{{channelId}}/{{tenant}}/{{verbose}}","description":"<p>Returns the information related to a session if it exists in memory. Even if it's checked to be removed by timeout. In case nothing is returned, the session would not be in the memory of Lynn.</p>\n","urlObject":{"path":["api","LynnService","SessionByCriteria","{{criteria}}","{{value}}","{{inactivityTimeout}}","{{clientIdentifier}}","{{callIId}}","{{capacity}}","{{clientID}}","{{channelId}}","{{tenant}}","{{verbose}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"9277a809-2945-4239-872b-6869114f6cc9","name":"Example 200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}"},{"key":"Ocp-Apim-Subscription-Key","value":"premium-key","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n    \"lang\" : \"ES\",\r\n    \"ChannelId\" : \"20\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/api/LynnService/SessionByCriteria/{{criteria}}/{{value}}/{{inactivityTimeout}}/{{clientIdentifier}}/{{callIId}}/{{capacity}}/{{clientID}}/{{channelId}}/{{tenant}}/{{verbose}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"botName\": \"MKTEST1\",\n    \"sessionId\": \"9ab40c0d-b7d8-4892-9aa4-7d50aac87b24\",\n    \"textMessages\": [],\n    \"menuMessages\": [],\n    \"eventMessages\": [],\n    \"inactivityTimeout\": 600,\n    \"ani\": \"Demo\",\n    \"callIId\": \"1234\",\n    \"status\": 0,\n    \"dialoguesOfTheDay\": [],\n    \"mode\": 1,\n    \"pending\": false,\n    \"success\": true\n}"}],"_postman_id":"9ab0961d-1fc3-410f-8278-a23bdf794ad3"},{"name":"SendInducedMessage","id":"d2bf0659-d616-449c-8a00-5796f5a77a31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}"}],"body":{"mode":"raw","raw":"{\r\n    \"lang\" : \"ES\",\r\n    \"ChannelId\" : \"20\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}​/api​/LynnService​/SendInducedMessage​/{{tenant}}​/{{sessionId}}/{{availableByVoice}​}/{{availableByText}}​/{{capacityType}}​/{{clientId}}","description":"<p>Send induced message.</p>\n","urlObject":{"path":["api​","LynnService​","SendInducedMessage​","{{tenant}}​","{{sessionId}}","{{availableByVoice}​}","{{availableByText}}​","{{capacityType}}​","{{clientId}}"],"host":["{{endpoint}}​"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2bf0659-d616-449c-8a00-5796f5a77a31"},{"name":"(Deprecate) Ping","id":"2ff8a489-c6c2-4217-a7f8-717975b3d2fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/Ping/{{tenant}}","description":"<p>Useful method when you want to validate that the service is active and / or if you want to know the number of active sessions a tenant has.</p>\n","urlObject":{"path":["api","LynnService","Ping","{{tenant}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"481465f7-0f47-4e24-a591-f008a91101bc","name":"Example 200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"premium-key","type":"text","disabled":true}],"url":"{{endpoint}}/api/LynnService/Ping/{{tenant}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This function has been deprecated\",\n    \"pending\": false,\n    \"success\": true\n}"}],"_postman_id":"2ff8a489-c6c2-4217-a7f8-717975b3d2fd"},{"name":"SendCampaignData","id":"27730c5c-cdaa-4efa-8bd5-804a12db51a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}​/api​/LynnService​/SendCampaignData​/{{tenant}}​/{{requestId}}​/{{campaignId}}​/{{contactId}​}/{{status}}​/{{criteria}}​/{{criteriaValue}}","description":"<p>Updates the status of a campaign record.</p>\n","urlObject":{"path":["api​","LynnService​","SendCampaignData​","{{tenant}}​","{{requestId}}​","{{campaignId}}​","{{contactId}​}","{{status}}​","{{criteria}}​","{{criteriaValue}}"],"host":["{{endpoint}}​"],"query":[],"variable":[]}},"response":[],"_postman_id":"27730c5c-cdaa-4efa-8bd5-804a12db51a7"},{"name":"GetDeflectionPossibilities","id":"df48f5d0-f92e-434d-84b0-7356bea2a15c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/GetDeflectionPossibilities/{{tenant}}/{{clientIdentifier}}","description":"<p>This method allows you to obtain the available communication channels to which you can\nredirect customer communication according to tenant (Facebook, chat, email, among others).</p>\n","urlObject":{"path":["api","LynnService","GetDeflectionPossibilities","{{tenant}}","{{clientIdentifier}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"4f6abf83-40b6-4ceb-92cf-48420bd8ab49","name":"Example 200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"premium-key","type":"text","disabled":true}],"url":"{{endpoint}}/api/LynnService/GetDeflectionPossibilities/{{tenant}}/{{clientIdentifier}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"properties\": {\n        \"CHAT_URL_DEFLECTION\": \",\"\n    },\n    \"methods\": [\n        20\n    ],\n    \"proposalId\": \"d21ec864-3e23-49e0-b156-2a7bcbe08044\",\n    \"date\": \"2021-07-01T19:34:09.1920335+00:00\",\n    \"clientId\": \"Demo\",\n    \"tenant\": 2155,\n    \"availability\": \"00:05:00\"\n}"}],"_postman_id":"df48f5d0-f92e-434d-84b0-7356bea2a15c"},{"name":"StartDeflection","id":"5172fb9c-f43c-4223-b041-a7b06ff56c6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/StartDeflection/{{tenant}}/{{proposalId}}/{{method}}","description":"<p>Thanks to this method, the Lynn service is instructed to initiate the transfer of the interaction indicated in the requested task.</p>\n","urlObject":{"path":["api","LynnService","StartDeflection","{{tenant}}","{{proposalId}}","{{method}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"54138971-6f28-4665-a6c3-33a1558ea7fb","name":"Example 200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"premium-key","type":"text","disabled":true}],"url":"{{endpoint}}/api/LynnService/StartDeflection/{{tenant}}/{{proposalId}}/{{method}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 0,\n    \"method\": 21,\n    \"proposalId\": \"38c2e599-7965-4338-b6ca-3f855b180c4c\",\n    \"date\": \"2021-07-01T19:34:18.6179776+00:00\",\n    \"availability\": \"00:00:00\",\n    \"clientId\": \"\",\n    \"tenant\": 2155,\n    \"userdata\": [],\n    \"toId\": \"\",\n    \"toName\": \"\",\n    \"serviceUrl\": \"\",\n    \"deflectionMessage\": \"\",\n    \"conversationId\": \"\",\n    \"channelId\": \"\",\n    \"deflectionIntent\": \"Welcome_Intent\"\n}"}],"_postman_id":"5172fb9c-f43c-4223-b041-a7b06ff56c6c"},{"name":"SendTextMessageWithIntent","id":"4d6f9714-574a-41c6-87f4-5b3ce64c58bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/SendTextMessageWithIntent/{{tenant}}/{{sessionId}}/{{capacityType}}/{{clientId}}/{{intent}}","description":"<p>Using this function it is possible to induce in Lynn a certain intention without the respective text evaluation in the cognitive motor</p>\n","urlObject":{"path":["api","LynnService","SendTextMessageWithIntent","{{tenant}}","{{sessionId}}","{{capacityType}}","{{clientId}}","{{intent}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d6f9714-574a-41c6-87f4-5b3ce64c58bf"},{"name":"SendTextMessage","id":"739b86c5-e5a6-435c-acab-1f7f25cd75a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}"}],"body":{"mode":"raw","raw":"Consulta de Saldo"},"url":"{{endpoint}}/api/LynnService/SendTextMessage/{{tenant}}/{{mySessionID}}/{{capacityType}}/{{clientID}}","description":"<p>Using this function it is possible to induce in Lynn a certain intention without the respective text evaluation in the cognitive motor.</p>\n","urlObject":{"path":["api","LynnService","SendTextMessage","{{tenant}}","{{mySessionID}}","{{capacityType}}","{{clientID}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"739b86c5-e5a6-435c-acab-1f7f25cd75a2"},{"name":"SendMenuResponseMessage","id":"5d09fbc8-e69c-4305-871c-a122a06492e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/SendMenuResponseMessage/{{tenant}}/{{sessionId}}/{{capacityType}}/{{clientId}}","description":"<p>Through this method the response of a menu can be sent.</p>\n","urlObject":{"path":["api","LynnService","SendMenuResponseMessage","{{tenant}}","{{sessionId}}","{{capacityType}}","{{clientId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"c01b50cc-35e2-4e31-a44a-45a73d0c5e7e","name":"Example 200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"premium-key","type":"text","disabled":true}],"url":"{{endpoint}}/api/LynnService/SendMenuResponseMessage/{{tenant}}/{{sessionId}}/{{capacityType}}/{{clientId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"sessionId\": \"00000000-0000-0000-0000-000000000000\",\n    \"eventMessages\": [\n        {\n            \"event\": 1,\n            \"details\": \"Ignored empty message\",\n            \"source\": \"SendMenuResponseMessage\",\n            \"messageType\": 2,\n            \"data\": null,\n            \"code\": 11,\n            \"sessionId\": \"471fefad-f5f6-4540-b63a-5200f20950f7\",\n            \"id\": \"c66c3c6f-d70b-49b8-a92c-56a2f0e414dd\",\n            \"correlation\": 0,\n            \"capacities\": [],\n            \"date\": \"2021-07-01T19:42:16.4885619+00:00\",\n            \"availableByVoice\": true,\n            \"availableByText\": true,\n            \"conversationId\": \"00000000-0000-0000-0000-000000000000\",\n            \"part\": 0,\n            \"partName\": \"LYNN\",\n            \"description\": null,\n            \"formatter\": null\n        }\n    ],\n    \"id\": \"00000000-0000-0000-0000-000000000000\",\n    \"pending\": false,\n    \"success\": true\n}"}],"_postman_id":"5d09fbc8-e69c-4305-871c-a122a06492e7"},{"name":"GetEntity","id":"4e9391b5-cae0-49f1-a8c4-74ef8d34fd5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/GetEntity/{{tenant}}/{{sessionId}}/{{entityName}}","description":"<p>Requests the value of an entity referenced by the session identifier of an active interaction for a particular tenant.</p>\n","urlObject":{"path":["api","LynnService","GetEntity","{{tenant}}","{{sessionId}}","{{entityName}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4e9391b5-cae0-49f1-a8c4-74ef8d34fd5f"},{"name":"SetEntity","id":"c6eb1305-30fe-4089-874b-ce043a1bcf7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/SetEntity/{{tenant}}/{{sessionId}}/{{entityName}}","description":"<p>Entities are the variables that can be used during the execution of a session. Said\nvariables are passed at the beginning of the session creation and are shared by all conversations that originate during the lifetime of the session. Also, when a conversation is created within a session as a product of a cognitive assessment, this conversation is also add all the entities that the cognitive engine has been able to infer using the text of evaluation. Using this function, extra entities (variables) can be added to a current session.</p>\n","urlObject":{"path":["api","LynnService","SetEntity","{{tenant}}","{{sessionId}}","{{entityName}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6eb1305-30fe-4089-874b-ce043a1bcf7d"},{"name":"CancelCurrentInteraction","id":"e05f55c8-533a-4216-a53b-589ff88db9e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/CancelCurrentInteraction/{{tenant}}/{{sessionId}}/{{reason}}","description":"<p>Cancel the current intention of the client, the session is kept active and the interaction continues, but with another answer of answers.</p>\n","urlObject":{"path":["api","LynnService","CancelCurrentInteraction","{{tenant}}","{{sessionId}}","{{reason}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"6e87a7cc-a08c-4e43-8f8d-a021be8a6db0","name":"Example 200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"premium-key","type":"text","disabled":true}],"url":"{{endpoint}}/api/LynnService/CancelCurrentInteraction/{{tenant}}/{{sessionId}}/{{reason}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"sessionId\": \"471fefad-f5f6-4540-b63a-5200f20950f7\",\n    \"eventMessages\": [],\n    \"id\": \"00000000-0000-0000-0000-000000000000\",\n    \"pending\": true,\n    \"success\": true\n}"}],"_postman_id":"e05f55c8-533a-4216-a53b-589ff88db9e1"},{"name":"ExistsSessionByCriteria","id":"6abf69b6-4049-4128-a667-1ee1929a3667","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/ExistsSessionByCriteria/{{tenant}}/{{criteria}}/{{value}}","description":"<p>Returns the information related to a session if it exists in memory. Even if it's checked to be removed by timeout. In case nothing is returned, the session would not be in the memory of Lynn.</p>\n","urlObject":{"path":["api","LynnService","ExistsSessionByCriteria","{{tenant}}","{{criteria}}","{{value}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6abf69b6-4049-4128-a667-1ee1929a3667"},{"name":"SendMenuResponseByLevenshteinDistance","id":"99f6fb2b-fbdc-4e72-8fab-c4c52b656d6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/SendMenuResponseByLevenshteinDistance/{{tenant}}/{{sessionId}}/{{capacityType}}/{{clientId}}","description":"<p>For cases where Lynn offers a menu of options, but the answer requires being\nanalyzed by approximation to an indicated text. This function should be used to answer that menu. In case Lynn is not waiting for a response to the menu then the execution of this function is ignored. Very useful to improve integrations with voice, where menus are included.</p>\n","urlObject":{"path":["api","LynnService","SendMenuResponseByLevenshteinDistance","{{tenant}}","{{sessionId}}","{{capacityType}}","{{clientId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"99f6fb2b-fbdc-4e72-8fab-c4c52b656d6c"},{"name":"SendMenuResponseMessageInterpretacion","id":"ca3b7b52-f854-4dd3-81c3-c9c8f8bc1f2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/SendMenuResponseMessageInterpretacion/{{tenant}}/{{sessionId}}/{{capacityType}}/{{clientId}}","description":"<p>Send a reply to a menu. For cases where Lynn offers a menu of options.</p>\n","urlObject":{"path":["api","LynnService","SendMenuResponseMessageInterpretacion","{{tenant}}","{{sessionId}}","{{capacityType}}","{{clientId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"399dd044-2712-4f05-800b-18378df3c225","name":"Example 200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"premium-key","type":"text","disabled":true}],"url":"{{endpoint}}/api/LynnService/SendMenuResponseMessageInterpretacion/{{tenant}}/{{sessionId}}/{{capacityType}}/{{clientId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"sessionId\": \"00000000-0000-0000-0000-000000000000\",\n    \"eventMessages\": [\n        {\n            \"event\": 1,\n            \"details\": \"Ignored empty message\",\n            \"source\": \"SendMenuResponseMessage\",\n            \"messageType\": 2,\n            \"data\": null,\n            \"code\": 11,\n            \"sessionId\": \"471fefad-f5f6-4540-b63a-5200f20950f7\",\n            \"id\": \"e98ae0b7-9c2f-4cee-990d-8c275362ac58\",\n            \"correlation\": 0,\n            \"capacities\": [],\n            \"date\": \"2021-07-01T19:43:47.3399917+00:00\",\n            \"availableByVoice\": true,\n            \"availableByText\": true,\n            \"conversationId\": \"00000000-0000-0000-0000-000000000000\",\n            \"part\": 0,\n            \"partName\": \"LYNN\",\n            \"description\": null,\n            \"formatter\": null\n        }\n    ],\n    \"id\": \"00000000-0000-0000-0000-000000000000\",\n    \"pending\": false,\n    \"success\": true\n}"}],"_postman_id":"ca3b7b52-f854-4dd3-81c3-c9c8f8bc1f2e"},{"name":"WriteLevelLog","id":"9053b25d-3dae-41b9-87c5-a90b28060720","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/WriteLevelLog/{{tenant}}/{{sessionId}}/{{level}}","description":"<p>Registers from Api Rest events that occurred in the sessionId for the corresponding level.</p>\n","urlObject":{"path":["api","LynnService","WriteLevelLog","{{tenant}}","{{sessionId}}","{{level}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"f57c8d1b-76b0-42c9-a0f1-fc4f7f92201f","name":"Example 200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"premium-key","type":"text","disabled":true}],"url":"{{endpoint}}/api/LynnService/WriteLevelLog/{{tenant}}/{{sessionId}}/{{level}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"true"}],"_postman_id":"9053b25d-3dae-41b9-87c5-a90b28060720"},{"name":"GetFile","id":"2d8a7c37-dfb6-46d9-b0af-b9b5bdde2f30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"bearer {{myToken}}","type":"text"}],"url":"{{endpoint}}/api/LynnService/File/{{tenant}}/{{file}}","description":"<p>Return a file stored in elasticsearch.</p>\n","urlObject":{"path":["api","LynnService","File","{{tenant}}","{{file}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2d8a7c37-dfb6-46d9-b0af-b9b5bdde2f30"}],"id":"bc0b9119-49d0-4b0b-973e-e92f53fafd65","_postman_id":"bc0b9119-49d0-4b0b-973e-e92f53fafd65","description":""},{"name":"Lynn OutBound","item":[{"name":"Campaign","item":[{"name":"List Campaign By Tenant","id":"b1ba07e0-8f19-49f6-9f19-9b2f9a008da3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{endpoint}}/api/LynnService/GetCampaigns/{{tenant}}","urlObject":{"path":["api","LynnService","GetCampaigns","{{tenant}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"bf4b521c-f0ac-48ae-8698-6397ca36df02","name":"Successful response","originalRequest":{"method":"GET","header":[],"url":"{{endpoint}}/api/LynnService/GetCampaigns/{{tenant}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 12:51:55 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"7e5dee1e-9050-4c68-94c4-059df04d5560\",\n        \"name\": \"AsyncMessage\",\n        \"date\": \"2021-10-25T15:01:09.8\",\n        \"tenantId\": 2524,\n        \"statusId\": 0,\n        \"campaignTypeId\": 2,\n        \"executionMode\": 1,\n        \"validUntil\": \"2021-12-31T15:00:00\",\n        \"validForHours\": 10000,\n        \"intentToExecute\": \"RespuestaAsync\",\n        \"continueOnError\": false,\n        \"campaignCategory\": null,\n        \"startCampaign\": null,\n        \"stopCampaign\": null\n    },\n    {\n        \"id\": \"06164597-0efd-4975-bff3-47c6c0fc58ac\",\n        \"name\": \"Campaña de Navidad\",\n        \"date\": \"2021-12-07T16:37:37.24\",\n        \"tenantId\": 2524,\n        \"statusId\": 1,\n        \"campaignTypeId\": 2,\n        \"executionMode\": 1,\n        \"validUntil\": \"2022-12-31T01:00:00\",\n        \"validForHours\": 10000,\n        \"intentToExecute\": \"Respuesta_elk_outbound\",\n        \"continueOnError\": false,\n        \"campaignCategory\": \"Temporada\",\n        \"startCampaign\": null,\n        \"stopCampaign\": null\n    },\n    {\n        \"id\": \"e9bf020f-82f6-41f0-8c0a-6bfe53c80f00\",\n        \"name\": \"Regalos\",\n        \"date\": \"2021-12-07T16:38:15.15\",\n        \"tenantId\": 2524,\n        \"statusId\": 0,\n        \"campaignTypeId\": 1,\n        \"executionMode\": 1,\n        \"validUntil\": \"2021-12-08T16:37:00\",\n        \"validForHours\": 10000,\n        \"intentToExecute\": \"Welcome_Intent\",\n        \"continueOnError\": false,\n        \"campaignCategory\": \"Temporada\",\n        \"startCampaign\": null,\n        \"stopCampaign\": null\n    },\n    {\n        \"id\": \"a47be8af-d40d-452c-9a3e-bcf668fcd1dc\",\n        \"name\": \"DemoOutboundTest\",\n        \"date\": \"2021-05-03T10:40:42.387\",\n        \"tenantId\": 2524,\n        \"statusId\": 1,\n        \"campaignTypeId\": 1,\n        \"executionMode\": 1,\n        \"validUntil\": \"2021-12-31T00:00:00\",\n        \"validForHours\": 1000,\n        \"intentToExecute\": \"OutBound_Default_Int\",\n        \"continueOnError\": false,\n        \"campaignCategory\": \"Test\",\n        \"startCampaign\": null,\n        \"stopCampaign\": null\n    }\n]"}],"_postman_id":"b1ba07e0-8f19-49f6-9f19-9b2f9a008da3"},{"name":"Get Campaign By Id","id":"7a6f3bd7-e7ef-47c2-b9f9-711d92467bd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{endpoint}}/api/LynnService/GetCampaign/{{tenant}}/{{campaignId}}","urlObject":{"path":["api","LynnService","GetCampaign","{{tenant}}","{{campaignId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"09844a9b-2d60-4e95-9e3a-011fe9ae5bb7","name":"Successful response","originalRequest":{"method":"GET","header":[],"url":"{{endpoint}}/api/LynnService/GetCampaign/{{tenant}}/{{campaignId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 12:54:53 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"7e5dee1e-9050-4c68-94c4-059df04d5560\",\n    \"name\": \"AsyncMessage\",\n    \"date\": \"2021-10-25T15:01:09.8\",\n    \"tenantId\": 2524,\n    \"statusId\": 0,\n    \"campaignTypeId\": 2,\n    \"executionMode\": 1,\n    \"validUntil\": \"2021-12-31T15:00:00\",\n    \"validForHours\": 10000,\n    \"intentToExecute\": \"RespuestaAsync\",\n    \"continueOnError\": false,\n    \"campaignCategory\": null,\n    \"startCampaign\": null,\n    \"stopCampaign\": null\n}"}],"_postman_id":"7a6f3bd7-e7ef-47c2-b9f9-711d92467bd4"},{"name":"Delete Campaign By Id","id":"129dc701-879e-4a21-bad5-984cef6f0142","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{endpoint}}/api/LynnService/DeleteCampaign/{{tenant}}/{{campaignId}}","urlObject":{"path":["api","LynnService","DeleteCampaign","{{tenant}}","{{campaignId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"3a9144fb-7867-4056-8b9c-9f1c4a327acc","name":"Successful response","originalRequest":{"method":"DELETE","header":[],"url":"{{endpoint}}/api/LynnService/DeleteCampaign/{{tenant}}/{{campaignId}}"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 12:56:03 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"129dc701-879e-4a21-bad5-984cef6f0142"},{"name":"Create Campaign","id":"41f54dc9-4742-4f49-bd3b-d4651516baf9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Test desde el API\",\r\n    \"campaignTypeId\": 1,\r\n    \"validUntil\": \"2022-04-07T00:00:00\",\r\n    \"validForHours\": 100,\r\n    \"intentToExecute\": \"MultiMessagesCampaignStart\",\r\n    \"executionMode\": 2, //1 : Manual , 2: Scheduled , 3: AlwaysOn\r\n    \"campaignCategory\": null,\r\n    \"startCampaign\": \"2021-02-25T18:13:12.997\",\r\n    \"stopCampaign\": \"2021-02-25T18:13:12.997\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/api/LynnService/PostCampaign/{{tenant}}","urlObject":{"path":["api","LynnService","PostCampaign","{{tenant}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"b51bd275-b7ca-41e8-9fae-90890b4b4a67","name":"Successful response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Test desde API\",\r\n    \"campaignTypeId\": 1,\r\n    \"validUntil\": \"2022-04-07T00:00:00\",\r\n    \"validForHours\": 100,\r\n    \"intentToExecute\": \"MultiMessagesCampaignStart\",\r\n    \"executionMode\": 2, //1 : Manual , 2: Scheduled , 3: AlwaysOn\r\n    \"campaignCategory\": null,\r\n    \"startCampaign\": \"2021-02-25T18:13:12.997\",\r\n    \"stopCampaign\": \"2021-02-25T18:13:12.997\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/api/LynnService/PostCampaign/{{tenant}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 12:57:23 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"42da59c2-0b97-4d87-a627-c049223730a1\"\n}"}],"_postman_id":"41f54dc9-4742-4f49-bd3b-d4651516baf9"},{"name":"Update Campaign","id":"fd9d4f85-c046-4664-8de1-99eaf466f534","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Test desde API Update\",\r\n    \"campaignTypeId\": 1,\r\n    \"validUntil\": \"2022-05-28T00:00:00\",\r\n    \"validForHours\": 100,\r\n    \"intentToExecute\": \"MultiMessagesCampaignStart\",\r\n    \"executionMode\": 1, //1 : Manual , 2: Scheduled , 3: AlwaysOn\r\n    \"campaignCategory\": null,\r\n    \"startCampaign\": \"2021-02-25T18:13:12.997\",\r\n    \"stopCampaign\": \"2021-02-25T18:13:12.997\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/api/LynnService/PutCampaign/{{tenant}}/{{campaignId}}","urlObject":{"path":["api","LynnService","PutCampaign","{{tenant}}","{{campaignId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"6cd02377-e596-4b41-b9ba-020244f83920","name":"Successful response","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Test desde API Update\",\r\n    \"campaignTypeId\": 1,\r\n    \"validUntil\": \"2022-05-28T00:00:00\",\r\n    \"validForHours\": 100,\r\n    \"intentToExecute\": \"MultiMessagesCampaignStart\",\r\n    \"executionMode\": 1, //1 : Manual , 2: Scheduled , 3: AlwaysOn\r\n    \"campaignCategory\": null,\r\n    \"startCampaign\": \"2021-02-25T18:13:12.997\",\r\n    \"stopCampaign\": \"2021-02-25T18:13:12.997\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/api/LynnService/PutCampaign/{{tenant}}/{{campaignId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 12:58:56 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"42da59c2-0b97-4d87-a627-c049223730a1\"\n}"}],"_postman_id":"fd9d4f85-c046-4664-8de1-99eaf466f534"}],"id":"afdc1abd-5a4c-4d7b-8872-3547282e6ebd","_postman_id":"afdc1abd-5a4c-4d7b-8872-3547282e6ebd","description":""},{"name":"Contact","item":[{"name":"List Contact By Tenant","id":"845791fa-4e4d-4854-b1ed-387f46923d77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{endpoint}}/api/LynnService/GetContacts/{{tenant}}","urlObject":{"path":["api","LynnService","GetContacts","{{tenant}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"65d97ae8-4886-4972-ba2f-7124ade4d1d7","name":"Successful response","originalRequest":{"method":"GET","header":[],"url":"{{endpoint}}/api/LynnService/GetContacts/{{tenant}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 13:45:20 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1bbd85cd-6d7a-4e69-a5e7-48d6ad1bb73a\",\n        \"tenantId\": 2524,\n        \"contactType\": 3,\n        \"contactName\": \"Carlos Ignacio Reyes Perez\",\n        \"date\": \"2022-05-13T22:34:32.25\",\n        \"customInfo1\": \"Private data\",\n        \"customInfo2\": \"Private data\",\n        \"customInfo3\": \"Private data\",\n        \"customInfo4\": \"Private data\",\n        \"customInfo5\": \"Private data\",\n        \"customInfo6\": \"Private data\",\n        \"customInfo7\": \"Private data\",\n        \"customInfo8\": \"Private data\",\n        \"customInfo9\": \"Private data\",\n        \"customInfo10\": \"Updated by Lynn\"\n    }\n]"}],"_postman_id":"845791fa-4e4d-4854-b1ed-387f46923d77"},{"name":"Get Contact By Id","id":"1487df7f-02c4-462e-9ecb-d689b91ed237","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{endpoint}}/api/LynnService/GetContact/{{tenant}}/{{contactId}}","urlObject":{"path":["api","LynnService","GetContact","{{tenant}}","{{contactId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"d1736450-c289-454e-906d-f0c927d78acb","name":"Successful response","originalRequest":{"method":"GET","header":[],"url":"{{endpoint}}/api/LynnService/GetContact/{{tenant}}/{{contactId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 13:47:04 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1bbd85cd-6d7a-4e69-a5e7-48d6ad1bb73a\",\n    \"tenantId\": 2524,\n    \"contactType\": 3,\n    \"contactName\": \"Carlos Ignacio Reyes Perez\",\n    \"date\": \"2022-05-13T22:34:32.25\",\n    \"customInfo1\": \"Private data\",\n    \"customInfo2\": \"Private data\",\n    \"customInfo3\": \"Private data\",\n    \"customInfo4\": \"Private data\",\n    \"customInfo5\": \"Private data\",\n    \"customInfo6\": \"Private data\",\n    \"customInfo7\": \"Private data\",\n    \"customInfo8\": \"Private data\",\n    \"customInfo9\": \"Private data\",\n    \"customInfo10\": \"Updated by Lynn\"\n}"}],"_postman_id":"1487df7f-02c4-462e-9ecb-d689b91ed237"},{"name":"Delete Contact By Id","id":"93c496b7-8ada-4059-bdd1-b7685fd14a81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{endpoint}}/api/LynnService/DeleteContact/{{tenant}}/{{contactId}}","urlObject":{"path":["api","LynnService","DeleteContact","{{tenant}}","{{contactId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"baf38141-8648-43cd-bffb-fb6f43b2287f","name":"Successful response","originalRequest":{"method":"DELETE","header":[],"url":"{{endpoint}}/api/LynnService/DeleteContact/{{tenant}}/{{contactId}}"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 13:48:03 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"93c496b7-8ada-4059-bdd1-b7685fd14a81"},{"name":"Create Contact","id":"e30658e1-a9f9-43e3-a8b6-6f105fb055bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"contactType\": 1, //WhatsApp = 1, FacebookMessenger = 2, Teams = 3, Skype = 4,  Sms = 5, Slack = 6, DirectLyne = 7, TwitterDirect = 8,\r\n                      //TwitterMention = 9, FacebookComments = 10, DirectLineSpeech = 11, Email = 12, GroupMe = 13, Kik = 14, Line = 15, Telegram = 16,\r\n                      //Cortana = 17, SkypeVoice = 18, Emulator = 19, Chat = 20, UNKNOWN = 21, InstagramComments = 22, InstagramDirect = 23,\r\n                      //FacebookWorkplaceComments = 24, VoiceExternalProvider = 25, VoiceInternalProvider = 26,\r\n    \"contactName\": \"Carlos-Reyes\",\r\n    \"customInfo1\": null,\r\n    \"customInfo2\": null,\r\n    \"customInfo3\": \"56934466718\",\r\n    \"customInfo4\": null,\r\n    \"customInfo5\": null,\r\n    \"customInfo6\": null,\r\n    \"customInfo7\": null,\r\n    \"customInfo8\": null,\r\n    \"customInfo9\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/api/LynnService/PostContact/{{tenant}}","urlObject":{"path":["api","LynnService","PostContact","{{tenant}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"e68aa981-8924-437c-9734-dd69643beebe","name":"Successful response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"contactType\": 1, //WhatsApp = 1, FacebookMessenger = 2, Teams = 3, Skype = 4,  Sms = 5, Slack = 6, DirectLyne = 7, TwitterDirect = 8,\r\n                      //TwitterMention = 9, FacebookComments = 10, DirectLineSpeech = 11, Email = 12, GroupMe = 13, Kik = 14, Line = 15, Telegram = 16,\r\n                      //Cortana = 17, SkypeVoice = 18, Emulator = 19, Chat = 20, UNKNOWN = 21, InstagramComments = 22, InstagramDirect = 23,\r\n                      //FacebookWorkplaceComments = 24, VoiceExternalProvider = 25, VoiceInternalProvider = 26,\r\n    \"contactName\": \"Carlos-Reyes\",\r\n    \"customInfo1\": null,\r\n    \"customInfo2\": null,\r\n    \"customInfo3\": \"56934466718\",\r\n    \"customInfo4\": null,\r\n    \"customInfo5\": null,\r\n    \"customInfo6\": null,\r\n    \"customInfo7\": null,\r\n    \"customInfo8\": null,\r\n    \"customInfo9\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/api/LynnService/PostContact/{{tenant}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 13:52:15 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"e98e05d2-8121-4adb-aacf-46fa80807860\"\n}"}],"_postman_id":"e30658e1-a9f9-43e3-a8b6-6f105fb055bb"},{"name":"Update Contact","id":"f9655092-98db-4b17-aa28-beed075c8f44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"contactType\": 1,\r\n    \"contactName\": \"C Pérez\",\r\n    \"customInfo1\": null,\r\n    \"customInfo2\": null,\r\n    \"customInfo3\": \"569897466718\",\r\n    \"customInfo4\": null,\r\n    \"customInfo5\": null,\r\n    \"customInfo6\": null,\r\n    \"customInfo7\": null,\r\n    \"customInfo8\": null,\r\n    \"customInfo9\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/api/LynnService/PutContact/{{tenant}}/{{contactId}}","urlObject":{"path":["api","LynnService","PutContact","{{tenant}}","{{contactId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"04b53df8-8c45-4022-a20a-b159a4f3156d","name":"Successful response","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"contactType\": 1,\r\n    \"contactName\": \"Carlos Reyes Pérez\",\r\n    \"customInfo1\": null,\r\n    \"customInfo2\": null,\r\n    \"customInfo3\": \"56934466718\",\r\n    \"customInfo4\": null,\r\n    \"customInfo5\": null,\r\n    \"customInfo6\": null,\r\n    \"customInfo7\": null,\r\n    \"customInfo8\": null,\r\n    \"customInfo9\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/api/LynnService/PutContact/{{tenant}}/{{contactId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 13:53:17 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"e98e05d2-8121-4adb-aacf-46fa80807860\"\n}"}],"_postman_id":"f9655092-98db-4b17-aa28-beed075c8f44"}],"id":"ffc4b14b-bbca-4c0a-b7be-8a80d21ac19a","_postman_id":"ffc4b14b-bbca-4c0a-b7be-8a80d21ac19a","description":""},{"name":"DnD Contact","item":[{"name":"Get DND By Contact Id","id":"8531caf5-602a-439a-9fc2-f2df704550bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{endpoint}}/api/LynnService/GetDnDContact/{{tenant}}/{{contactId}}","urlObject":{"path":["api","LynnService","GetDnDContact","{{tenant}}","{{contactId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"ff64b951-924e-46f3-83f1-e9bbe24b1e6d","name":"Is not DnD","originalRequest":{"method":"GET","header":[],"url":"{{endpoint}}/api/LynnService/GetDnDContact/{{tenant}}/{{contactId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 13:54:02 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"campaigns\": [],\n    \"categories\": []\n}"},{"id":"97228af7-a25d-42fa-b63c-0078a8f01502","name":"Is DND By Campaign","originalRequest":{"method":"GET","header":[],"url":"{{endpoint}}/api/LynnService/GetDnDContact/{{tenant}}/{{contactId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 13:55:50 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"campaigns\": [\n        {\n            \"campaignId\": \"42da59c2-0b97-4d87-a627-c049223730a1\",\n            \"campaignName\": \"Test desde API Update\"\n        }\n    ],\n    \"categories\": []\n}"},{"id":"a70c888a-38b9-4238-96c6-34377aef4c56","name":"Is DND By Category","originalRequest":{"method":"GET","header":[],"url":"{{endpoint}}/api/LynnService/GetDnDContact/{{tenant}}/{{contactId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 14:01:59 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"campaigns\": [],\n    \"categories\": [\n        \"Testing\"\n    ]\n}"}],"_postman_id":"8531caf5-602a-439a-9fc2-f2df704550bb"},{"name":"Set DND Contact By Campaign Id","id":"1398c8cd-f6f5-41f9-bb4a-2e025c226e3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{endpoint}}/api/LynnService/SetDnDContactByCampaign/{{tenant}}/{{contactId}}/{{campaignId}}/{{isDND}}","urlObject":{"path":["api","LynnService","SetDnDContactByCampaign","{{tenant}}","{{contactId}}","{{campaignId}}","{{isDND}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"43db649d-8e98-4507-b76a-52e510f65090","name":"Successful response","originalRequest":{"method":"POST","header":[],"url":"{{endpoint}}/api/LynnService/SetDnDContactByCampaign/{{tenant}}/{{contactId}}/{{campaignId}}/{{isDND}}"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 13:55:28 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"1398c8cd-f6f5-41f9-bb4a-2e025c226e3e"},{"name":"Set DND Contact By Category","id":"c92960c1-29e7-4f65-836e-d022726b2781","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{endpoint}}/api/LynnService/SetDnDContactByCategory/{{tenant}}/{{contactId}}/{{category}}/{{isDND}}","urlObject":{"path":["api","LynnService","SetDnDContactByCategory","{{tenant}}","{{contactId}}","{{category}}","{{isDND}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"8a1b512b-bfc0-471c-a877-069eae85af52","name":"Successful response","originalRequest":{"method":"POST","header":[],"url":"{{endpoint}}/api/LynnService/SetDnDContactByCategory/{{tenant}}/{{contactId}}/{{category}}/{{isDND}}"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 13:59:02 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"c92960c1-29e7-4f65-836e-d022726b2781"},{"name":"Get Dnd Task Status","id":"731ad1ae-a691-4086-ad5d-23a938cb7444","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{endpoint}}/api/LynnService/GetDndTaskStatus/{{tenant}}/{{taskId}}","urlObject":{"path":["api","LynnService","GetDndTaskStatus","{{tenant}}","{{taskId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"130512a2-8613-49d9-b48d-5cd22e7fefe4","name":"Successful response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiMjk3MiIsImh0dHA6Ly9sb2NhbGhvc3Q6NjM5MzkvIl0sImV4cCI6MTY0OTg1NjEwNiwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo2MzkzOS8ifQ.IvMKU0stHolMH05tsbEQ3FK8zHBTgAYbXVu_k_D3L9Q","disabled":true}],"url":"{{endpoint}}/api/LynnService/GetDndTaskStatus/{{tenant}}/{{taskId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 14:06:00 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"taskId\": \"555e7ac6-00e1-43b6-ba4a-1b6d9eb8a58b\",\n    \"status\": \"Finalized\",\n    \"startTime\": \"2022-05-26T14:04:20.1025743+00:00\",\n    \"endTime\": \"2022-05-26T14:04:23.794464+00:00\",\n    \"error\": \"\",\n    \"detail\": \"The records have been processed correctly\",\n    \"tenant\": 2524,\n    \"numberOfRecords\": 2\n}"}],"_postman_id":"731ad1ae-a691-4086-ad5d-23a938cb7444"},{"name":"Manage DnD By Campaign","id":"31612099-4b7b-4870-b147-e80d5e44f6a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"CampaignId\": \"{{campaignId}}\",\n    \"ContactType\": 1, //1 WhatsApp y 25 Voz\n    \"ContactList\": [\"56988744589\", \"56956321456\"],\n    \"DndStatusForContactList\": true, // true (se agregan los registros a la lista negra) o false (se eliminar los registros a la lista negra)\n    \"DefaultBehavior\": 3, // 1.\tNo se realiza acción, 2. Se agrega a DND, los contactos que no estén en la ContactList o 3. Se eliminan de DND, los contactos que no estén en la ContactList\n    \"CreateContactIfNotExist\": true //true: crea contactos si no existen\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/api/LynnService/ManageDnDByCampaign/{{tenant}}","urlObject":{"path":["api","LynnService","ManageDnDByCampaign","{{tenant}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"498641d2-ede0-415b-af3c-e2d64f6e489a","name":"Successful response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiMjk3MiIsImh0dHA6Ly9sb2NhbGhvc3Q6NjM5MzkvIl0sImV4cCI6MTY0OTUwNzk5MiwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo2MzkzOS8ifQ.uDFQqKGh8Tpv1Wrzb82Qtdp10fJw-UmKyKGPEmwbNN0","disabled":true},{"key":"Content-Type","value":"application/json","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"CampaignId\": \"{{campaignId}}\",\n    \"ContactType\": 1, //1 WhatsApp y 25 Voz\n    \"ContactList\": [\"56988744589\", \"56956321456\"],\n    \"DndStatusForContactList\": true, // true (se agregan los registros a la lista negra) o false (se eliminar los registros a la lista negra)\n    \"DefaultBehavior\": 3, // 1.\tNo se realiza acción, 2. Se agrega a DND, los contactos que no estén en la ContactList o 3. Se eliminan de DND, los contactos que no estén en la ContactList\n    \"CreateContactIfNotExist\": true //true: crea contactos si no existen\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/api/LynnService/ManageDnDByCampaign/{{tenant}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 14:04:19 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"taskId\": \"555e7ac6-00e1-43b6-ba4a-1b6d9eb8a58b\",\n    \"status\": \"Processing\",\n    \"startTime\": \"2022-05-26T14:04:20.1025743+00:00\",\n    \"endTime\": \"2022-05-26T14:04:20.1036387+00:00\",\n    \"error\": \"\",\n    \"detail\": \"Blacklist is being processed\",\n    \"tenant\": 2524,\n    \"numberOfRecords\": 2\n}"}],"_postman_id":"31612099-4b7b-4870-b147-e80d5e44f6a5"}],"id":"9d674bc3-ab50-4a22-bf62-d97a39c33710","_postman_id":"9d674bc3-ab50-4a22-bf62-d97a39c33710","description":""},{"name":"UploadCampaignData","id":"9f2d8947-f44a-401b-a2f5-4f71b85677b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Tenant","value":"{{tenant}}","type":"text"},{"key":"CampaignId","value":"{{campaignId}}","type":"text"},{"key":"FileToUpload","type":"file","src":"/D:/Work/lynn/Curso_OutBound_2021/3.DemoOutboundTest_03_05_2021 12_26_17.cpg"}]},"url":"{{endpoint}}/api/LynnService/UploadCampaignData","urlObject":{"path":["api","LynnService","UploadCampaignData"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f2d8947-f44a-401b-a2f5-4f71b85677b1"},{"name":"Start Campaign","id":"c4339128-5025-4f83-afa4-6dc567ceebc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{endpoint}}/api/LynnService/StartCampaignExecution/{{tenant}}/{{campaignId}}","urlObject":{"path":["api","LynnService","StartCampaignExecution","{{tenant}}","{{campaignId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"16dfffbf-a070-428b-8b88-87e53b5a524b","name":"Successful response","originalRequest":{"method":"POST","header":[],"url":"{{endpoint}}/api/LynnService/StartCampaignExecution/{{tenant}}/{{campaignId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 14:06:40 GMT"}],"cookie":[],"responseTime":null,"body":"1"}],"_postman_id":"c4339128-5025-4f83-afa4-6dc567ceebc2"},{"name":"Stop Campaign","id":"04e856c3-3fd6-4111-ab98-293e6a606f24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{endpoint}}/api/LynnService/StopCampaignExecution/{{tenant}}/{{campaignId}}","urlObject":{"path":["api","LynnService","StopCampaignExecution","{{tenant}}","{{campaignId}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"d0105e1f-ae02-4cbd-b4ea-a81f44960310","name":"Successful response","originalRequest":{"method":"POST","header":[],"url":"{{endpoint}}/api/LynnService/StopCampaignExecution/{{tenant}}/{{campaignId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Request-Context","value":"appId=cid-v1:5cccf904-d17f-41df-ae18-50ab2b39c62e"},{"key":"Date","value":"Thu, 26 May 2022 14:06:57 GMT"}],"cookie":[],"responseTime":null,"body":"1"}],"_postman_id":"04e856c3-3fd6-4111-ab98-293e6a606f24"}],"id":"32c2b599-a733-4359-9659-6b6f6c2798a5","_postman_id":"32c2b599-a733-4359-9659-6b6f6c2798a5","description":""},{"name":"CreateToken","id":"4f668db0-ef21-426f-8771-8081051d6d99","protocolProfileBehavior":{"disabledSystemHeaders":{"content-type":true},"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"accessToken\": \"{{accessToken}}\",\n    \"accessTokenSecret\": \"{{accessSecret}}\",\n    \"tenant\": \"{{tenant}}\"\n}"},"url":"{{endpoint}}/api/LynnService/CreateToken","description":"<p>One of the necessary requirements for the use of the Api Lynn is to verify that the consumer (user or service) has authorization to use the API; To do this, the first thing to do is obtain the authentication myToken.</p>\n<p>Contact administrator Lynn to get the accessToken and accessSecret for your tenant.</p>\n","urlObject":{"path":["api","LynnService","CreateToken"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"af3d7c12-bb8b-47a5-8347-f2e5be525f5e","name":"Example 200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Ocp-Apim-Subscription-Key","value":"premium-key","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"accessToken\": \"{{accessToken}}\",\n    \"accessTokenSecret\": \"{{accessSecret}}\",\n    \"tenant\": \"{{tenant}}\"\n}"},"url":"{{endpoint}}/api/LynnService/CreateToken"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhdWQiOlsiMjE1NSIsImh0dHA6Ly9sb2NhbGhvc3Q6NjM5MzkvIl0sImNzdF90a191cmxfbm90aWZpY2F0aW9uc193ZWJfaG9vayI6Imh0dHA6Ly9sb2NhbGhvc3Q6Mzk3OC9hcGkvV2ViaG9vay9JbmRleCIsImV4cCI6MTYyNTM0MDMxNywiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo2MzkzOS8ifQ\"\n}"},{"id":"fa104c6a-728f-433e-80f5-d1f85447b8ec","name":"Example 401 Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Ocp-Apim-Subscription-Key","value":"premium-key","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"accessToken\": \"{{accessToken}}\",\n    \"accessTokenSecret\": \"{{accessSecret}}\",\n    \"tenant\": \"{{tenant}}\"\n}"},"url":"{{endpoint}}/api/LynnService/CreateToken"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Request-Context","value":"appId=cid-v1:ca973457-5e55-4f7a-94c5-ace1063ec0ad"},{"key":"X-Azure-Ref","value":"0JiPeYAAAAABI4Rr1wJ/AQLNIdRH9qMTgU0NMMzBFREdFMDIxMgBlZTI5NTI2My0xNjhkLTQ0MzgtYjE0MC02Y2RlMzllNzkyMzU="}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"4f668db0-ef21-426f-8771-8081051d6d99"}]}