{"info":{"_postman_id":"725c1a26-662a-bded-faff-ff7df657030a","name":"iPresso API docs EN","description":"<html><head></head><body><p>Until the end of 2025, the old headers <code>USER_AGENT</code> and <code>IPRESSO_TOKEN</code> will be supported. After that, only the new headers <code>User-Agent</code> and <code>Ipresso-Token</code> will be accepted.</p>\n<p>iPresso API is based on REST architecture. It supports <code>GET</code>, <code>POST</code> , <code>PUT</code> and <code>DELETE</code> requests.<br>iPresso responds with data in JSON format. The response includes field <code>code</code>, which specifies if the request was successful and informs about encountered errors.<br>Error codes are compatible with the <code>HTTP</code> status. The response also includes <code>message</code>, which contains written description of the code and <code>data</code>, which contains data. API discerns headers, therefore it is not possible to send requests via web browser.</p>\n<blockquote>\n<p>In order for the coding to be correct <code>UTF-8</code>should be used. </p>\n</blockquote>\n<blockquote>\n<p>The data format passed in calls is: <code>Content-Type: application/x-www-form-urlencoded</code> </p>\n</blockquote>\n<blockquote>\n<p>The current version of the iPresso API is 2.0. </p>\n</blockquote>\n<p>See the following examples:</p>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the URL address of iPresso. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with contact’s ID. </p>\n</blockquote>\n<p>Also, when you're working on the implementation, make sure to check out the <strong>Limits</strong> and <strong>Error Codes</strong> section.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1716599","collectionId":"725c1a26-662a-bded-faff-ff7df657030a","publishedId":"RWaDVW1e","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-11-02T10:07:23.000Z"},"item":[{"name":"Authentication","item":[{"name":" How to get a token","id":"f50c791d-6f8e-e2cc-66e0-49f3e360acd5","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Authorization","value":"Basic <credentials>"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/auth/CUSTOMER_KEY","description":"<p>In order to gain temporary API key, send <code>GET</code> request to the url address <code>https://CLIENT_PANEL_ADDRESS/api/2/auth/CUSTOMER_KEY</code>. <code>CLIENT_PANEL_ADDRESS</code> should be replaced with your own iPresso address. <code>CUSTOMER_KEY</code> should be replaced with the key assigned to proper iPresso account. API user’s access data - <code>login</code> and <code>password</code> - should also be given.</p>\n<p>Access data of API user - login and password - must also be transferred. The received <code>Ipresso-Token</code> will be returned in the <code>data</code> field.</p>\n<blockquote>\n<p><code>CUSTOMER_KEY</code> should be retrieved from iPresso's panel: System -&gt; System accesses -&gt; API Users -&gt; API Users. </p>\n</blockquote>\n<blockquote>\n<p><code>Ipresso-Token</code> is required in each request to iPresso API. Its value should be included in the heading as <code>Ipresso-Token:HASH</code>, where HASH is equal to the value of the <code>data</code> field.<br />In iPresso panel settings (System -&gt; System accesses -&gt; API Users -&gt; API Users) you may set up time periods in which the <code>Ipresso-Token</code> is to be valid. Additionally, you may use the option that, depending on the value selected in the settings, will return the same or a different <code>Ipresso-Token</code> (System -&gt; System accesses -&gt; API Users -&gt; API Users).</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","auth","CUSTOMER_KEY"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"c97c834a-9e0e-6cf0-4609-10309744a0cf","name":"Authentication - success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Authorization","value":"Basic <credentials>"}],"body":{"mode":"raw","raw":""},"url":"https://CLIENT_PANEL_ADDRESS/api/2/auth/CUSTOMER_KEY"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-store, no-cache, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"content-encoding","value":"gzip","description":"The type of encoding used on the data."},{"key":"content-length","value":"88","description":"The length of the response body in octets (8-bit bytes)"},{"key":"content-type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"date","value":"Thu, 28 Sep 2017 08:25:36 GMT","description":"The date and time that the message was sent"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","description":"Gives the date/time after which the response is considered stale"},{"key":"pragma","value":"no-cache","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"vary","value":"Accept-Encoding","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"x-content-type-options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"}],"cookie":[],"responseTime":"361","body":"{\"code\":200,\"data\":\"72d5b935a85b6e7366ddd0d3b6db14c9\",\"message\":\"OK\"}"},{"id":"ddd6eb27-3c2b-6826-21a8-064b5a0f934e","name":"Authentication - error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Authorization","value":"Basic <credentials>"}],"body":{"mode":"raw","raw":""},"url":"https://CLIENT_PANEL_ADDRESS/api/2/auth/CUSTOMER_KEY"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-store, no-cache, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"content-length","value":"59","description":"The length of the response body in octets (8-bit bytes)"},{"key":"content-type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"date","value":"Thu, 28 Sep 2017 08:30:33 GMT","description":"The date and time that the message was sent"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","description":"Gives the date/time after which the response is considered stale"},{"key":"pragma","value":"no-cache","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"x-content-type-options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"}],"cookie":[],"responseTime":"98","body":"{\"code\":401,\"message\":\"Unauthorized: Wrong customer token\"}"}],"_postman_id":"f50c791d-6f8e-e2cc-66e0-49f3e360acd5"}],"id":"0a7072dc-2e23-4451-db4f-5f4d3632c229","_postman_id":"0a7072dc-2e23-4451-db4f-5f4d3632c229","description":""},{"name":"Contacts","item":[{"name":"Collect contact’s data with a given ID number","id":"e3b7f9c4-54f7-28c3-b0f9-74d5bdeaf5d5","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT","description":"<p>In order to collect contact's data send <code>GET</code> request to the URL:<br /><code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT</code></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td>Key of contact's type</td>\n</tr>\n<tr>\n<td>fname</td>\n<td>First name</td>\n</tr>\n<tr>\n<td>lname</td>\n<td>Last name</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Own name</td>\n</tr>\n<tr>\n<td>email</td>\n<td>E-mail address</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>Landline phone number</td>\n</tr>\n<tr>\n<td>mobile</td>\n<td>Mobile phone number</td>\n</tr>\n<tr>\n<td>company</td>\n<td>Name of company</td>\n</tr>\n<tr>\n<td>workPosition</td>\n<td>Job position</td>\n</tr>\n<tr>\n<td>city</td>\n<td>City</td>\n</tr>\n<tr>\n<td>postCode</td>\n<td>Post code</td>\n</tr>\n<tr>\n<td>street</td>\n<td>Street</td>\n</tr>\n<tr>\n<td>buildingNumber</td>\n<td>Building number</td>\n</tr>\n<tr>\n<td>flatNumber</td>\n<td>Flat number</td>\n</tr>\n<tr>\n<td>country</td>\n<td>Country</td>\n</tr>\n<tr>\n<td>leadScoring</td>\n<td>Scoring points attributed to a contact</td>\n</tr>\n<tr>\n<td>category</td>\n<td>Associative array with a pair - category ID =&gt; category status, where 1 = add category, 2 = delete category</td>\n</tr>\n<tr>\n<td>tag</td>\n<td>One-dimensional array containing tags</td>\n</tr>\n<tr>\n<td>agreement</td>\n<td>Associative array with a pair - consent IDs =&gt; consent status, where 1 = add consent, 2 = delete consent</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"monitoring-a-contact-monitoring-v1\"><strong>Monitoring a Contact (Monitoring v1)</strong></h3>\n<blockquote>\n<p>The ability to track a contact in the browser will only be possible after it has been monitored.<br />To do this, display a tracking pixel to the contact in the browser (as an image in the <code>IMG</code> tag). The pixel address is returned in the <code>monitoringPixel</code> field.<br />It is also possible to display an <code>IFRAME</code> tag whose code is returned in the <code>monitoringCode</code> field, or to create your own <code>IFRAME</code> code using the address returned in the <code>monitoringLink</code> field. </p>\n</blockquote>\n<blockquote>\n<p>All returned data for contact monitoring is immutable and can be saved so that there is no need to re-download it. Monitoring should occur whenever possible upon each login or return to the website, as users may change browsers/devices. </p>\n</blockquote>\n<h3 id=\"monitoring-a-contact-monitoring-v2\"><strong>Monitoring a Contact (Monitoring v2)</strong></h3>\n<blockquote>\n<p>The ability to track a contact in the browser will only be possible after it has been monitored. </p>\n</blockquote>\n<blockquote>\n<p>To do this, use the setContactId method <a href=\"https://js-api-doc.ipresso.pl/methods/identification/set-contact-id\">https://js-api-doc.ipresso.pl/methods/identification/set-contact-id</a> </p>\n</blockquote>\n<blockquote>\n<p>This method should be passed the value returned in the <code>hashIdContact</code> field as a parameter. </p>\n</blockquote>\n<blockquote>\n<p>All returned contact tracking data is immutable and can be saved, eliminating the need to re-download it. Tracking should occur whenever possible upon each login or return to the website, as users may change browsers or devices. </p>\n</blockquote>\n<h3 id=\"dynamic-attributes\">Dynamic attributes</h3>\n<blockquote>\n<p>Method that retrieves a contact returns static attributes (described in the table) and all the dynamic attributes (created by client) along with values ascribed to a contact.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"64ddbd49-410a-27c5-360c-6a9446824e79","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"821","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 08:49:39 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"498","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"contact\": {\n            \"idContact\": 154,\n            \"fname\": \"Fname\",\n            \"lname\": \"Lname\",\n            \"vocative\": \"\",\n            \"name\": \"\",\n            \"email\": \"test@ipresso.com\",\n            \"invalidEmail\": \"0\",\n            \"phone\": \"\",\n            \"mobile\": \"123456789\",\n            \"postCode\": false,\n            \"street\": false,\n            \"buildingNumber\": false,\n            \"flatNumber\": false,\n            \"city\": false,\n            \"country\": false,\n            \"www\": false,\n            \"workPosition\": \"\",\n            \"company\": false,\n            \"createDate\": \"2018-10-12 09:28:35\",\n            \"modifyTime\": false,\n            \"leadScoring\": \"0\",\n            \"type\": false,\n            \"agreement\": {\n                \"1\": \"I agree to receive marketing information\"\n            },\n            \"category\": [],\n            \"tag\": [],\n            \"contactMonitoringIframe\": \"<iframe frameborder=\\\"0\\\" src=\\\"CLIENT_PANEL_ADDRESS/contactcookie/6m3dzoqpr8JENviKTJCMdxJXicwrC8iWusoQFeGBL0I./dfe5db49db65273ca4daa73e1ecb8cac\\\" style=\\\"border: none; display:none; width:0px; height:0px;\\\"></iframe>\",\n            \"monitoringLink\": \"https://CLIENT_PANEL_ADDRESS/contactcookie/6m3dzoqpr8JENviKTJCMdxJXicwrC8iWusoQFeGBL0I./dfe5db49db65273ca4daa73e1ecb8cac\",\n            \"monitoringPixel\": \"https://CLIENT_PANEL_ADDRESS/systemnc/contactcookiepixel/6m3dzoqpr8JENviKTJCMdxJXicwrC8iWusoQFeGBL0I./dfe5db49db65273ca4daa73e1ecb8cac.png\",\n            \"hashIdContact\": \"6m3dzoqpr8JENviKTJCMdxJXicwrC8iWusoQFeGBL0I.\",\n            \"profilePageUrl\": {\n                \"1\": \"https://CLIENT_PANEL_ADDRESS/contact/profile/show/ckd4M1JNVUFwejJJYUFzS0F0V1BEdz09/6m3dzoqpr8JENviKTJCMdxJXicwrC8iWusoQFeGBL0I.\",\n                \"2\": \"https://CLIENT_PANEL_ADDRESS/contact/profile/show/WmluWjRQbjg0bEI1dFVFMkNCNGpOZz09/6m3dzoqpr8JENviKTJCMdxJXicwrC8iWusoQFeGBL0I.\"\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"ae48f8c4-5d9d-8e18-c2ee-0523abf52fdf","name":"Error-Not Found","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"83","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 08:50:55 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"183","body":"{\"code\":404,\"message\":\"Not valid idContact - Not Found\",\"errorCode\":44}"}],"_postman_id":"e3b7f9c4-54f7-28c3-b0f9-74d5bdeaf5d5"},{"name":"Collecting tags for a contact","id":"2b80736c-0668-ad28-aae3-c2175bcd385c","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"data[tag][0]","value":"02.10.2017_Wojtek_wysylkamailiWW_TAK"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/tag","description":"<p>In order to collect contact's tags you should send <code>GET</code> request to the URL:\n <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/tag</code></p>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","tag"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"aff721f8-fba1-f46f-ae65-239129401618","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"data[tag][0]","value":"02.10.2017_Wojtek_wysylkamailiWW_TAK"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/tag"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"104","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 09:43:07 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"191","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"tag\": {\n            \"161\": \"test_TAG\"\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"9eb77ccf-db82-e386-079e-35dbeef9493b","name":"Error - Not Found","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"data[tag][0]","value":"02.10.2017_Wojtek_wysylkamailiWW_TAK"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/tag"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:05:21 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"386","body":"{\"code\":404,\"message\":\"Not Found\"}"}],"_postman_id":"2b80736c-0668-ad28-aae3-c2175bcd385c"},{"name":"Get activities of a given contact","id":"6b572d86-82b7-6173-a02d-d5de1f8045dc","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/activity","description":"<p>In order to get available activities of a given contact send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/activity/</code></p>\n<p> In the case of getting large number of activities assigned to a contact, the system will respond with just the first page of 50 records. In order to see other pages it is necessary to define which page is to be displayed by adding parameter <code>?page=N</code> where <code>N</code> corresponds to the number of the page: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/activity?page=2</code></p>\n<p> Meaning of the returned <code>id_connection</code> parameter for specific activities:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Activity API key</th>\n<th><em>id_connection</em> parameter meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>_accept_agreement</td>\n<td>consent ID</td>\n</tr>\n<tr>\n<td>agreement_unsubscribe</td>\n<td>consent ID</td>\n</tr>\n<tr>\n<td>pageview_on_monitored</td>\n<td>monitoring site ID</td>\n</tr>\n<tr>\n<td>open_mail</td>\n<td>message ID</td>\n</tr>\n<tr>\n<td>__contact_facebookmessenger</td>\n<td>campaign ID</td>\n</tr>\n<tr>\n<td>enter_survey</td>\n<td>survey ID</td>\n</tr>\n<tr>\n<td>fill_survey</td>\n<td>survey ID</td>\n</tr>\n<tr>\n<td>enter_lp</td>\n<td>landing page ID</td>\n</tr>\n<tr>\n<td>download_file</td>\n<td>file ID</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","activity"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"b0f8c210-7f27-52d6-1054-8bace922a41f","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIz"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/activity/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"839","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 11:07:51 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"139","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"activity\": [\n            {\n                \"activity_name\": \"ACTIVITY_NAME_1\",\n                \"activity_key\": \"ACTIVITY_KEY_1\",\n                \"activity_date\": \"2017-10-03T12:58:26\",\n                \"id_connection\": 268,\n                \"title\": null,\n                \"params\": [\n                    {\n                        \"param_name\": \"ACTIVITY_PARAM_NAME_1\",\n                        \"param_key\": \"ACTIVITY_PARAM_KEY_2\",\n                        \"param_type\": \"1\",\n                        \"param_value\": 99\n                    }\n                ]\n            },\n            {\n                \"activity_name\": \"ACTIVITY_NAME_2\",\n                \"activity_key\": \"ACTIVITY_KEY_1\",\n                \"activity_date\": \"2017-10-03T12:56:48\",\n                \"id_connection\": \"\",\n                \"title\": null,\n                \"params\": [\n                    {\n                        \"param_name\": \"ACTIVITY_PARAM_NAME_1\",\n                        \"param_key\": \"ACTIVITY_PARAM_KEY_2\",\n                        \"param_type\": \"1\",\n                        \"param_value\": 99\n                    }\n                ]\n            }\n        ]\n    },\n    \"message\": \"OK\"\n}"},{"id":"b7ec83d0-d82e-ccfe-8d1f-d335ab38a5b2","name":"Error-Not Found","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIz"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/activity/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"60","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 11:09:27 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"186","body":"{\"code\":404,\"data\":{\"activity\":false},\"message\":\"Not Found\"}"}],"_postman_id":"6b572d86-82b7-6173-a02d-d5de1f8045dc"},{"name":"Get actions of a contact","id":"a7e6069c-4fd5-4593-28f1-fe724d2f229c","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/action","description":"<p>In order to get contact’s activities send GET request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/action</code></p>\n<p>In the case of getting large number of activities assigned to a contact, the system will respond with just the first page of 50 records. In order to see other pages it is necessary to define which page is to be displayed by adding parameter <code>?page=N</code> where <code>N</code> corresponds to the number of the page, e.g.: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/action?page=2</code></p>\n<p>Meaning of the returned <code>id_connection</code> parameter for specific actions:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Action API key</th>\n<th><em>id_connection</em> parameter meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>agreement_delete</td>\n<td>consent ID</td>\n</tr>\n<tr>\n<td>contact_mail</td>\n<td>campaign ID</td>\n</tr>\n<tr>\n<td>contact_sms</td>\n<td>campaign ID</td>\n</tr>\n<tr>\n<td>contact_voice</td>\n<td>campaign ID</td>\n</tr>\n<tr>\n<td>__contact_webpush</td>\n<td>campaign ID</td>\n</tr>\n<tr>\n<td>__contact_mobilepush</td>\n<td>campaign ID</td>\n</tr>\n<tr>\n<td>enter_algorithm</td>\n<td>scenario ID</td>\n</tr>\n<tr>\n<td>__contact_invalid_mail</td>\n<td>message ID</td>\n</tr>\n<tr>\n<td>__contact_invalid_mobile</td>\n<td>message ID</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","action"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"598c4e41-805e-e29c-03ac-062a16acf122","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/action"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"948","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:19:11 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"183","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"activity\": [\n            {\n                \"activity_name\": \"Expressing marketing consent\",\n                \"activity_key\": \"_accept_agreement\",\n                \"activity_date\": \"2017-10-03T14:55:23\",\n                \"id_connection\": 268,\n                \"title\": null,\n                \"params\": [\n                    {\n                        \"param_name\": \"AcceptAgreementType\",\n                        \"param_key\": \"_accept_agreement_type\",\n                        \"param_type\": \"4\",\n                        \"param_value\": \"refresh\"\n                    },\n                    {\n                        \"param_name\": \"AcceptAgreementOrigin\",\n                        \"param_key\": \"_accept_agreement_origin\",\n                        \"param_type\": \"4\",\n                        \"param_value\": \"api\"\n                    }\n                ]\n            }\n        ]\n    },\n    \"message\": \"OK\"\n}"},{"id":"979fa430-3991-ed22-7ab1-78371aad092b","name":"Error-Not Found","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/action"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"60","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:20:13 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"142","body":"{\"code\":404,\"data\":{\"activity\":false},\"message\":\"Not Found\"}"}],"_postman_id":"a7e6069c-4fd5-4593-28f1-fe724d2f229c"},{"name":"Get category for a contact","id":"5d503c3f-a60a-e6c4-9310-3b9c9d4561fd","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https:/CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/category","description":"<p>In order to get a category for a contact send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/category</code></p>\n","urlObject":{"port":"","path":["CLIENT_PANEL_ADDRESS","api","2","contact","ID_CONTACT","category"],"host":["https"],"query":[],"variable":[]}},"response":[{"id":"1d36a8f8-3df1-7afa-8ab7-3eaad35b845f","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https:/CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/category"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"60","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 10:55:11 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"216","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"category\": {\n            \"1\": \"CATEGORY\"\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"0cc03a4f-3a43-a7e5-7ad5-c89d27744745","name":"Error-Not Found","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https:/CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/category"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"57","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 10:54:18 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"188","body":"{\"code\":404,\"data\":{\"category\":[]},\"message\":\"Not Found\"}"}],"_postman_id":"5d503c3f-a60a-e6c4-9310-3b9c9d4561fd"},{"name":"Get integration of the contact","id":"81108b5b-cfbb-997d-6b94-5fabbbac65f8","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/integration","description":"<p>In order to get contacts integration send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/integration</code></p>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","integration"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"04af718e-6a55-a187-282f-037538dc5783","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/integration"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"63","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 11:15:00 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"143","body":"[\n {\n  \"code\":200,\n  \"data\":\n         {\n          \"integration\":\n                        {\n                         \"id_salesforce\":\"1\",\n                         \"id_sugarcrm\":\"2\",\n                         \"id_contactually\":\"3\",\n                         \"id_livespace\":\"4\",\n                         \"id_zohocrm\":\"5\",\n                         \"id_insightly\":\"6\",\n                         \"id_basecrm\":\"7\",\n                         \"id_leaddesk\":\"8\",\n                         \"id_prestashop\":\"9\"\n                        }\n         },\n  \"message\":\"OK\"\n }\n]"},{"id":"de4c5b66-93f5-b590-df7f-885b33bd819a","name":"Error-Not Found","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/integration"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"63","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 11:10:58 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"229","body":"{\"code\":404,\"data\":{\"integration\":false},\"message\":\"Not Found\"}"}],"_postman_id":"81108b5b-cfbb-997d-6b94-5fabbbac65f8"},{"name":"Get contact’s consents","id":"61c6acba-9a81-bc92-3f36-b00b903d83f3","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADRESS/api/2/contact/ID_CONTACT/agreement","description":"<p>In order to get contact’s consents send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/agreement/</code></p>\n<p>The <code>changeDates</code> section will be deprecated in the future; all consent details can be found in the <code>consents</code> field .</p>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","agreement"],"host":["CLIENT_PANEL_ADRESS"],"query":[],"variable":[]}},"response":[{"id":"e9e884b7-df69-593b-60a9-1600f23cfdad","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/agreement/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"130","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 11:27:34 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"3175","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"agreement\": {\n            \"agreements\": {\n                \"1\": \"I agree to receive marketing information\",\n            \"changeDates\": [],\n            \"consents\": \n                {\n                    \"id_agreement\": 1,\n                    \"apiKey\": \"agreement_api_key\",\n                    \"consentGiven\": true,\n                    \"optOut\": {\n                        \"date\": \"2026-03-25 10:49:26\",\n                        \"origin\": \"contactmanager\",\n                        \"externalSource\": null\n                    }\n            \n        }\n    },\n    \"message\": \"OK\"\n}\n\n"},{"id":"e8a7e45a-b624-4cac-6fdb-2219a25cc148","name":"Error-Not found","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/agreement/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"95","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 12:48:10 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"338","body":"{\n    \"code\": 404,\n    \"data\": {\n        \"agreement\": {\n            \"agreements\": [],\n            \"changeDates\": [],\n            \"consents\": []\n        }\n    },\n    \"message\": \"Not Found\"\n}"}],"_postman_id":"61c6acba-9a81-bc92-3f36-b00b903d83f3"},{"name":"Get contact's consents in group","id":"e2566e5b-a7d2-4071-bbd5-baeab73e94e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/agreement/group/API_GROUP_KEY","description":"<p>In order to get contact’s consents in group send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/agreement/group/API_GROUP_KEY</code></p>\n<blockquote>\n<p>Parameter <code>API_GROUP_KEY</code> should be replaced with api key of a chosen consent group. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with contact ID number. </p>\n</blockquote>\n<p>The <code>changeDates</code> section will be deprecated in the future; all consent details can be found in the <code>consents</code> field.</p>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","agreement","group","API_GROUP_KEY"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"9094b839-19dd-4db7-af5c-5c5a8c5d9e97","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/agreement/group/API_GROUP_KEY"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Aug 2019 09:51:00 GMT"},{"key":"X-Powered-By","value":"PHP/7.0.25"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"X-XSS-Protection","value":"1"},{"key":"Content-Security-Policy","value":"default-src * 'unsafe-inline' 'unsafe-eval' data:; img-src * 'self' data: blob:;"},{"key":"X-Frame-Options","value":"deny"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"104"},{"key":"Content-Type","value":"text/json;charset=UTF-8"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": {\n        \"agreement\": {\n            \"agreements\": {\n                \"28\": \"AGREEMENT_NAME\"\n            },\n\t\t\t\"changeDates\": {\n                \"28\": \"2019-08-28 11:50:40\"\n            }\n            \"consents\": {\n                \n                    \"id_agreement\": 1,\n                    \"apiKey\": \"marketing_consent\",\n                    \"consentGiven\": false,\n                    \"optOut\": {\n                        \"date\": \"2026-03-25 10:49:26\",\n                        \"origin\": \"contactmanager\",\n                        \"externalSource\": null\n                    },\n                    \"optIn\": {\n                        \"date\": \"2026-03-25 10:49:28\",\n                        \"origin\": \"api\",\n                        \"externalSource\": null\n                    }\n                }\n        }\n    },\n    \"message\": \"OK\"\n}\n"},{"id":"55252f03-e7ee-46a7-b405-b921efc427b5","name":"Error - 404","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/agreement/group/API_GROUP_KEY"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Aug 2019 09:51:00 GMT"},{"key":"X-Powered-By","value":"PHP/7.0.25"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"X-XSS-Protection","value":"1"},{"key":"Content-Security-Policy","value":"default-src * 'unsafe-inline' 'unsafe-eval' data:; img-src * 'self' data: blob:;"},{"key":"X-Frame-Options","value":"deny"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"104"},{"key":"Content-Type","value":"text/json;charset=UTF-8"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"data\": {\n        \"agreement\": {\n            \"agreements\": [],\n            \"changeDates\": [],\n            \"consents\": []\n        }\n    },\n    \"message\": \"Not Found\"\n}"}],"_postman_id":"e2566e5b-a7d2-4071-bbd5-baeab73e94e3"},{"name":"Get connections between contacts","id":"410de216-761a-682d-4465-13e9eb15d67c","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/connection","description":"<p>In order to get connections between contacts send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/connection</code></p>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","connection"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"cd2b01d3-2607-5948-ecd6-e48e1a95524a","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/connection"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"60","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:59:59 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"75","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"connection\": [\n            \"ID_CONTACT_CONNECT\"\n        ]\n    },\n    \"message\": \"OK\"\n}"},{"id":"04851102-2411-5afb-7e13-0eaab6c35d63","name":"Success-false","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/connection"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"55","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:35:41 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"114","body":"{\"code\":200,\"data\":{\"connection\":false},\"message\":\"OK\"}"}],"_postman_id":"410de216-761a-682d-4465-13e9eb15d67c"},{"name":"Get contact attributes","id":"270a207d-5368-b86a-510e-6829d1b22b10","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/attribute","description":"<p>In order to get contact attributes send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/attribute</code></p>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","attribute"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"80c2913c-2f82-e188-dc2c-101548af99a5","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/attribute"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"459","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:50:12 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"480","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"attribute\": {\n            \"email\": \"test@ipresso.com\",\n            \"fname\": \"Fname\",\n            \"lname\": \"Lname\",\n            \"name\": \"\",\n            \"contactType\": \"main_contact\",\n            \"phone\": \"\",\n            \"mobile\": \"123123123\",\n            \"city\": false,\n            \"postCode\": \"\",\n            \"street\": \"\",\n            \"buildingNumber\": \"\",\n            \"flatNumber\": \"\",\n            \"country\": false,\n            \"www\": \"\",\n            \"createDate\": \"2017-10-02 13:44:26\",\n            \"modifyTime\": \"2017-10-02 13:49:11\"\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"07cda275-e393-ceea-c60a-4946fb61b3b1","name":"Error-Not Found","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/attribute"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"83","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:51:06 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"137","body":"{\"code\":404,\"message\":\"Not valid idContact - Not Found\",\"errorCode\":44}"}],"_postman_id":"270a207d-5368-b86a-510e-6829d1b22b10"},{"name":"Get contact types","id":"879b0763-a0b8-8e02-9b1b-82d6642800b8","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/type","description":"<p>In order to get contact’s type send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADRESS/api/2/contact/ID_CONTACT/type</code></p>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","type"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"905b2e3f-3e64-80d8-d320-54fe5e1d1a58","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/type"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"494","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:25:59 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"157","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"type\": {\n            \"id\": \"1\",\n            \"name\": \"kontakt podstawowy\",\n            \"key\": \"main_contact\",\n            \"systemAttributes\": [\n                {\n                    \"id\": \"1\",\n                    \"dict_name\": \"loginTitle\",\n                    \"attr_key\": \"login\"\n                }\n            ],\n            \"attributes\": [\n                {\n                    \"id\": \"9\",\n                    \"name\": \"IQ\",\n                    \"key\": \"IQ_key\"\n                }\n            ]\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"073a9b74-50a9-1706-1749-24c358c8645c","name":"Error-Not Found","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/type"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"56","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:26:50 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"87","body":"{\"code\":404,\"data\":{\"type\":false},\"message\":\"Not Found\"}"}],"_postman_id":"879b0763-a0b8-8e02-9b1b-82d6642800b8"},{"name":"Get contact profile pages","id":"9d477a7d-ea96-754f-e8ca-92160cb916b5","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/CONTACT_ID/profilepage","description":"<p>In order to get contact profile pages send <code>GET</code> request to the URL:  <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/profilepage</code></p>\n","urlObject":{"protocol":"https","path":["api","2","contact","CONTACT_ID","profilepage"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"21a5b335-714e-267e-b746-e71fef14a5ef","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/CONTACT_ID/profilepage"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-encoding","value":"gzip","description":"The type of encoding used on the data."},{"key":"content-length","value":"197","description":"The length of the response body in octets (8-bit bytes)"},{"key":"content-type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"date","value":"Tue, 03 Apr 2018 09:56:44 GMT","description":"The date and time that the message was sent"},{"key":"vary","value":"Accept-Encoding","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"x-content-type-options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"x-powered-by","value":"PHP/7.0.25","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":"166","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"profilepages\": {\n            \"2\": \"https://CLIENT_PANEL_ADDRESS/contact/profile/show/WmluWjRQbjg0bEI1dFVFMkNCNGpOZz09/GY2g3o07NmZInC8VTQKdt_Cz3UfG9NBR4opmOcPrq9Q.\"\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"c268c4c0-eab7-f4c6-aa7e-0fed04ab9c01","name":"Error 404","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/CONTACT_ID/profilepage"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"50","description":"The length of the response body in octets (8-bit bytes)"},{"key":"content-type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"date","value":"Tue, 03 Apr 2018 10:39:59 GMT","description":"The date and time that the message was sent"},{"key":"x-content-type-options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"x-powered-by","value":"PHP/7.0.25","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":"120","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":101}"}],"_postman_id":"9d477a7d-ea96-754f-e8ca-92160cb916b5"},{"name":"Get contact's data with a given hash ID","id":"ebe34582-304c-4137-a302-f1d1d880dc3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/longName/hash","description":"<p>In order to decode the contact's hash ID, send a GET request to the following URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/longName/hash.</code></p>\n<blockquote>\n<p>The <code>longName</code> parameter should be replaced with a monitored contact's hash ID.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact","longName","hash"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"9947fd90-ca0a-4234-b53a-cd4ba83f1186","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/longName/hash"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"56","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 09:21:49 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":200,\"data\":{\"id_contact\":306157},\"message\":\"OK\"}"},{"id":"d72b6304-7d5f-4e96-801c-aa76414fabf8","name":"Error","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/longName/hash"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"95","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 09:23:13 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":400,\"message\":\"B\\u0142\\u0105d w trakcie dekodowania hasha\",\"errorCode\":78}"}],"_postman_id":"ebe34582-304c-4137-a302-f1d1d880dc3e"},{"name":"Edition of a contact with a given ID number","id":"202c606c-dbfe-57cd-2c2c-9749ada93e63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[type]","value":"ContactType","description":"<p>Contact type api key</p>\n"},{"key":"contact[fname]","value":"FirstName","description":"<p>First name</p>\n"},{"key":"contact[lname]","value":"LastName","description":"<p>Last name</p>\n"},{"key":"contact[name]","value":"OwnName","description":"<p>Own name</p>\n"},{"key":"contact[email]","value":"test@ipresso.com","description":"<p>e-mail</p>\n"},{"key":"contact[phone]","value":"123123123","description":"<p>Landline phone number</p>\n"},{"key":"contact[mobile]","value":"321321321","description":"<p>Mobile phone number</p>\n"},{"key":"contact[company]","value":"CompanyName","description":"<p>Name of company</p>\n"},{"key":"contact[city]","value":"Warsaw","description":"<p>City</p>\n"},{"key":"contact[postCode]","value":"00-001","description":"<p>Post code</p>\n"},{"key":"contact[street]","value":"streetName","description":"<p>Street name</p>\n"},{"key":"contact[buildingNumber]","value":"1","description":"<p>Building number</p>\n"},{"key":"contact[flatNumber]","value":"2","description":"<p>Flat number</p>\n"},{"key":"contact[country]","value":"Poland","description":"<p>Country</p>\n"},{"key":"contact[0][region]","value":"Province","description":"<p>Province</p>\n","type":"text"},{"key":"contact[agreement][1]","value":"1","description":"<p>Associative array with a pair - consent IDs or API key =&gt; consent status, where 1 = add consent, 2 = delete consent</p>\n"},{"key":"contact[tag][0]","value":"tag1","description":"<p>One-dimensional array containing tag</p>\n"},{"key":"contact[category][1]","value":"1","description":"<p>Associative array with a pair - category ID =&gt; category status, where 1 = add category, 2 = delete category</p>\n"},{"key":"contact[category][3]","value":"1","description":"<p>Associative array with a pair - category ID =&gt; category status, where 1 = add category, 2 = delete category</p>\n"},{"key":"contact[dynamicAttributeString]","value":"string","description":"<p>String dynamic attribute with the dynamicAttributeString key</p>\n"},{"key":"contact[dynamicAttributeInt]","value":"1","description":"<p>Dynamic attribute of type Int with the key dynamicAttributeInt</p>\n"},{"key":"contact[dynamicAttributecheckbox]","value":"1","description":"<p>Dynamic attribute of type Bool (checkbox true / false) with the key dynamicAttributecheckbox</p>\n"},{"key":"contact[dynamicAttributeSelect]","value":"selectOption1","description":"<p>Dynamic attribute of type Select (one of many) with the key dynamicAttributeSelect</p>\n"},{"key":"contact[dynamicAttributeMultiselect][0]","value":"multiselectOption1","description":"<p>Dynamic attribute of the Multiselect type (many of many) with the dynamicAttributeMultiselect key</p>\n"},{"key":"contact[dynamicAttributeMultiselect][1]","value":"multiselectOption2","description":"<p>Dynamic attribute of the Multiselect type (many of many) with the dynamicAttributeMultiselect key</p>\n"},{"key":"contact[dynamicAttributeText]","value":"text","description":"<p>Dynamic attribute of the Text type with the dynamicAttributeText key</p>\n"},{"key":"contact[dynamicAttributeDate]","value":"2017-01-01","description":"<p>Dynamic attribute of the Date type (YYYY-MM-DD) with the dynamicAttributeDate key</p>\n"},{"key":"contact[dynamicAttributeDateTime]","value":"2017-01-01 00:00","description":"<p>Dynamic attribute type Date and Time (YYYY-MM-DD HH: MM) with the dynamicAttributeDateTime key</p>\n"},{"key":"contact[dynamicAttributeTime]","value":"00:00","description":"<p>Dynamic attribute of Time type (HH: MM) with the dynamicAttributeTime key</p>\n"},{"key":"contact[facebook][id]","value":"1","description":"<p>Facebook ID</p>\n"},{"key":"contact[facebook][name]","value":"User Name","description":"<p>User name</p>\n"},{"key":"contact[facebook][first_name]","value":"FirstName","description":"<p>First name</p>\n"},{"key":"contact[facebook][last_name]","value":"LastName","description":"<p>Last name</p>\n"},{"key":"contact[source][utm_campaign]","value":"utm_campaign_test","description":"<p>UTM campaign name</p>\n"},{"key":"contact[source][utm_content]","value":"utm_content_test  ","description":"<p>UTM campaign content</p>\n"},{"key":"contact[source][utm_medium]","value":"utm_medium_test","description":"<p>UTM campaign medium</p>\n"},{"key":"contact[source][utm_source]","value":"utm_source_test","description":"<p>UTM campaign source</p>\n"},{"key":"contact[source][utm_term]","value":"utm_source_test","description":"<p>UTM campaign source</p>\n"},{"key":"contact[0][consents][apiKey]","value":"api_key_test","description":"<p>Consent Api Key</p>\n","type":"text","uuid":"afd64e74-eeb6-4d36-b846-fa1bb01f48a7"},{"key":"contact[0][consents][consentGiven]","value":"1","description":"<p>Information on whether consent is granted: true for granted, false for not granted.</p>\n","type":"text","uuid":"a8ab003a-1873-472d-8730-a30c770e892d"},{"key":"contact[0][consents][externalSource]","value":"external_source_test","description":"<p>Information about the consent source. This is an optional parameter that allows specifying where the consent was obtained or revoked.</p>\n","type":"text","uuid":"d7d1563b-bf5d-41c2-82f8-814ec31523fb"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT","description":"<p>In order to edit contact’s data send <code>PUT</code> request to the URL:<br /><code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT</code>. Edition allows for sending the same fields as in the case of adding new contacts.</p>\n<blockquote>\n<p>In order to clear field for a given contact, enter <code>API_NULL</code> as its content. Only the fields with specified value are changed, e.g. string type field has to he different than „“ </p>\n</blockquote>\n<p>Editing a contact by the iPresso API allows you to edit only one contact.</p>\n<h3 id=\"attribute-validation\">Attribute validation</h3>\n<blockquote>\n<p>When sending contact attributes, e.g. <code>city</code> or <code>email</code>, the validation used in the ipresso panel should be used. For example, for the <code>city</code> attribute, the allowed characters are: letters, numbers, spaces and special characters: - _ &amp; ( ) [ ]<br />Using other characters will cause the request to fail.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"535a354b-dddb-8918-af7c-2fe397a35692","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"ACCEPT","value":"application/x-www-form-urlencoded","disabled":true},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIp","disabled":true}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[type]","value":"ContactType","description":"Klucz typu kontaktu"},{"key":"contact[fname]","value":"FirstName","description":"Imię"},{"key":"contact[lname]","value":"LastName","description":"Nazwisko"},{"key":"contact[name]","value":"OwnName","description":"Nazwa własna"},{"key":"contact[email]","value":"test@ipresso.com","description":"Adres e-mail"},{"key":"contact[phone]","value":"123123123","description":"Numer telefou stacjonarnego"},{"key":"contact[mobile]","value":"321321321","description":"Numer telefonu komórkowego"},{"key":"contact[company]","value":"CompanyName","description":"Nazwa firmy"},{"key":"contact[city]","value":"Warsaw","description":"Miasto"},{"key":"contact[postCode]","value":"00-001","description":"Kod pocztowy"},{"key":"contact[street]","value":"streetName","description":"Nazwa ulicy"},{"key":"contact[buildingNumber]","value":"1","description":"Numer budynku"},{"key":"contact[flatNumber]","value":"2","description":"Numer mieszkania"},{"key":"contact[country]","value":"Poland","description":"Kraj"},{"key":"contact[agreement][1]","value":"1","description":"Zgoda marketingowa o id:1"},{"key":"contact[tag][0]","value":"tag1","description":"Tablica jednowymiarowa zawierająca tagi"},{"key":"contact[category][1]","value":"1","description":"Tablica asocjacyjna z parą identyfikator kategorii => status kategorii"},{"key":"contact[category][3]","value":"1","description":"Tablica asocjacyjna z parą identyfikator kategorii => status kategorii"},{"key":"contact[dynamicAttributeString]","value":"string","description":"Atrybut dynamiczny typu String o kluczu dynamicAttributeString"},{"key":"contact[dynamicAttributeInt]","value":"1","description":"Atrybut dynamiczny typu Int o kluczu dynamicAttributeInt"},{"key":"contact[dynamicAttributecheckbox]","value":"1","description":"Atrybut dynamiczny typu Bool (checkbox true/false) o kluczu dynamicAttributecheckbox"},{"key":"contact[dynamicAttributeSelect]","value":"selectOption1","description":"Atrybut dynamiczny typu Select (jeden z wielu) o kluczu dynamicAttributeSelect"},{"key":"contact[dynamicAttributeMultiselect][0]","value":"multiselectOption1","description":"Atrybut dynamiczny typu Multiselect (wiele z wielu) o kluczu dynamicAttributeMultiselect"},{"key":"contact[dynamicAttributeMultiselect][1]","value":"multiselectOption2","description":"Atrybut dynamiczny typu Multiselect (wiele z wielu) o kluczu dynamicAttributeMultiselect"},{"key":"contact[dynamicAttributeText]","value":"text","description":"Atrybut dynamiczny typu Text o kluczu dynamicAttributeText"},{"key":"contact[dynamicAttributeDate]","value":"2017-01-01","description":"Atrybut dynamiczny typu Date (YYYY-MM-DD) o kluczu dynamicAttributeDate"},{"key":"contact[dynamicAttributeDateTime]","value":"2017-01-01 00:00","description":"Atrybut dynamiczny typu Date and Time (YYYY-MM-DD HH:MM) o kluczu dynamicAttributeDateTime"},{"key":"contact[dynamicAttributeTime]","value":"00:00","description":"Atrybut dynamiczny typu Time (HH:MM) o kluczu dynamicAttributeTime","type":"text"},{"key":"contact[facebook][id]","value":"1","description":"Facebook ID"},{"key":"contact[facebook][name]","value":"User Name","description":"Nazwa użytkownika"},{"key":"contact[facebook][first_name]","value":"FirstName","description":"Imię"},{"key":"contact[facebook][last_name]","value":"LastName","description":"Nazwisko"},{"key":"contact[source][utm_campaign]","value":"utm_campaign_test","description":"Nazwa kampanii UTM"},{"key":"contact[source][utm_content]","value":"utm_content_test\t","description":"Treść kampanii UTM"},{"key":"contact[source][utm_medium]","value":"utm_medium_test","description":"Medium kampanii UTM"},{"key":"contact[source][utm_source]","value":"utm_source_test","description":"Źródło kampanii UTM"},{"key":"contact[source][utm_term]","value":"utm_source_test","description":"Hasło kampanii UTM"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"44","description":"The length of the response body in octets (8-bit bytes)"},{"key":"content-type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"date","value":"Fri, 29 Sep 2017 05:52:26 GMT","description":"The date and time that the message was sent"},{"key":"x-content-type-options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"}],"cookie":[],"responseTime":"241","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"4e18c49c-a361-9c31-f6c1-9298ef50a646","name":"Not Found","originalRequest":{"method":"PUT","header":[{"key":"ACCEPT","value":"application/x-www-form-urlencoded","disabled":true},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIz","disabled":true}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[type]","value":"ContactType","description":"Klucz typu kontaktu"},{"key":"contact[fname]","value":"FirstName","description":"Imię"},{"key":"contact[lname]","value":"LastName","description":"Nazwisko"},{"key":"contact[name]","value":"OwnName","description":"Nazwa własna"},{"key":"contact[email]","value":"test@ipresso.com","description":"Adres e-mail"},{"key":"contact[phone]","value":"123123123","description":"Numer telefou stacjonarnego"},{"key":"contact[mobile]","value":"321321321","description":"Numer telefonu komórkowego"},{"key":"contact[company]","value":"CompanyName","description":"Nazwa firmy"},{"key":"contact[city]","value":"Warsaw","description":"Miasto"},{"key":"contact[postCode]","value":"00-001","description":"Kod pocztowy"},{"key":"contact[street]","value":"streetName","description":"Nazwa ulicy"},{"key":"contact[buildingNumber]","value":"1","description":"Numer budynku"},{"key":"contact[flatNumber]","value":"2","description":"Numer mieszkania"},{"key":"contact[country]","value":"Poland","description":"Kraj"},{"key":"contact[agreement][1]","value":"1","description":"Zgoda marketingowa o id:1"},{"key":"contact[tag][0]","value":"tag1","description":"Tablica jednowymiarowa zawierająca tagi"},{"key":"contact[category][1]","value":"1","description":"Tablica asocjacyjna z parą identyfikator kategorii => status kategorii"},{"key":"contact[category][3]","value":"1","description":"Tablica asocjacyjna z parą identyfikator kategorii => status kategorii"},{"key":"contact[dynamicAttributeString]","value":"string","description":"Atrybut dynamiczny typu String o kluczu dynamicAttributeString"},{"key":"contact[dynamicAttributeInt]","value":"1","description":"Atrybut dynamiczny typu Int o kluczu dynamicAttributeInt"},{"key":"contact[dynamicAttributecheckbox]","value":"1","description":"Atrybut dynamiczny typu Bool (checkbox true/false) o kluczu dynamicAttributecheckbox"},{"key":"contact[dynamicAttributeSelect]","value":"selectOption1","description":"Atrybut dynamiczny typu Select (jeden z wielu) o kluczu dynamicAttributeSelect"},{"key":"contact[dynamicAttributeMultiselect][0]","value":"multiselectOption1","description":"Atrybut dynamiczny typu Multiselect (wiele z wielu) o kluczu dynamicAttributeMultiselect"},{"key":"contact[dynamicAttributeMultiselect][1]","value":"multiselectOption2","description":"Atrybut dynamiczny typu Multiselect (wiele z wielu) o kluczu dynamicAttributeMultiselect"},{"key":"contact[dynamicAttributeText]","value":"text","description":"Atrybut dynamiczny typu Text o kluczu dynamicAttributeText"},{"key":"contact[dynamicAttributeDate]","value":"2017-01-01","description":"Atrybut dynamiczny typu Date (YYYY-MM-DD) o kluczu dynamicAttributeDate"},{"key":"contact[dynamicAttributeDateTime]","value":"2017-01-01 00:00","description":"Atrybut dynamiczny typu Date and Time (YYYY-MM-DD HH:MM) o kluczu dynamicAttributeDateTime"},{"key":"contact[dynamicAttributeTime]","value":"00:00","description":"Atrybut dynamiczny typu Time (HH:MM) o kluczu dynamicAttributeTime"},{"key":"contact[facebook][id]","value":"1","description":"Facebook ID"},{"key":"contact[facebook][name]","value":"User Name","description":"Nazwa użytkownika"},{"key":"contact[facebook][first_name]","value":"FirstName","description":"Imię"},{"key":"contact[facebook][last_name]","value":"LastName","description":"Nazwisko"},{"key":"contact[source][utm_campaign]","value":"utm_campaign_test","description":"Nazwa kampanii UTM"},{"key":"contact[source][utm_content]","value":"utm_content_test\t","description":"Treść kampanii UTM"},{"key":"contact[source][utm_medium]","value":"utm_medium_test","description":"Medium kampanii UTM"},{"key":"contact[source][utm_source]","value":"utm_source_test","description":"Źródło kampanii UTM"},{"key":"contact[source][utm_term]","value":"utm_source_test","description":"Hasło kampanii UTM"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"49","description":"The length of the response body in octets (8-bit bytes)"},{"key":"content-type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"date","value":"Fri, 29 Sep 2017 06:05:55 GMT","description":"The date and time that the message was sent"},{"key":"x-content-type-options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"}],"cookie":[],"responseTime":"143","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":44}"}],"_postman_id":"202c606c-dbfe-57cd-2c2c-9749ada93e63"},{"name":"Bulk contact editing","id":"4eccf875-4fcf-4348-ad95-9825d19cd17f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[2000][type]","value":"ContactType","type":"text","description":"<p>Contact type api key</p>\n"},{"key":"contact[2000][fname]","value":"FirstName","type":"text","description":"<p>First name</p>\n"},{"key":"contact[2000][lname]","value":"LastName","type":"text","description":"<p>Last name</p>\n"},{"key":"contact[2000][name]","value":"OwnName","type":"text","description":"<p>Own name</p>\n"},{"key":"contact[2000][email]","value":"test@ipresso.com","type":"text","description":"<p>e-mail</p>\n"},{"key":"contact[2000][phone]","value":"123123123","type":"text","description":"<p>Landline phone number</p>\n"},{"key":"contact[2000][mobile]","value":"321321321","type":"text","description":"<p>Mobile phone number</p>\n"},{"key":"contact[2000][company]","value":"CompanyName","type":"text","description":"<p>Name of company</p>\n"},{"key":"contact[2000][city]","value":"Warsaw","type":"text","description":"<p>City</p>\n"},{"key":"contact[2000][postCode]","value":"00-001","type":"text","description":"<p>Post code</p>\n"},{"key":"contact[2000][street]","value":"streetName","type":"text","description":"<p>Street name</p>\n"},{"key":"contact[2000][buildingNumber]","value":"1","type":"text","description":"<p>Building number</p>\n"},{"key":"contact[2000][flatNumber]","value":"2","type":"text","description":"<p>Flat number</p>\n"},{"key":"contact[2000][country]","value":"Poland","type":"text","description":"<p>Country</p>\n"},{"key":"contact[2000][region]","value":"Province","type":"text","description":"<p>Province</p>\n"},{"key":"contact[2000][agreement][1]","value":"1","type":"text","description":"<p>Associative array with a pair - consent IDs or API key =&gt; consent status, where 1 = add consent, 2 = delete consent</p>\n"},{"key":"contact[2000][tag][0]","value":"tag1","type":"text","description":"<p>One-dimensional array containing tag</p>\n"},{"key":"contact[2000][category][1]","value":"1","type":"text","description":"<p>Associative array with a pair - category ID =&gt; category status, where 1 = add category, 2 = delete category</p>\n"},{"key":"contact[2000][category][3]","value":"1","type":"text","description":"<p>Associative array with a pair - category ID =&gt; category status, where 1 = add category, 2 = delete category</p>\n"},{"key":"contact[2000][dynamicAttributeString]","value":"string","type":"text","description":"<p>String dynamic attribute with the dynamicAttributeString key</p>\n"},{"key":"contact[2000][dynamicAttributeInt]","value":"1","type":"text","description":"<p>Dynamic attribute of type Int with the key dynamicAttributeInt</p>\n"},{"key":"contact[2000][dynamicAttributecheckbox]","value":"1","type":"text","description":"<p>Dynamic attribute of type Bool (checkbox true / false) with the key dynamicAttributecheckbox</p>\n"},{"key":"contact[2000][dynamicAttributeSelect]","value":"selectOption1","type":"text","description":"<p>Dynamic attribute of type Select (one of many) with the key dynamicAttributeSelect</p>\n"},{"key":"contact[2000][dynamicAttributeMultiselect][0]","value":"multiselectOption1","type":"text","description":"<p>Dynamic attribute of the Multiselect type (many of many) with the dynamicAttributeMultiselect key</p>\n"},{"key":"contact[2000][dynamicAttributeMultiselect][1]","value":"multiselectOption2","type":"text","description":"<p>Dynamic attribute of the Multiselect type (many of many) with the dynamicAttributeMultiselect key</p>\n"},{"key":"contact[2000][dynamicAttributeText]","value":"text","type":"text","description":"<p>Dynamic attribute of the Text type with the dynamicAttributeText key</p>\n"},{"key":"contact[2000][dynamicAttributeDate]","value":"2017-01-01","type":"text","description":"<p>Dynamic attribute of the Date type (YYYY-MM-DD) with the dynamicAttributeDate key</p>\n"},{"key":"contact[2000][dynamicAttributeDateTime]","value":"2017-01-01 00:00","type":"text","description":"<p>Dynamic attribute type Date and Time (YYYY-MM-DD HH: MM) with the dynamicAttributeDateTime key</p>\n"},{"key":"contact[2000][dynamicAttributeTime]","value":"00:00","type":"text","description":"<p>Dynamic attribute of Time type (HH: MM) with the dynamicAttributeTime key</p>\n"},{"key":"contact[2000][facebook][id]","value":"1","type":"text","description":"<p>Facebook ID</p>\n"},{"key":"contact[2000][facebook][name]","value":"User Name","type":"text","description":"<p>User name</p>\n"},{"key":"contact[2000][facebook][first_name]","value":"FirstName","type":"text","description":"<p>First name</p>\n"},{"key":"contact[2000][facebook][last_name]","value":"LastName","type":"text","description":"<p>Last name</p>\n"},{"key":"contact[2000][source][utm_campaign]","value":"utm_campaign_test","type":"text","description":"<p>UTM campaign name</p>\n"},{"key":"contact[2000][source][utm_content]","value":"utm_content_test\t","type":"text","description":"<p>UTM campaign content</p>\n"},{"key":"contact[2000][source][utm_medium]","value":"utm_medium_test","type":"text","description":"<p>UTM campaign medium</p>\n"},{"key":"contact[2000][source][utm_source]","value":"utm_source_test","type":"text","description":"<p>UTM campaign source</p>\n"},{"key":"contact[2000][source][utm_term]","value":"utm_source_test","type":"text","description":"<p>Hasło kampanii UTM</p>\n"},{"key":"contact[2000][consents][apiKey]","value":"api_key_test","type":"text","description":"<p>Consent Api Key</p>\n"},{"key":"contact[2000][consents][consentGiven]","value":"1","type":"text","description":"<p>Information on whether consent is granted: true for granted, false for not granted.</p>\n"},{"key":"contact[2000][consents][externalSource]","value":"external_source_test","type":"text","description":"<p>Information about the consent source. This is an optional parameter that allows specifying where the consent was obtained or revoked.</p>\n"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/","description":"<p>In order to edit contact’s data send <code>PUT</code> request to the URL:<br /><code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT</code>. Edition allows for sending the same fields as in the case of adding new contacts.</p>\n<blockquote>\n<p>In order to clear field for a given contact, enter <code>API_NULL</code> as its content. Only the fields with specified value are changed, e.g. string type field has to he different than „“ </p>\n</blockquote>\n<p>Keys must be constructed according to the following pattern:</p>\n<p><code>contact[{contact_id}][{field}]</code></p>\n<h3 id=\"description-of-parameters\">Description of Parameters:</h3>\n<ul>\n<li><p><strong><code>{contact_id}</code></strong> – The unique identifier of the contact in the database (e.g., <code>2000</code>).</p>\n</li>\n<li><p><strong><code>{field}</code></strong> – The name of the field you want to update (e.g., <code>fname</code>, <code>lname</code>, <code>email</code>).</p>\n</li>\n</ul>\n<h3 id=\"attribute-validation\">Attribute validation</h3>\n<blockquote>\n<p>When sending contact attributes, e.g. <code>city</code> or <code>email</code>, the validation used in the ipresso panel should be used. For example, for the <code>city</code> attribute, the allowed characters are: letters, numbers, spaces and special characters: - _ &amp; ( ) [ ]<br />Using other characters will cause the request to fail.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact",""],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"4190ea41-c20f-4c3e-9786-9927e2fd4e04","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"ACCEPT","value":"application/x-www-form-urlencoded","disabled":true},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"{{vault:basic-auth}}","disabled":true}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[2000][type]","value":"ContactType","type":"text","description":"Klucz typu kontaktu"},{"key":"contact[2000][fname]","value":"FirstName","type":"text","description":"Imię"},{"key":"contact[2000][lname]","value":"LastName","type":"text","description":"Nazwisko"},{"key":"contact[2000][name]","value":"OwnName","type":"text","description":"Nazwa własna"},{"key":"contact[2000][email]","value":"test@ipresso.com","type":"text","description":"Adres e-mail"},{"key":"contact[2000][phone]","value":"123123123","type":"text","description":"Numer telefou stacjonarnego"},{"key":"contact[2000][mobile]","value":"321321321","type":"text","description":"Numer telefonu komórkowego"},{"key":"contact[2000][company]","value":"CompanyName","type":"text","description":"Nazwa firmy"},{"key":"contact[2000][city]","value":"Warsaw","type":"text","description":"Miasto"},{"key":"contact[2000][postCode]","value":"00-001","type":"text","description":"Kod pocztowy"},{"key":"contact[2000][street]","value":"streetName","type":"text","description":"Nazwa ulicy"},{"key":"contact[2000][buildingNumber]","value":"1","type":"text","description":"Numer budynku"},{"key":"contact[2000][flatNumber]","value":"2","type":"text","description":"Numer mieszkania"},{"key":"contact[2000][country]","value":"Poland","type":"text","description":"Kraj"},{"key":"contact[2000][region]","value":"Province","type":"text","description":"Zgoda marketingowa o id:1"},{"key":"contact[2000][agreement][1]","value":"1","type":"text","description":"Tablica jednowymiarowa zawierająca tagi"},{"key":"contact[2000][tag][0]","value":"tag1","type":"text","description":"Tablica asocjacyjna z parą identyfikator kategorii => status kategorii"},{"key":"contact[2000][category][1]","value":"1","type":"text","description":"Tablica asocjacyjna z parą identyfikator kategorii => status kategorii"},{"key":"contact[2000][category][3]","value":"1","type":"text","description":"Atrybut dynamiczny typu String o kluczu dynamicAttributeString"},{"key":"contact[2000][dynamicAttributeString]","value":"string","type":"text","description":"Atrybut dynamiczny typu Int o kluczu dynamicAttributeInt"},{"key":"contact[2000][dynamicAttributeInt]","value":"1","type":"text","description":"Atrybut dynamiczny typu Bool (checkbox true/false) o kluczu dynamicAttributecheckbox"},{"key":"contact[2000][dynamicAttributecheckbox]","value":"1","type":"text","description":"Atrybut dynamiczny typu Select (jeden z wielu) o kluczu dynamicAttributeSelect"},{"key":"contact[2000][dynamicAttributeSelect]","value":"selectOption1","type":"text","description":"Atrybut dynamiczny typu Multiselect (wiele z wielu) o kluczu dynamicAttributeMultiselect"},{"key":"contact[2000][dynamicAttributeMultiselect][0]","value":"multiselectOption1","type":"text","description":"Atrybut dynamiczny typu Multiselect (wiele z wielu) o kluczu dynamicAttributeMultiselect"},{"key":"contact[2000][dynamicAttributeMultiselect][1]","value":"multiselectOption2","type":"text","description":"Atrybut dynamiczny typu Text o kluczu dynamicAttributeText"},{"key":"contact[2000][dynamicAttributeText]","value":"text","type":"text","description":"Atrybut dynamiczny typu Date (YYYY-MM-DD) o kluczu dynamicAttributeDate"},{"key":"contact[2000][dynamicAttributeDate]","value":"2017-01-01","type":"text","description":"Atrybut dynamiczny typu Date and Time (YYYY-MM-DD HH:MM) o kluczu dynamicAttributeDateTime"},{"key":"contact[2000][dynamicAttributeDateTime]","value":"2017-01-01 00:00","type":"text","description":"Atrybut dynamiczny typu Time (HH:MM) o kluczu dynamicAttributeTime"},{"key":"contact[2000][dynamicAttributeTime]","value":"00:00","type":"text","description":"Facebook ID"},{"key":"contact[2000][facebook][id]","value":"1","type":"text","description":"Nazwa użytkownika"},{"key":"contact[2000][facebook][name]","value":"User Name","type":"text","description":"Imię"},{"key":"contact[2000][facebook][first_name]","value":"FirstName","type":"text","description":"Nazwisko"},{"key":"contact[2000][facebook][last_name]","value":"LastName","type":"text","description":"Nazwa kampanii UTM"},{"key":"contact[2000][source][utm_campaign]","value":"utm_campaign_test","type":"text","description":"Treść kampanii UTM"},{"key":"contact[2000][source][utm_content]","value":"utm_content_test\t","type":"text","description":"Medium kampanii UTM"},{"key":"contact[2000][source][utm_medium]","value":"utm_medium_test","type":"text","description":"Źródło kampanii UTM"},{"key":"contact[2000][source][utm_source]","value":"utm_source_test","type":"text","description":"Hasło kampanii UTM"},{"key":"contact[2000][source][utm_term]","value":"utm_source_test","type":"text"},{"key":"contact[2000][consents][apiKey]","value":"api_key_test","type":"text"},{"key":"contact[2000][consents][consentGiven]","value":"1","type":"text"},{"key":"contact[2000][consents][externalSource]","value":"external_source_test","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"44","description":"The length of the response body in octets (8-bit bytes)","enabled":true},{"key":"content-type","value":"text/json;charset=UTF-8","description":"The mime type of this content","enabled":true},{"key":"date","value":"Fri, 29 Sep 2017 05:52:26 GMT","description":"The date and time that the message was sent","enabled":true},{"key":"x-content-type-options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type","enabled":true}],"cookie":[],"responseTime":"241","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"contact\": {\n            \"2000\": {\n                \"code\": 201,\n                \"message\": \"Created\"\n            },\n            \"2001\": {\n                \"code\": 201,\n                \"message\": \"Created\"\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"a3f663d5-1614-496e-8647-3ed506594425","name":"Not Found","originalRequest":{"method":"PUT","header":[{"key":"ACCEPT","value":"application/x-www-form-urlencoded","disabled":true},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"{{vault:basic-auth}}","disabled":true}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[2000][type]","value":"ContactType","type":"text","description":"Klucz typu kontaktu"},{"key":"contact[2000][fname]","value":"FirstName","type":"text","description":"Imię"},{"key":"contact[2000][lname]","value":"LastName","type":"text","description":"Nazwisko"},{"key":"contact[2000][name]","value":"OwnName","type":"text","description":"Nazwa własna"},{"key":"contact[2000][email]","value":"test@ipresso.com","type":"text","description":"Adres e-mail"},{"key":"contact[2000][phone]","value":"123123123","type":"text","description":"Numer telefou stacjonarnego"},{"key":"contact[2000][mobile]","value":"321321321","type":"text","description":"Numer telefonu komórkowego"},{"key":"contact[2000][company]","value":"CompanyName","type":"text","description":"Nazwa firmy"},{"key":"contact[2000][city]","value":"Warsaw","type":"text","description":"Miasto"},{"key":"contact[2000][postCode]","value":"00-001","type":"text","description":"Kod pocztowy"},{"key":"contact[2000][street]","value":"streetName","type":"text","description":"Nazwa ulicy"},{"key":"contact[2000][buildingNumber]","value":"1","type":"text","description":"Numer budynku"},{"key":"contact[2000][flatNumber]","value":"2","type":"text","description":"Numer mieszkania"},{"key":"contact[2000][country]","value":"Poland","type":"text","description":"Kraj"},{"key":"contact[2000][region]","value":"Province","type":"text","description":"Zgoda marketingowa o id:1"},{"key":"contact[2000][agreement][1]","value":"1","type":"text","description":"Tablica jednowymiarowa zawierająca tagi"},{"key":"contact[2000][tag][0]","value":"tag1","type":"text","description":"Tablica asocjacyjna z parą identyfikator kategorii => status kategorii"},{"key":"contact[2000][category][1]","value":"1","type":"text","description":"Tablica asocjacyjna z parą identyfikator kategorii => status kategorii"},{"key":"contact[2000][category][3]","value":"1","type":"text","description":"Atrybut dynamiczny typu String o kluczu dynamicAttributeString"},{"key":"contact[2000][dynamicAttributeString]","value":"string","type":"text","description":"Atrybut dynamiczny typu Int o kluczu dynamicAttributeInt"},{"key":"contact[2000][dynamicAttributeInt]","value":"1","type":"text","description":"Atrybut dynamiczny typu Bool (checkbox true/false) o kluczu dynamicAttributecheckbox"},{"key":"contact[2000][dynamicAttributecheckbox]","value":"1","type":"text","description":"Atrybut dynamiczny typu Select (jeden z wielu) o kluczu dynamicAttributeSelect"},{"key":"contact[2000][dynamicAttributeSelect]","value":"selectOption1","type":"text","description":"Atrybut dynamiczny typu Multiselect (wiele z wielu) o kluczu dynamicAttributeMultiselect"},{"key":"contact[2000][dynamicAttributeMultiselect][0]","value":"multiselectOption1","type":"text","description":"Atrybut dynamiczny typu Multiselect (wiele z wielu) o kluczu dynamicAttributeMultiselect"},{"key":"contact[2000][dynamicAttributeMultiselect][1]","value":"multiselectOption2","type":"text","description":"Atrybut dynamiczny typu Text o kluczu dynamicAttributeText"},{"key":"contact[2000][dynamicAttributeText]","value":"text","type":"text","description":"Atrybut dynamiczny typu Date (YYYY-MM-DD) o kluczu dynamicAttributeDate"},{"key":"contact[2000][dynamicAttributeDate]","value":"2017-01-01","type":"text","description":"Atrybut dynamiczny typu Date and Time (YYYY-MM-DD HH:MM) o kluczu dynamicAttributeDateTime"},{"key":"contact[2000][dynamicAttributeDateTime]","value":"2017-01-01 00:00","type":"text","description":"Atrybut dynamiczny typu Time (HH:MM) o kluczu dynamicAttributeTime"},{"key":"contact[2000][dynamicAttributeTime]","value":"00:00","type":"text","description":"Facebook ID"},{"key":"contact[2000][facebook][id]","value":"1","type":"text","description":"Nazwa użytkownika"},{"key":"contact[2000][facebook][name]","value":"User Name","type":"text","description":"Imię"},{"key":"contact[2000][facebook][first_name]","value":"FirstName","type":"text","description":"Nazwisko"},{"key":"contact[2000][facebook][last_name]","value":"LastName","type":"text","description":"Nazwa kampanii UTM"},{"key":"contact[2000][source][utm_campaign]","value":"utm_campaign_test","type":"text","description":"Treść kampanii UTM"},{"key":"contact[2000][source][utm_content]","value":"utm_content_test\t","type":"text","description":"Medium kampanii UTM"},{"key":"contact[2000][source][utm_medium]","value":"utm_medium_test","type":"text","description":"Źródło kampanii UTM"},{"key":"contact[2000][source][utm_source]","value":"utm_source_test","type":"text","description":"Hasło kampanii UTM"},{"key":"contact[2000][source][utm_term]","value":"utm_source_test","type":"text"},{"key":"contact[2000][consents][apiKey]","value":"api_key_test","type":"text"},{"key":"contact[2000][consents][consentGiven]","value":"1","type":"text"},{"key":"contact[2000][consents][externalSource]","value":"external_source_test","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"49","description":"The length of the response body in octets (8-bit bytes)","enabled":true},{"key":"content-type","value":"text/json;charset=UTF-8","description":"The mime type of this content","enabled":true},{"key":"date","value":"Fri, 29 Sep 2017 06:05:55 GMT","description":"The date and time that the message was sent","enabled":true},{"key":"x-content-type-options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type","enabled":true}],"cookie":[],"responseTime":"143","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"contact\": {\n            \"20000\": {\n                \"code\": 404,\n                \"message\": \"Bad request\",\n                \"errorCode\": 44\n            },\n            \"20001\": {\n                \"code\": 404,\n                \"message\": \"Bad request\",\n                \"errorCode\": 44\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"4eccf875-4fcf-4348-ad95-9825d19cd17f"},{"name":"Adding new contact","id":"64917262-7ef4-c3d2-ba2c-cb572b223c7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Contact type api key</p>\n","key":"contact[0][type]","value":"ContactType"},{"description":"<p>First name</p>\n","key":"contact[0][fname]","value":"FirstName"},{"description":"<p>Last name </p>\n","key":"contact[0][lname]","value":"LastName"},{"description":"<p>Own name</p>\n","key":"contact[0][name]","value":"OwnName"},{"description":"<p>e-mail</p>\n","key":"contact[0][email]","value":"test@ipresso.com"},{"description":"<p>Landline phone number   </p>\n","key":"contact[0][phone]","value":"123123123"},{"description":"<p>Mobile phone number </p>\n","key":"contact[0][mobile]","value":"321321321"},{"description":"<p>Name of company</p>\n","key":"contact[0][company]","value":"CompanyName"},{"description":"<p>city</p>\n","key":"contact[0][city]","value":"Warsaw"},{"description":"<p>Post code</p>\n","key":"contact[0][postCode]","value":"00-001"},{"description":"<p>Street name</p>\n","key":"contact[0][street]","value":"streetName"},{"description":"<p>Building number</p>\n","key":"contact[0][buildingNumber]","value":"1"},{"description":"<p>Flat number</p>\n","key":"contact[0][flatNumber]","value":"2"},{"description":"<p>Country</p>\n","key":"contact[0][country]","value":"Poland"},{"description":"<p>Province</p>\n","key":"contact[0][region]","type":"text","value":"Province"},{"description":"<p>Associative array with a pair - consent IDs or API key =&gt; consent status, where 1 = add consent, 2 = delete consent</p>\n","key":"contact[0][agreement][1]","value":"1"},{"description":"<p>One-dimensional array containing tag    </p>\n","key":"contact[0][tag][0]","value":"tag1"},{"description":"<p>Associative array with a pair - category ID =&gt; category status, where 1 = add category, 2 = delete category </p>\n","key":"contact[0][category][1]","value":"1"},{"description":"<p>Associative array with a pair - category ID =&gt; category status, where 1 = add category, 2 = delete category </p>\n","key":"contact[0][category][3]","value":"1"},{"description":"<p>String dynamic attribute with the dynamicAttributeString key</p>\n","key":"contact[0][dynamicAttributeString]","value":"string"},{"description":"<p>Dynamic attribute of type Int with the key dynamicAttributeInt</p>\n","key":"contact[0][dynamicAttributeInt]","value":"1"},{"description":"<p>Dynamic attribute of type Bool (checkbox true / false) with the key dynamicAttributecheckbox</p>\n","key":"contact[0][dynamicAttributecheckbox]","value":"1"},{"description":"<p>Dynamic attribute of type Select (one of many) with the key dynamicAttributeSelect</p>\n","key":"contact[0][dynamicAttributeSelect]","value":"selectOptionKey1"},{"description":"<p>Dynamic attribute of the Multiselect type (many of many) with the dynamicAttributeMultiselect key</p>\n","key":"contact[0][dynamicAttributeMultiselect][0]","value":"multiselectOptionKey1"},{"description":"<p>Dynamic attribute of the Multiselect type (many of many) with the dynamicAttributeMultiselect key</p>\n","key":"contact[0][dynamicAttributeMultiselect][1]","value":"multiselectOptionKey2"},{"description":"<p>Dynamic attribute of the Text type with the dynamicAttributeText key</p>\n","key":"contact[0][dynamicAttributeText]","value":"text"},{"description":"<p>Dynamic attribute of the Date type (YYYY-MM-DD) with the dynamicAttributeDate key</p>\n","key":"contact[0][dynamicAttributeDate]","value":"2017-01-01"},{"description":"<p>Dynamic attribute type Date and Time (YYYY-MM-DD HH: MM) with the dynamicAttributeDateTime key</p>\n","key":"contact[0][dynamicAttributeDateTime]","value":"2017-01-01 00:00"},{"description":"<p>Dynamic attribute of Time type (HH: MM) with the dynamicAttributeTime key</p>\n","key":"contact[0][dynamicAttributeTime]","value":"00:00"},{"description":"<p>Associative array with a pair - group ID to access contact =&gt; 1 for add group   </p>\n","key":"contact[0][contactAccess][1]","value":"1"},{"description":"<p>Facebook ID</p>\n","key":"contact[0][facebook][id]","value":"1"},{"description":"<p>User name</p>\n","key":"contact[0][facebook][name]","value":"User Name"},{"description":"<p>First name</p>\n","key":"contact[0][facebook][first_name]","value":"FirstName"},{"description":"<p>Last name</p>\n","key":"contact[0][facebook][last_name]","value":"LastName"},{"description":"<p>UTM campaign name</p>\n","key":"contact[0][source][utm_campaign]","value":"utm_campaign_test"},{"description":"<p>UTM campaign content</p>\n","key":"contact[0][source][utm_content]","value":"utm_content_test  "},{"description":"<p>UTM campaign medium</p>\n","key":" contact[0][source][utm_medium]","value":"utm_medium_test"},{"description":"<p>UTM campaign source</p>\n","key":"contact[0][source][utm_source]","value":"utm_source_test"},{"description":"<p>UTM campaign source</p>\n","key":"contact[0][source][utm_term]","value":"utm_source_test"},{"key":"contact[0][consents][apiKey]","value":"api_key_test","description":"<p>Consent Api Key</p>\n","type":"text","uuid":"de019a03-23b1-4e79-a2f9-15d01e81a82b"},{"key":"contact[0][consents][consentGiven]","value":"1","description":"<p>Information on whether consent is granted: true for granted, false for not granted.</p>\n","type":"text","uuid":"0ccee1f3-db48-40a9-bf88-feda2796b1af"},{"key":"contact[0][consents][externalSource]","value":"external_source_test","description":"<p>Information about the consent source. This is an optional parameter that allows specifying where the consent was obtained or revoked.</p>\n","type":"text","uuid":"eca262c1-673e-48fb-93d5-7a16e13f67cc"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact","description":"<p>In order to add a new contact via iPresso API <code>POST</code> request should be sent to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact</code>.</p>\n<p>Following values may be assigned to a contact:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td>Key of contact's type</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>fname</td>\n<td>First name</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>lname</td>\n<td>Last name</td>\n<td>YES*</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Own name</td>\n<td>YES*</td>\n</tr>\n<tr>\n<td>email</td>\n<td>E-mail address</td>\n<td>YES*</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>Landline phone number</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>mobile</td>\n<td>Mobile phone number</td>\n<td>YES*</td>\n</tr>\n<tr>\n<td>company</td>\n<td>Name of company</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>city</td>\n<td>City</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>postCode</td>\n<td>Post code</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>street</td>\n<td>Street</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>buildingNumber</td>\n<td>Building number</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>flatNumber</td>\n<td>Flat number</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>country</td>\n<td>Country</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>region</td>\n<td>Province</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>category</td>\n<td>Associative array with a pair - category ID =&gt; category status, where 1 = add category, 2 = delete category</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>tag</td>\n<td>One-dimensional array containing tag</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>agreement</td>\n<td>Associative array with a pair - consent ID or API key =&gt; consent status, where 1 = add consent, 2 = delete consent</td>\n<td>NOipresso-external-key</td>\n</tr>\n<tr>\n<td>facebook</td>\n<td>Facebook data array for a given user</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>source</td>\n<td>Array with user’s source data</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>contactAccess</td>\n<td>Associative array with a pair - group ID to access contact =&gt; 1 for add group</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>idExternal</td>\n<td>Contact external ID</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>consents</td>\n<td>An array of objects consisting of a pair: either a consent identifier or a consent API key.</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>consentGiven</td>\n<td>Consent status: 1 for adding (granting) consent, 2 for removing (revoking) consent.</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>externalSource</td>\n<td>Optional parameter – the source of the consent change.</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>* - one of the above fields must be sent</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>Data array for facebook parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>API KEY</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Facebook ID</td>\n</tr>\n<tr>\n<td>name</td>\n<td>User name</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>First name</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>Last name</td>\n</tr>\n</tbody>\n</table>\n</div><p>Array for source parameter:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>API KEY</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>utm_campaign</td>\n<td>Campaign</td>\n</tr>\n<tr>\n<td>utm_content</td>\n<td>Campaign content</td>\n</tr>\n<tr>\n<td>utm_medium</td>\n<td>Campaign medium</td>\n</tr>\n<tr>\n<td>utm_source</td>\n<td>Campaign source</td>\n</tr>\n<tr>\n<td>utm_term</td>\n<td>Campaign title</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"static-and-dynamic-attributes\">Static and dynamic attributes</h3>\n<blockquote>\n<p><code>Static attributes</code> are the default attributes existing in iPresso, such as Name, Surname, Email, Mobile, Street, Country.<br /><code>Dynamic attributes</code> are the attributes created by a customer. <code>Dynamic attributese</code> can be created with API ( <code>Attributes</code>) or in iPresso panel: System -&gt; Dictionaries -&gt; Contacts -&gt; Attributes. </p>\n</blockquote>\n<h3 id=\"attribute-validation\">Attribute validation</h3>\n<blockquote>\n<p>When sending contact attributes, e.g. <code>city</code> or <code>email</code>, the validation used in the ipresso panel should be used. For example, for the <code>city</code> attribute, the allowed characters are: letters, numbers, spaces and special characters: - _ &amp; ( ) [ ]<br />Using other characters will cause the request to fail. </p>\n</blockquote>\n<h3 id=\"monitoring-a-contact-monitoring-v1\"><strong>Monitoring a Contact (Monitoring v1)</strong></h3>\n<blockquote>\n<p>The ability to track a contact in the browser will only be possible after it has been monitored.<br />To do this, display a tracking pixel to the contact in the browser (as an image in the <code>IMG</code> tag). The pixel address is returned in the <code>monitoringPixel</code> field.<br />It is also possible to display an <code>IFRAME</code> tag whose code is returned in the <code>monitoringCode</code> field, or to create your own <code>IFRAME</code> code using the address returned in the <code>monitoringLink</code> field.<br />All returned data for contact monitoring is immutable and can be saved so that there is no need to re-download it. Monitoring should occur whenever possible upon each login or return to the website, as users may change browsers/devices. </p>\n</blockquote>\n<h3 id=\"monitoring-a-contact-monitoring-v2\"><strong>Monitoring a Contact (Monitoring v2)</strong></h3>\n<blockquote>\n<p>The ability to track a contact in the browser will only be possible after it has been monitored. </p>\n</blockquote>\n<blockquote>\n<p>To do this, use the setContactId method <a href=\"https://js-api-doc.ipresso.pl/methods/identification/set-contact-id\">https://js-api-doc.ipresso.pl/methods/identification/set-contact-id</a> </p>\n</blockquote>\n<blockquote>\n<p>This method should be passed the value returned in the <code>hashIdContact</code> field as a parameter. </p>\n</blockquote>\n<blockquote>\n<p>All returned contact tracking data is immutable and can be saved, eliminating the need to re-download it. Tracking should occur whenever possible upon each login or return to the website, as users may change browsers or devices. </p>\n</blockquote>\n<h3 id=\"addition-of-multiple-contacts-via-one-request\">Addition of multiple contacts via one request</h3>\n<blockquote>\n<p>The data structure has been developed in the way that allows adding multiple contacts through one request. You can retrieve up to 100 contact in one API request. </p>\n</blockquote>\n<p>In order to add contact with external ID, add <code>ipresso-external-key</code> in headers. It adopts the values ​​of external ID groups defined in iPresso.</p>\n","urlObject":{"protocol":"https","path":["api","2","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"4c34473d-e422-d012-3bfe-b94978d28c7b","name":"Success","originalRequest":{"method":"POST","header":[{"key":"ACCEPT","value":"application/x-www-form-urlencoded","disabled":true},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIi","disabled":true},{"key":"","value":"","disabled":true}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0][type]","value":"ContactType","description":"Klucz typu kontaktu"},{"key":"contact[0][fname]","value":"FirstName","description":"Imię"},{"key":"contact[0][lname]","value":"LastName","description":"Nazwisko"},{"key":"contact[0][name]","value":"OwnName","description":"Nazwa własna"},{"key":"contact[0][email]","value":"test@ipresso.com","description":"Adres e-mail"},{"key":"contact[0][phone]","value":"123123123","description":"Numer telefou stacjonarnego"},{"key":"contact[0][mobile]","value":"321321321","description":"Numer telefonu komórkowego"},{"key":"contact[0][company]","value":"CompanyName","description":"Nazwa firmy"},{"key":"contact[0][city]","value":"Warsaw","description":"Miasto"},{"key":"contact[0][postCode]","value":"00-001","description":"Kod pocztowy"},{"key":"contact[0][street]","value":"streetName","description":"Nazwa ulicy"},{"key":"contact[0][buildingNumber]","value":"1","description":"Numer budynku"},{"key":"contact[0][flatNumber]","value":"2","description":"Numer mieszkania"},{"key":"contact[0][country]","value":"Poland","description":"Kraj"},{"key":"contact[0][agreement][1]","value":"1","description":"Zgoda marketingowa o id:1"},{"key":"contact[0][tag][0]","value":"tag1","description":"Tablica jednowymiarowa zawierająca tagi "},{"key":"contact[0][category][1]","value":"1","description":"Tablica asocjacyjna z parą identyfikator kategorii => status kategorii "},{"key":"contact[0][category][3]","value":"1","description":"Tablica asocjacyjna z parą identyfikator kategorii => status kategorii"},{"key":"contact[0][dynamicAttributeString]","value":"string","description":"Atrybut dynamiczny typu String o kluczu dynamicAttributeString"},{"key":"contact[0][dynamicAttributeInt]","value":"1","description":"Atrybut dynamiczny typu Int o kluczu dynamicAttributeInt"},{"key":"contact[0][dynamicAttributecheckbox]","value":"1","description":"Atrybut dynamiczny typu Bool (checkbox true/false) o kluczu dynamicAttributecheckbox"},{"key":"contact[0][dynamicAttributeSelect]","value":"selectOptionKey1","description":"Atrybut dynamiczny typu Select (jeden z wielu) o kluczu dynamicAttributeSelect"},{"key":"contact[0][dynamicAttributeMultiselect][0]","value":"multiselectOptionKey1","description":"Atrybut dynamiczny typu Multiselect (wiele z wielu) o kluczu dynamicAttributeMultiselect "},{"key":"contact[0][dynamicAttributeMultiselect][1]","value":"multiselectOptionKey2","description":"Atrybut dynamiczny typu Multiselect (wiele z wielu) o kluczu dynamicAttributeMultiselect "},{"key":"contact[0][dynamicAttributeText]","value":"text","description":"Atrybut dynamiczny typu Text o kluczu dynamicAttributeText"},{"key":"contact[0][dynamicAttributeDate]","value":"2017-01-01","description":"Atrybut dynamiczny typu Date (YYYY-MM-DD) o kluczu dynamicAttributeDate"},{"key":"contact[0][dynamicAttributeDateTime]","value":"2017-01-01 00:00","description":"Atrybut dynamiczny typu Date and Time (YYYY-MM-DD HH:MM) o kluczu dynamicAttributeDateTime"},{"key":"contact[0][dynamicAttributeTime]","value":"00:00","description":"Atrybut dynamiczny typu Time (HH:MM) o kluczu dynamicAttributeTime"},{"key":"contact[0][contactAccess][1]","value":"1","description":"Tablica asocjacyjna z parą identyfikator grupy umożliwiajacej dostęp do kontaktu => 1 dla dodania grupy"},{"key":"contact[0][facebook][id]","value":"1","description":"Facebook ID"},{"key":"contact[0][facebook][name]","value":"User Name","description":"Nazwa użytkownika"},{"key":"contact[0][facebook][first_name]","value":"FirstName","description":"Imię"},{"key":"contact[0][facebook][last_name]","value":"LastName","description":"Nazwisko"},{"key":"contact[0][source][utm_campaign]","value":"utm_campaign_test","description":"Nazwa kampanii UTM"},{"key":"contact[0][source][utm_content]","value":"utm_content_test\t","description":"Treść kampanii UTM"},{"key":"contact[0][source][utm_medium]","value":"utm_medium_test","description":"Medium kampanii UTM"},{"key":"contact[0][source][utm_source]","value":"utm_source_test","description":"Źródło kampanii UTM"},{"key":"contact[0][source][utm_term]","value":"utm_source_test","description":"Hasło kampanii UTM"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-encoding","value":"gzip","description":"The type of encoding used on the data."},{"key":"content-length","value":"331","description":"The length of the response body in octets (8-bit bytes)"},{"key":"content-type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"date","value":"Thu, 28 Sep 2017 11:52:23 GMT","description":"The date and time that the message was sent"},{"key":"vary","value":"Accept-Encoding","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"x-content-type-options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"}],"cookie":[],"responseTime":"1731","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"contact\": {\n            \"1\": {\n                \"id\": 154,\n                \"monitoringCode\": \"<iframe frameborder=\\\"0\\\" src=\\\"https://CLIENT_PANEL_ADDRESS/contactcookie/6m3dzoqpr8JENviKTJCMdxJXicwrC8iWusoQFeGBL0I./dfe5db49db65273ca4daa73e1ecb8cac\\\" style=\\\"border: none; display:none; width:0px; height:0px;\\\"></iframe>\",\n                \"monitoringLink\": \"https://CLIENT_PANEL_ADDRESS/contactcookie/6m3dzoqpr8JENviKTJCMdxJXicwrC8iWusoQFeGBL0I./dfe5db49db65273ca4daa73e1ecb8cac\",\n                \"monitoringPixel\": \"https://CLIENT_PANEL_ADDRESS/systemnc/contactcookiepixel/6m3dzoqpr8JENviKTJCMdxJXicwrC8iWusoQFeGBL0I./dfe5db49db65273ca4daa73e1ecb8cac.png\",\n                \"hashIdContact\": \"6m3dzoqpr8JENviKTJCMdxJXicwrC8iWusoQFeGBL0I.\",\n                \"profilePageUrl\": {\n                    \"1\": \"https://CLIENT_PANEL_ADDRESS/contact/profile/show/ckd4M1JNVUFwejJJYUFzS0F0V1BEdz09/6m3dzoqpr8JENviKTJCMdxJXicwrC8iWusoQFeGBL0I.\",\n                    \"2\": \"https://CLIENT_PANEL_ADDRESS/contact/profile/show/WmluWjRQbjg0bEI1dFVFMkNCNGpOZz09/6m3dzoqpr8JENviKTJCMdxJXicwrC8iWusoQFeGBL0I.\"\n                },\n                \"code\": 201,\n                \"message\": \"Created\"\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"11e32005-a164-d609-ad29-c41ebc3002ac","name":"Error - wrong token","originalRequest":{"method":"POST","header":[{"key":"ACCEPT","value":"application/x-www-form-urlencoded","disabled":true},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c92"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIi","disabled":true},{"key":"","value":"","disabled":true}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0][type]","value":"ContactType","description":"Klucz typu kontaktu"},{"key":"contact[0][fname]","value":"FirstName","description":"Imię"},{"key":"contact[0][lname]","value":"LastName","description":"Nazwisko"},{"key":"contact[0][name]","value":"OwnName","description":"Nazwa własna"},{"key":"contact[0][email]","value":"test@ipresso.com","description":"Adres e-mail"},{"key":"contact[0][phone]","value":"123123123","description":"Numer telefou stacjonarnego"},{"key":"contact[0][mobile]","value":"321321321","description":"Numer telefonu komórkowego"},{"key":"contact[0][company]","value":"CompanyName","description":"Nazwa firmy"},{"key":"contact[0][city]","value":"Warsaw","description":"Miasto"},{"key":"contact[0][postCode]","value":"00-001","description":"Kod pocztowy"},{"key":"contact[0][street]","value":"streetName","description":"Nazwa ulicy"},{"key":"contact[0][buildingNumber]","value":"1","description":"Numer budynku"},{"key":"contact[0][flatNumber]","value":"2","description":"Numer mieszkania"},{"key":"contact[0][country]","value":"Poland","description":"Kraj"},{"key":"contact[0][agreement][1]","value":"1","description":"Zgoda marketingowa o id:1"},{"key":"contact[0][tag][0]","value":"tag1","description":"Tablica jednowymiarowa zawierająca tagi "},{"key":"contact[0][category][1]","value":"1","description":"Tablica asocjacyjna z parą identyfikator kategorii => status kategorii "},{"key":"contact[0][category][3]","value":"1","description":"Tablica asocjacyjna z parą identyfikator kategorii => status kategorii"},{"key":"contact[0][dynamicAttributeString]","value":"string","description":"Atrybut dynamiczny typu String o kluczu dynamicAttributeString"},{"key":"contact[0][dynamicAttributeInt]","value":"1","description":"Atrybut dynamiczny typu Int o kluczu dynamicAttributeInt"},{"key":"contact[0][dynamicAttributecheckbox]","value":"1","description":"Atrybut dynamiczny typu Bool (checkbox true/false) o kluczu dynamicAttributecheckbox"},{"key":"contact[0][dynamicAttributeSelect]","value":"selectOptionKey1","description":"Atrybut dynamiczny typu Select (jeden z wielu) o kluczu dynamicAttributeSelect"},{"key":"contact[0][dynamicAttributeMultiselect][0]","value":"multiselectOptionKey1","description":"Atrybut dynamiczny typu Multiselect (wiele z wielu) o kluczu dynamicAttributeMultiselect "},{"key":"contact[0][dynamicAttributeMultiselect][1]","value":"multiselectOptionKey2","description":"Atrybut dynamiczny typu Multiselect (wiele z wielu) o kluczu dynamicAttributeMultiselect "},{"key":"contact[0][dynamicAttributeText]","value":"text","description":"Atrybut dynamiczny typu Text o kluczu dynamicAttributeText"},{"key":"contact[0][dynamicAttributeDate]","value":"2017-01-01","description":"Atrybut dynamiczny typu Date (YYYY-MM-DD) o kluczu dynamicAttributeDate"},{"key":"contact[0][dynamicAttributeDateTime]","value":"2017-01-01 00:00","description":"Atrybut dynamiczny typu Date and Time (YYYY-MM-DD HH:MM) o kluczu dynamicAttributeDateTime"},{"key":"contact[0][dynamicAttributeTime]","value":"00:00","description":"Atrybut dynamiczny typu Time (HH:MM) o kluczu dynamicAttributeTime"},{"key":"contact[0][contactAccess][1]","value":"1","description":"Tablica asocjacyjna z parą identyfikator grupy umożliwiajacej dostęp do kontaktu => 1 dla dodania grupy"},{"key":"contact[0][facebook][id]","value":"1","description":"Facebook ID"},{"key":"contact[0][facebook][name]","value":"User Name","description":"Nazwa użytkownika"},{"key":"contact[0][facebook][first_name]","value":"FirstName","description":"Imię"},{"key":"contact[0][facebook][last_name]","value":"LastName","description":"Nazwisko"},{"key":"contact[0][source][utm_campaign]","value":"utm_campaign_test","description":"Nazwa kampanii UTM"},{"key":"contact[0][source][utm_content]","value":"utm_content_test\t","description":"Treść kampanii UTM"},{"key":"contact[0][source][utm_medium]","value":"utm_medium_test","description":"Medium kampanii UTM"},{"key":"contact[0][source][utm_source]","value":"utm_source_test","description":"Źródło kampanii UTM"},{"key":"contact[0][source][utm_term]","value":"utm_source_test","description":"Hasło kampanii UTM"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"61","description":"The length of the response body in octets (8-bit bytes)"},{"key":"content-type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"date","value":"Thu, 28 Sep 2017 11:58:31 GMT","description":"The date and time that the message was sent"},{"key":"x-content-type-options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"}],"cookie":[],"responseTime":"175","body":"{\"code\":403,\"message\":\"Wrong token! Please authorize again!\"}"},{"id":"e1a1c079-1bf3-7e1b-0ecd-ee94e42b7e44","name":"contact exists","originalRequest":{"method":"POST","header":[{"key":"ACCEPT","value":"application/x-www-form-urlencoded","disabled":true},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIi","disabled":true},{"key":"","value":"","disabled":true}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0][type]","value":"ContactType","description":"Static attribute - Key of contact’s type - Required - NO"},{"key":"contact[0][fname]","value":"FirstName","description":"Static attribute - First Name - Required - NO "},{"key":"contact[0][lname]","value":"LastName","description":"Static attribute - Last Name Required - YES*\n* - one of the above fields must be sent\n"},{"key":"contact[0][name]","value":"OwnName","description":"Static attribute - Own name - Required - YES*   \n* - one of the above fields must be sent\n\n"},{"key":"contact[0][email]","value":"test@ipresso.com","description":"Static attribute - email address - Required - YES*\n* - one of the above fields must be sent\n"},{"key":"contact[0][phone]","value":"123123123","description":"Static attribute -phone number - Required - NO"},{"key":"contact[0][mobile]","value":"321321321","description":"Static attribute - mobile number - Require - YES*\n* - one of the above fields must be sent\n"},{"key":"contact[0][company]","value":"CompanyName","description":"Static attribute - company name - Required - NO"},{"key":"contact[0][city]","value":"Warsaw","description":"Static attribute - city name - Required - NO"},{"key":"contact[0][postCode]","value":"00-001","description":"Static attribute - post code - Required - NO"},{"key":"contact[0][street]","value":"streetName","description":"Static attribute - street name - Required - NO"},{"key":"contact[0][buildingNumber]","value":"1","description":"Static attribute - building number - Required - NO"},{"key":"contact[0][flatNumber]","value":"2","description":"Static attribute -flat number - Required - NO"},{"key":"contact[0][country]","value":"Poland","description":"Static attribute - country name - Required - NO"},{"key":"contact[0][agreement][1]","value":"1","description":"Static attribute - agreement   array ['ID_AGREEMENT' => 'ID_AGREEMENT_STATUS'] - \n * Parameter `ID_AGREEMENT` should be replaced with ID of a chosen agreement.\n * Parameter `ID_AGREEMENT_STATUS` is agreement status, in the case of activation of agreement enter number 1, in other cases enter 2.\nRequired - NO\n"},{"key":"contact[0][tag][0]","value":"tag1","description":"Static attribute -tags One-dimensional array containing tag - ['tag1', 'tag2' ] - Required - NO"},{"key":"contact[0][category][1]","value":"1","description":"Static attribute - Associative array with a pair - category ID => category status, where 1 = add category, 2 = delete category - Required - NO"},{"key":"contact[0][category][3]","value":"1","description":"Static attribute - Associative array with a pair - category ID => category status, where 1 = add category, 2 = delete category - Required - NO"},{"key":"contact[0][dynamicAttributeString]","value":"string","description":"Dynamic attribute - type String - Text (up to 255 characters) - Required - NO"},{"key":"contact[0][dynamicAttributeInt]","value":"1","description":"Dynamic attribute - type Integer -Numerical value - Required - NO"},{"key":"contact[0][dynamicAttributecheckbox]","value":"1","description":"Dynamic attribute - type checkbox-True/false- Required - NO"},{"key":"contact[0][dynamicAttributeSelect]","value":"selectOptionKey1","description":"Dynamic attribute - type select - One out of many - Required - NO"},{"key":"contact[0][dynamicAttributeMultiselect][0]","value":"multiselectOptionKey1","description":"Dynamic attibute - type multiselect - array with parameter key - Required - NO"},{"key":"contact[0][dynamicAttributeMultiselect][1]","value":"multiselectOptionKey2","description":"Dynamic attribute - type multiselect - array with parameter key -  Required - NO"},{"key":"contact[0][dynamicAttributeText]","value":"text","description":"Dynamic attribute - type text - text - Required - NO"},{"key":"contact[0][dynamicAttributeDate]","value":"YYYY-MM-DD","description":"Dynamic attribute - type date -  Date (format: YYYY-MM-DD) -Required - NO"},{"key":"contact[0][dynamicAttributeDateTime]","value":"YYYY-MM-DD HH:MM","description":"Dynamic attribute - type dateTime - Date and time (format: YYYY-MM-DD HH:MM) - Required - NO"},{"key":"contact[0][dynamicAttributeTime]","value":"HH:MM","description":"Dynamic attribute type time - Time (format: HH:MM) - Required - NO"},{"key":"contact[0][contactAccess][1]","value":"1","description":"Tablica asocjacyjna z parą identyfikator grupy umożliwiajacej dostęp do kontaktu => 1 dla dodania grupy"},{"key":"contact[0][facebook][id]","value":"1","description":"Facebook ID"},{"key":"contact[0][facebook][name]","value":"User Name","description":"Nazwa użytkownika"},{"key":"contact[0][facebook][first_name]","value":"FirstName","description":"Imię"},{"key":"contact[0][facebook][last_name]","value":"LastName","description":"Nazwisko"},{"key":"contact[0][source][utm_campaign]","value":"utm_campaign_test","description":"Nazwa kampanii UTM"},{"key":"contact[0][source][utm_content]","value":"utm_content_test\t","description":"Treść kampanii UTM"},{"key":"contact[0][source][utm_medium]","value":"utm_medium_test","description":"Medium kampanii UTM"},{"key":"contact[0][source][utm_source]","value":"utm_source_test","description":"Źródło kampanii UTM"},{"key":"contact[0][source][utm_term]","value":"utm_source_test","description":"Hasło kampanii UTM"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-encoding","value":"gzip","description":"The type of encoding used on the data."},{"key":"content-length","value":"354","description":"The length of the response body in octets (8-bit bytes)"},{"key":"content-type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"date","value":"Thu, 28 Sep 2017 12:09:55 GMT","description":"The date and time that the message was sent"},{"key":"vary","value":"Accept-Encoding","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"x-content-type-options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"}],"cookie":[],"responseTime":"1411","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"contact\": {\n            \"1\": {\n                \"id\": \"58\",\n                \"monitoringCode\": \"<iframe frameborder=\\\"0\\\" src=\\\"https://CLIENT_PANEL_ADDRESS/contactcookie/qshHW7U1ZXjyOrjBaxs2HhO0uUtwl7ssvTW0c094DVM./ae2fe5da86bc20e69622e070f12833ba\\\" style=\\\"border: none; display:none; width:0px; height:0px;\\\"></iframe>\",\n                \"monitoringLink\": \"https://CLIENT_PANEL_ADDRESS/contactcookie/qshHW7U1ZXjyOrjBaxs2HhO0uUtwl7ssvTW0c094DVM./ae2fe5da86bc20e69622e070f12833ba\",\n                \"monitoringPixel\": \"https://CLIENT_PANEL_ADDRESS/systemnc/contactcookiepixel/qshHW7U1ZXjyOrjBaxs2HhO0uUtwl7ssvTW0c094DVM./ae2fe5da86bc20e69622e070f12833ba.png\",\n                \"hashIdContact\": \"qshHW7U1ZXjyOrjBaxs2HhO0uUtwl7ssvTW0c094DVM.\",\n                \"profilePageUrl\": {\n                    \"1\": \"https://CLIENT_PANEL_ADDRESS/contact/profile/show/ckd4M1JNVUFwejJJYUFzS0F0V1BEdz09/qshHW7U1ZXjyOrjBaxs2HhO0uUtwl7ssvTW0c094DVM.\",\n                    \"2\": \"https://CLIENT_PANEL_ADDRESS/contact/profile/show/WmluWjRQbjg0bEI1dFVFMkNCNGpOZz09/qshHW7U1ZXjyOrjBaxs2HhO0uUtwl7ssvTW0c094DVM.\"\n                },\n                \"code\": 303,\n                \"message\": \"Not Added - the same contact already exists\",\n                \"errorCode\": 1\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"64917262-7ef4-c3d2-ba2c-cb572b223c7e"},{"name":"Adding tags to contacts with a given ID","id":"d7d75e02-534c-883a-3a49-59683d9da7e1","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"tag[0]","value":"TAG_NAME","type":"text"},{"key":"tag[1]","value":"TAG_NAME_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/tag","description":"<p>In order to add tags to contact you should send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/tag</code></p>\n<blockquote>\n<p>Parameter <code>TAG NAME</code> and <code>TAG NAME_2</code> should be replaced with a tag which is to be added. If the chosen tag doesn’t exist it will be automatically created in iPresso and added to a given contact.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","tag"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"3f99c58d-be20-e28d-5cb3-52e188795278","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"tag[0]","value":"LINKTEST","type":"text"},{"key":"tag[1]","value":"111","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/tag"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"code\": 201,\n    \"data\": true,\n    \"message\": \"Created\"\n}"}],"_postman_id":"d7d75e02-534c-883a-3a49-59683d9da7e1"},{"name":"Adding activity to a monitored contact","id":"6e6ec20f-60c3-ab1b-cf1a-7355e7bcb5b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Activity key</p>\n","key":"activity[0][key]","value":"ACTIVITY_1"},{"description":"<p>activity date</p>\n","key":"activity[0][date]","value":"2017-01-02 00:00:00"},{"description":"<p>Setting the value '7' for the key parameter KEY_PARAM_1</p>\n","key":"activity[0][parameter][KEY_PARAM_1]","value":"7"},{"description":"<p>Setting the 'string' value for the key parameter KEY_PARAM_2</p>\n","key":"activity[0][parameter][KEY_PARAM_2]","value":"string"},{"key":"activity[0][parameter][MANY_OF_MANY][0]","value":"first","description":"<p>Setting the 'first' value for the key parameter MANY_OF_MANY</p>\n","type":"text"},{"key":"activity[0][parameter][MANY_OF_MANY][1]","value":"second","description":"<p>Setting the 'second' value for the key parameter MANY_OF_MANY</p>\n","type":"text"},{"description":"<p>Activity key</p>\n","key":"activity[1][key]","value":"ACTIVITY_2"},{"description":"<p>activity date</p>\n","key":"activity[1][date]","value":"2017-01-02 00:00:00"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/activity","description":"<p>In order to add an activity to a monitored contact send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/activity</code></p>\n<blockquote>\n<p>Parameter <code>ACTIVITY_1</code> and <code>ACTIVITY_2</code> should be replaced with KEY of the activity.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>DATE</code> could be replaced by date and hour of activity creation in format : <code>yyyy-mm-dd hh:mm:ss</code> . This applies to historical provisioning of activities where impose of date from the past is required. With current activity addition parameter should be skipped what implies setting date and hour in format adequate to current Customer time zone.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>KEY_PARAM_1</code> and <code>KEY_PARAM_2</code> should be replaced with parameter key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>MANY_OF_MANY</code> should be replaced with parameter key.</p>\n</blockquote>\n<p> Codes:</p>\n<ul>\n<li>201 - the main response code HTTP 201 will be returned, if at least one of the transfered activities is added properly.</li>\n<li>403 -the main response code HTTP 403 will be returned, if at least one of the transfered activities has wrong parameter key.</li>\n<li>404 - the main response code HTTP 404 will be returned, if none of the transferred activities is added.</li>\n</ul>\n<p>The returned <code>data</code> parameter contains details regarding additions of particular activities.</p>\n<p>Maximum recommended number of activities added in one request is 50.</p>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","activity"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"6b74b96b-3ed6-531d-147e-530072978600","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"activity[0][key]","value":"ACTIVITY_1","description":"Klucz aktywności"},{"key":"activity[0][date]","value":"2017-01-02 00:00:00","description":"Data aktywności"},{"key":"activity[0][parameter][KEY_PARAM_1]","value":"7","description":"Ustawienie wartości '7' przy parametrze o kluczu KEY_PARAM_1"},{"key":"activity[0][parameter][KEY_PARAM_2]","value":"string","description":"Ustawienie wartości 'string' przy parametrze o kluczu KEY_PARAM_2"},{"key":"activity[0][parameter][MANY_OF_MANY][0]","value":"first","type":"text"},{"key":"activity[0][parameter][MANY_OF_MANY][1]","value":"second","type":"text"},{"key":"activity[1][key]","value":"ACTIVITY_2","description":"Klucz aktywności"},{"key":"activity[1][date]","value":"2017-01-02 00:00:00","description":"Data aktywności"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/activity"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 10:29:52 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"158","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"19c40b08-ac24-c269-8406-cfb14d975b3b","name":"Error-Wrong Key","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"activity[0][key]","value":"ACTIVITY_1","description":"Klucz aktywności"},{"key":"activity[0][date]","value":"2017-01-02 00:00:00","description":"Data aktywności"},{"key":"activity[0][parameter][KEY_PARAM_1]","value":"7","description":"Ustawienie wartości '7' przy parametrze o kluczu KEY_PARAM_1"},{"key":"activity[0][parameter][KEY_PARAM_2]","value":"string","description":"Ustawienie wartości 'string' przy parametrze o kluczu KEY_PARAM_2"},{"key":"activity[1][key]","value":"ACTIVITY_2","description":"Klucz aktywności"},{"key":"activity[1][date]","value":"2017-01-02 00:00:00","description":"Data aktywności"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/activity"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"168","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 10:59:21 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"138","body":"{\n    \"code\": 201,\n    \"data\": [\n        {\n            \"code\": 404,\n            \"message\": \"Not Found\",\n            \"errorCode\": 12,\n            \"data\": {\n                \"key\": \"ACTIVITY_1\",\n                \"date\": \"2017-01-02 00:00:00\",\n                \"parameter\": {\n                    \"integerww\": \"7\",\n                    \"stringww\": \"string\"\n                }\n            }\n        }\n    ],\n    \"message\": \"Created\"\n}"},{"id":"dff242ff-34c3-94a2-ca66-51d2c497eb46","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/activity"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 10:32:10 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"148","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":10}"}],"_postman_id":"6e6ec20f-60c3-ab1b-cf1a-7355e7bcb5b0"},{"name":"Adding activity to an anonymous contact","id":"1797fae8-3c5a-438b-80d2-30c524aaf02d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Activity key</p>\n","key":"activity[0][key]","value":"ACTIVITY_1"},{"description":"<p>activity date</p>\n","key":"activity[0][date]","value":"2017-01-02 00:00:00"},{"description":"<p>Setting the value '7' for the key parameter KEY_PARAM_1</p>\n","key":"activity[0][parameter][KEY_PARAM_1]","value":"7"},{"description":"<p>Setting the 'string' value for the key parameter KEY_PARAM_2</p>\n","key":"activity[0][parameter][KEY_PARAM_2]","value":"string"},{"key":"activity[0][parameter][MANY_OF_MANY][0]","value":"first","description":"<p>Setting the 'first' value for the key parameter MANY_OF_MANY</p>\n","type":"text"},{"key":"activity[0][parameter][MANY_OF_MANY][1]","value":"second","description":"<p>Setting the 'second' value for the key parameter MANY_OF_MANY</p>\n","type":"text"},{"description":"<p>Activity key</p>\n","key":"activity[1][key]","value":"ACTIVITY_2"},{"description":"<p>activity date</p>\n","key":"activity[1][date]","value":"2017-01-02 00:00:00"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/anonymous/ID_CONTACT_ANONYM/activity","description":"<p>In order to add an activity to an anonymous contact send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/anonymous/ID_CONTACT_ANONYM/activity</code></p>\n<blockquote>\n<p>Parameter <code>ACTIVITY_1</code> and <code>ACTIVITY_2</code> should be replaced with KEY of the activity.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>DATE</code> could be replaced by date and hour of activity creation in format : <code>yyyy-mm-dd hh:mm:ss</code> . This applies to historical provisioning of activities where impose of date from the past is required. With current activity addition parameter should be skipped what implies setting date and hour in format adequate to current Customer time zone.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>KEY_PARAM_1</code> and <code>KEY_PARAM_2</code> should be replaced with parameter key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>MANY_OF_MANY</code> should be replaced with parameter key.</p>\n</blockquote>\n<p> Codes:</p>\n<ul>\n<li>201 - the main response code HTTP 201 will be returned, if at least one of the transfered activities is added properly.</li>\n<li>403 -the main response code HTTP 403 will be returned, if at least one of the transfered activities has wrong parameter key.</li>\n<li>404 - the main response code HTTP 404 will be returned, if none of the transferred activities is added.</li>\n</ul>\n<p>The returned <code>data</code> parameter contains details regarding additions of particular activities.</p>\n<p>Maximum recommended number of activities added in one request is 50.</p>\n","urlObject":{"protocol":"https","path":["api","2","anonymous","ID_CONTACT_ANONYM","activity"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"2c590f2a-05ce-4522-bcbd-8049cd140389","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"activity[0][key]","value":"ACTIVITY_1","description":"Klucz aktywności"},{"key":"activity[0][date]","value":"2017-01-02 00:00:00","description":"Data aktywności"},{"key":"activity[0][parameter][KEY_PARAM_1]","value":"7","description":"Ustawienie wartości '7' przy parametrze o kluczu KEY_PARAM_1"},{"key":"activity[0][parameter][KEY_PARAM_2]","value":"string","description":"Ustawienie wartości 'string' przy parametrze o kluczu KEY_PARAM_2"},{"key":"activity[0][parameter][MANY_OF_MANY][0]","value":"first","type":"text"},{"key":"activity[0][parameter][MANY_OF_MANY][1]","value":"second","type":"text"},{"key":"activity[1][key]","value":"ACTIVITY_2","description":"Klucz aktywności"},{"key":"activity[1][date]","value":"2017-01-02 00:00:00","description":"Data aktywności"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/anonymous/ID_CONTACT_ANONYM/activity"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 10:29:52 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"2c4889b2-d0e1-4fdd-884e-8fd33dc23962","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/anonymous/ID_CONTACT_ANONYM/activity"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 10:32:10 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":10}"},{"id":"f7d3adf1-d21e-4fa0-b099-4f8b812610b8","name":"Error-Wrong Key","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"activity[0][key]","value":"ACTIVITY_1","description":"Klucz aktywności"},{"key":"activity[0][date]","value":"2017-01-02 00:00:00","description":"Data aktywności"},{"key":"activity[0][parameter][KEY_PARAM_1]","value":"7","description":"Ustawienie wartości '7' przy parametrze o kluczu KEY_PARAM_1"},{"key":"activity[0][parameter][KEY_PARAM_2]","value":"string","description":"Ustawienie wartości 'string' przy parametrze o kluczu KEY_PARAM_2"},{"key":"activity[1][key]","value":"ACTIVITY_2","description":"Klucz aktywności"},{"key":"activity[1][date]","value":"2017-01-02 00:00:00","description":"Data aktywności"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/anonymous/ID_CONTACT_ANONYM/activity"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"168","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 10:59:21 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"data\": [\n        {\n            \"code\": 404,\n            \"message\": \"Not Found\",\n            \"errorCode\": 12,\n            \"data\": {\n                \"key\": \"ACTIVITY_1\",\n                \"date\": \"2017-01-02 00:00:00\",\n                \"parameter\": {\n                    \"integerww\": \"7\",\n                    \"stringww\": \"string\"\n                }\n            }\n        }\n    ],\n    \"message\": \"Created\"\n}"}],"_postman_id":"1797fae8-3c5a-438b-80d2-30c524aaf02d"},{"name":"Adding category to a contact","id":"38cbb27d-9954-4ce1-84d5-7e14535f51ee","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/category","description":"<p>In order to add category to a contact send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/category</code></p>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with contact’s ID.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_CATEGORY</code>  should be replaced with ID’s category.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","category"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"902afc44-1d9c-937f-d3b5-d86b843e2bbc","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"category[0]","value":"ID_CATEGORY","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/category"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 10:47:01 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"221","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"29e15868-b405-72fa-56ca-b6afbfac9ee8","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"category[0]","value":"ID_CATEGORY","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/category"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:07:38 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"222","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":44}"}],"_postman_id":"38cbb27d-9954-4ce1-84d5-7e14535f51ee"},{"name":"Connect contacts","id":"c9b680f0-0646-53f0-5bbf-c879470f7183","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"connection[0]","value":"ID_CONTACT_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/connection","description":"<p>In order to connect contacts send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADRESS/api/2/contact/ID_CONTACT/connection</code></p>\n<blockquote>\n<p>Parameter <code>ID_CONTACT_2</code> should be replaced with <code>ID_CONTACT</code> of the contact with which the connection is to be established.</p>\n</blockquote>\n<p> In order to be able to establish connections between contacts it is necessary for the contacts to possess types allowing for such connections(e.g. <code>Parent -&gt; Child</code>). Types of contacts may be set in iPresso and API panels</p>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","connection"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"8ffcfb43-1196-004d-e119-be13432691d0","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIz"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"connection[0]","value":"ID_CONTACT_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/connection"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"32","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:56:56 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"237","body":"{\"code\":201,\"message\":\"Created\"}"},{"id":"5d7ab2ef-8ebd-df29-d1a7-e3c3e4a4c12b","name":"Forbidden","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIz"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"connection[0]","value":"ID_CONTACT_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/connection"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:58:44 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"107","body":"{\"code\":403,\"message\":\"Forbidden\",\"errorCode\":46}"},{"id":"d8646b79-27dd-eef5-8050-d99c594a2c1c","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIz"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"connection[0]","value":"ID_CONTACT_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/connection"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:59:36 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"137","body":"{\"code\":404,\"message\":\"Not Found\"}"}],"_postman_id":"c9b680f0-0646-53f0-5bbf-c879470f7183"},{"name":"Adding action to a monitored contact","id":"239d36dc-bee0-b709-62ae-7f8888104f77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Action key</p>\n","key":"action[0][key]","value":"ACTION_1"},{"description":"<p>Action date</p>\n","key":"action[0][date]","value":"YYYY-MM-DD HH:MM:SS"},{"description":"<p>Setting the for the key parameter ACTION_PARAM_KEY_1</p>\n","key":"action[0][parameter][ACTION_PARAM_KEY_1]","value":"VALUE_1"},{"description":"<p>Setting the for the key parameter ACTION_PARAM_KEY_2</p>\n","key":"action[0][parameter][ACTION_PARAM_KEY_2]","value":"VALUE_2"},{"description":"<p>Setting the for the key parameter MANY_OF_MANY</p>\n","key":"action[0][parameter][MANY_OF_MANY][0]","type":"text","value":"VALUE_1"},{"description":"<p>Setting the for the key parameter MANY_OF_MANY</p>\n","key":"action[0][parameter][MANY_OF_MANY][1]","type":"text","value":"VALUE_2"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/action","description":"<p>In order to add action to a monitored contact send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADRESS/api/2/contact/ID_CONTACT/action</code></p>\n<blockquote>\n<p>Parameter <code>ACTION_1</code> should be replaced with action KEY.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>DATE</code> could be replaced by date and hour of activity creation in format : <code>yyyy-mm-dd hh:mm:ss</code> . This applies to historical provisioning of activities where impose of date from the past is required. With current activity addition parameter should be skipped what implies setting date and hour in format adequate to current Customer time zone.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ACTION_PARAM_KEY_1</code> and <code>ACTION_PARAM_KEY_2</code> should be replaced with parameter key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>MANY_OF_MANY</code> should be replaced with parameter key.</p>\n</blockquote>\n<p>Codes:</p>\n<ul>\n<li>201 - the main response code HTTP 201 will be returned, if at least one of the transfered actions is added properly.</li>\n<li>403 - the main response code HTTP 403 will be returned, if at least one of the transfered actions has wrong parameter key.</li>\n<li>404 - the main response code HTTP 404 will be returned, if none of the transferred actions is added.</li>\n</ul>\n<p>The returned <code>data</code> parameter contains details regarding additions of particular actions.</p>\n<p>Maximum recommended number of actions added in one request is 50.</p>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","action"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"120cc5ca-ddbd-39cd-c963-f47296c963fb","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"action[0][key]","value":"ACTION_1","type":"text"},{"key":"action[0][date]","value":"YYYY-MM-DD HH:MM:SS","type":"text"},{"key":"action[0][parameter][ACTION_PARAM_KEY_1]","value":"VALUE_1","type":"text"},{"key":"action[0][parameter][ACTION_PARAM_KEY_2]","value":"VALUE_2","type":"text"},{"key":"action[0][parameter][MANY_OF_MANY][0]","value":"VALUE_1","type":"text"},{"key":"action[0][parameter][MANY_OF_MANY][1]","value":"VALUE_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/action"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 07:17:53 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"329","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"1e1a9aa5-68ba-f871-1327-d03b7b55d107","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"action[0][key]","value":"ACTION_1"},{"key":"action[0][date]","value":"YYYY-MM-DD HH:MM:SS"},{"key":"action[0][parameter][ACTION_PARAM_KEY_1]","value":"VALUE_1"},{"key":"action[0][parameter][ACTION_PARAM_KEY_2]","value":"VALUE_2"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/action"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"159","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 07:44:04 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"203","body":"{\n    \"code\": 404,\n    \"data\": [\n        {\n            \"code\": 404,\n            \"message\": \"Not Found\",\n            \"errorCode\": 12,\n            \"data\": {\n                \"key\": \"ACTION_1\",\n                \"date\": \"YYYY-MM-DD HH:MM:SS\",\n                \"parameter\": {\n                    \"ACTION_PARAM_KEY_1\": \"VALUE_1\",\n                    \"ACTION_PARAM_KEY_2\": \"VALUE_2\"\n                }\n            }\n        }\n    ],\n    \"message\": \"Not Found\"\n}"}],"_postman_id":"239d36dc-bee0-b709-62ae-7f8888104f77"},{"name":"Adding action to an anonymous contact","id":"5d153a54-2f27-4238-a26c-0b3a67d911f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"action[0][key]","value":"ACTION_1","description":"<p>Action key</p>\n"},{"key":"action[0][date]","value":"YYYY-MM-DD HH:MM:SS","description":"<p>Action date</p>\n"},{"key":"action[0][parameter][ACTION_PARAM_KEY_1]","value":"VALUE_1","description":"<p>Setting the for the key parameter ACTION_PARAM_KEY_1</p>\n"},{"key":"action[0][parameter][ACTION_PARAM_KEY_2]","value":"VALUE_2","description":"<p>Setting the for the key parameter ACTION_PARAM_KEY_2</p>\n"},{"key":"action[0][parameter][MANY_OF_MANY][0]","value":"VALUE_1","description":"<p>Setting the for the key parameter MANY_OF_MANY</p>\n","type":"text"},{"key":"action[0][parameter][MANY_OF_MANY][1]","value":"VALUE_2","description":"<p>Setting the for the key parameter MANY_OF_MANY</p>\n","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/anonymous/ID_CONTACT_ANONYM/action","description":"<p>In order to add action to an anonymous contact send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADRESS/api/2/anonymous/ID_CONTACT_ANONYM/action</code></p>\n<blockquote>\n<p>Parameter <code>ACTION_1</code> should be replaced with action KEY.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>DATE</code> could be replaced by date and hour of activity creation in format : <code>yyyy-mm-dd hh:mm:ss</code> . This applies to historical provisioning of activities where impose of date from the past is required. With current activity addition parameter should be skipped what implies setting date and hour in format adequate to current Customer time zone.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ACTION_PARAM_KEY_1</code> and <code>ACTION_PARAM_KEY_2</code> should be replaced with parameter key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>MANY_OF_MANY</code> should be replaced with parameter key.</p>\n</blockquote>\n<p>Codes:</p>\n<ul>\n<li>201 - the main response code HTTP 201 will be returned, if at least one of the transfered actions is added properly.</li>\n<li>403 - the main response code HTTP 403 will be returned, if at least one of the transfered actions has wrong parameter key.</li>\n<li>404 - the main response code HTTP 404 will be returned, if none of the transferred actions is added.</li>\n</ul>\n<p>The returned <code>data</code> parameter contains details regarding additions of particular actions.</p>\n<p>Maximum recommended number of actions added in one request is 50.</p>\n","urlObject":{"protocol":"https","path":["api","2","anonymous","ID_CONTACT_ANONYM","action"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"bc3e5594-a979-406b-8ff5-66f5f1b0cbe0","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"action[0][key]","value":"ACTION_1","type":"text"},{"key":"action[0][date]","value":"YYYY-MM-DD HH:MM:SS","type":"text"},{"key":"action[0][parameter][ACTION_PARAM_KEY_1]","value":"VALUE_1","type":"text"},{"key":"action[0][parameter][ACTION_PARAM_KEY_2]","value":"VALUE_2","type":"text"},{"key":"action[0][parameter][MANY_OF_MANY][0]","value":"VALUE_1","type":"text"},{"key":"action[0][parameter][MANY_OF_MANY][0]","value":"VALUE_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/anonymous/ID_CONTACT_ANONYM/action"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 07:17:53 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"8d8c12e4-135d-4b9b-8b37-57d06f468955","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"action[0][key]","value":"ACTION_1"},{"key":"action[0][date]","value":"YYYY-MM-DD HH:MM:SS"},{"key":"action[0][parameter][ACTION_PARAM_KEY_1]","value":"VALUE_1"},{"key":"action[0][parameter][ACTION_PARAM_KEY_2]","value":"VALUE_2"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/anonymous/ID_CONTACT_ANONYM/action"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"159","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 07:44:04 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"data\": [\n        {\n            \"code\": 404,\n            \"message\": \"Not Found\",\n            \"errorCode\": 12,\n            \"data\": {\n                \"key\": \"ACTION_1\",\n                \"date\": \"YYYY-MM-DD HH:MM:SS\",\n                \"parameter\": {\n                    \"ACTION_PARAM_KEY_1\": \"VALUE_1\",\n                    \"ACTION_PARAM_KEY_2\": \"VALUE_2\"\n                }\n            }\n        }\n    ],\n    \"message\": \"Not Found\"\n}"}],"_postman_id":"5d153a54-2f27-4238-a26c-0b3a67d911f4"},{"name":"Adding consents to contacts","id":"5834791e-08dc-7987-e600-695e0ef01696","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"agreement[AGREEMENT]","value":"AGREEMENT_STATUS","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/agreement","description":"<p>In order to add consent send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADRESS/api/2/contact/ID_CONTACT/agreement</code>.</p>\n<p>In the request you should include consent containing associative array the key to which is consent’s ID or API key, and whose content is consent status.</p>\n<blockquote>\n<p>Parameter <code>AGREEMENT</code> should be replaced with ID number or API key of the consent. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>AGREEMENT_STATUS</code> should be replaced with ID consent status. </p>\n</blockquote>\n<p>Types of statuses:</p>\n<ul>\n<li><p>1 - add consent,</p>\n</li>\n<li><p>2 - delete consent.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","agreement"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"609fea96-3290-d90d-dfdd-1047680ecc02","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"agreement[1]","value":"1","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/agreement/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:23:12 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"339","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"ae438d31-bd17-9017-e693-c092d11c117e","name":"error-Not Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"agreement[1]","value":"1","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/agreement/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:29:59 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"255","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":44}"}],"_postman_id":"5834791e-08dc-7987-e600-695e0ef01696"},{"name":"Setting contact types","id":"89b33ee2-2f83-1c89-3948-dfd4c2d22eb5","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"type","value":"TYPE_NAME","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/type","description":"<p>In order to set type of a contact send <code>POST</code> request to the URL:  <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/type</code></p>\n<blockquote>\n<p>Parameter <code>TYPE_NAME</code> should be replaced with type name.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","type"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"b261af9d-eac3-39a8-01da-5ba814214908","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"type","value":"TYPE_NAME","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/type"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:23:33 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"170","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"8d48046a-2d8e-a58b-1bd5-255ed8fb4cd4","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"type","value":"TYPE_NAME","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/type"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:23:52 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"166","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":44}"}],"_postman_id":"89b33ee2-2f83-1c89-3948-dfd4c2d22eb5"},{"name":"Searching contact actions and activities","id":"7e3ce391-4d79-422f-addf-58b4c8bbd9f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>The \"date from\" of the activity/action</p>\n","key":"activity[dateFrom]","value":"YYYY-MM-DD HH:MM:SS"},{"description":"<p>The \"date to\" of the activity/action</p>\n","key":"activity[dateTo]","value":"YYYY-MM-DD HH:MM:SS"},{"description":"<p>Activity/Action API key</p>\n","key":"activity[key][0]","value":"ACTIVITY_KEY"},{"description":"<p>Results page</p>\n","key":"page","value":"VALUE"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/activity/search?","description":"<p>In order to search for actions and/or contact activity, <code>POST</code> request should be sent to the URL:</p>\n<p><code>https://CLIENT_PANEL_ADRESS/api/2/contact/ID_CONTACT/activity/search?</code></p>\n<blockquote>\n<p>The <code>dateFrom</code> parameter should be replaced with the start date of the activity/action period </p>\n</blockquote>\n<blockquote>\n<p>The <code>dateTo</code> parameter should be replaced with the end date of the activity/action period </p>\n</blockquote>\n<blockquote>\n<p>The <code>ACTIVITY_KEY</code> parameter should be replaced with the Activity/Action API key. </p>\n</blockquote>\n<blockquote>\n<p>The <code>page</code> parameter should be replaced with the value of the page you want to display. </p>\n</blockquote>\n<p>The maximum number of displayed activities/actions on the page is 1000.</p>\n<p>Maximum number of returned pages is 10.</p>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","activity","search"],"host":["CLIENT_PANEL_ADDRESS"],"query":[{"key":"","value":null}],"variable":[]}},"response":[{"id":"85608d6f-4206-4a79-a15f-b12830c7ec5d","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"activity[dateFrom]","value":"2020-12-12 01:25:30"},{"key":"activity[dateTo]","value":"2020-12-12 01:25:30"},{"key":"activity[key][0]","value":"contact_add_by_api"},{"key":"page","value":"1"}]},"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/contact/12345/activity/search","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","contact","12345","activity","search"],"query":[{"key":"activity[dateFrom]","value":"2020-12-12","disabled":true},{"key":"activity[dateTo]","value":"2022-12-12","disabled":true},{"key":"activity[key][0]","value":"contact_add_by_api","disabled":true},{"key":"page","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"159","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 07:44:04 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"203","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"total\": 1,\n        \"rows\": [\n            {\n                \"activity_date\": \"2022-11-24 08:29:33\",\n                \"id_contact\": 12345,\n                \"activity_key\": \"contact_add_by_api\",\n                \"activity_type\": 1\n            }\n        ],\n        \"allPage\": 1\n    },\n    \"message\": \"OK\"\n}"},{"id":"da8e7602-16dd-483a-bdd7-ea357b240361","name":"Error-Contact doesn't exist","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"activity[dateFrom]","value":"2020-12-12 01:25:30"},{"key":"activity[dateTo]","value":"2020-12-12 01:25:30"},{"key":"activity[key][0]","value":"contact_add_by_api"},{"key":"page","value":"1"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/activity/search"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"159","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 07:44:04 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"203","body":"{\n    \"code\": 404,\n    \"message\": \"Not found\",\n    \"errorCode\": 13\n}"}],"_postman_id":"7e3ce391-4d79-422f-addf-58b4c8bbd9f9"},{"name":"Mass addition of categories to contacts","id":"40e450f0-9369-f238-48b3-043602e870d8","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[ID_CONTACT][0]","value":"ID_CATEGORY_1"},{"key":"contact[ID_CONTACT][1]","value":"ID_CATEGORY_2"},{"key":"contact[ID_CONTACT_2][0]","value":"ID_CATEGORY_1"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/category","description":"<p>In order to perform mass addition of categories to contacts send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/category</code>. </p>\n<p>In request include multi-dimensional array contact containing contact IDs as keys and one-dimensional arrays containing category IDs as its contents.</p>\n<blockquote>\n<p>Parameter <code>ID_CATEGORY</code> should be replaced with ID’s category which is to be assigned.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact","category"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"1a991f21-33f8-6410-4058-60b0ec7f3ecd","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[ID_CONTACT][0]","value":"ID_CATEGORY_1","type":"text"},{"key":"contact[ID_CONTACT][1]","value":"ID_CATEGORY_2","type":"text"},{"key":"contact[ID_CONTACT_2][0]","value":"ID_CATEGORY_1","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/category"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:35:11 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"246","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"57a14d61-757c-16e3-3f78-6f8a347927e1","name":"error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[ID_CONTACT][0]","value":"ID_CATEGORY_1"},{"key":"contact[ID_CONTACT][1]","value":"ID_CATEGORY_2"},{"key":"contact[ID_CONTACT_2][0]","value":"ID_CATEGORY_1"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/category"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 13:36:51 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"223","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":51}"}],"_postman_id":"40e450f0-9369-f238-48b3-043602e870d8"},{"name":"Mass addition of consents to contacts","id":"7ded9c2a-01ac-fddb-6a77-d33265e1b3a2","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[ID_CONTACT_1][AGREEMENT_1]","value":"AGREEMENT_STATUS"},{"key":"contact[ID_CONTACT_2][AGREEMENT_2]","value":"AGREEMENT_STATUS"}]},"url":"https://CLIENT_PANEL_ADDRESS.pl/api/2/contact/agreement","description":"<p>In order to perform mass addition of consents to contacts send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADRESS/api/2/contact/agreement</code></p>\n<blockquote>\n<p>Parameter <code>AGREEMENT</code>should be replaced with ID or API key of the consent. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>AGREEMENT_STATUS</code> should be replaced with contact’s ID. </p>\n</blockquote>\n<p>Types of statuses:</p>\n<ul>\n<li><p>1 - add consent,</p>\n</li>\n<li><p>2 - delete consent.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","2","contact","agreement"],"host":["CLIENT_PANEL_ADDRESS","pl"],"query":[],"variable":[]}},"response":[{"id":"9eb2f86c-6da9-8df1-c4f4-487804068661","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIz"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[ID_CONTACT_1][AGREEMENT_1]","value":"1"},{"key":"contact[ID_CONTACT_2][AGREEMENT_2]","value":"2"}]},"url":"https://CLIENT_PANEL_ADDRESS.pl/api/2/contact/agreement/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 12:55:23 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"226","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"cf5d2e67-95e7-800f-e1fe-fc2513928554","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIz"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[ID_CONTACT_1][ID_AGREEMENT_1]","value":"AGREEMENT_STATUS"},{"key":"contact[ID_CONTACT_2][ID_AGREEMENT_2]","value":"AGREEMENT_STATUS"}]},"url":"https://CLIENT_PANEL_ADDRESS.pl/api/2/contact/agreement/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 12:58:57 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"86","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":44}"}],"_postman_id":"7ded9c2a-01ac-fddb-6a77-d33265e1b3a2"},{"name":"Mass addition of activities to contacts","id":"93299f16-af1c-a285-f4bb-ec2b41545ee1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Activity API key</p>\n","key":"contact[CONTACT_ID_1][0][key]","value":"ACTIVITY_KEY_1"},{"description":"<p>Activity occurrence date - not required</p>\n","key":"contact[CONTACT_ID_1][0][date]","value":"2017-01-01 00:00:00"},{"description":"<p>Adding the value for the parameter with the key ACTIVITY_PARAM_KEY_1</p>\n","key":"contact[CONTACT_ID_1][0][parameter][ACTIVITY_PARAM_KEY_1]","value":"VALUE_1"},{"description":"<p>Adding the value for the parameter with the key ACTIVITY_PARAM_KEY_2</p>\n","key":"contact[CONTACT_ID_1][0][parameter][ACTIVITY_PARAM_KEY_2]","value":"VALUE_2"},{"key":"contact[CONTACT_ID_1][0][parameter][MANY_OF_MANY][0]","type":"text","value":"VALUE_1","description":"<p>Adding the value for the parameter with the key MANY_OF_MANY</p>\n"},{"key":"contact[CONTACT_ID_1][0][parameter][MANY_OF_MANY][1]","value":"VALUE_2","description":"<p>Adding the value for the parameter with the key MANY_OF_MANY</p>\n","type":"text"},{"description":"<p>Activity API key</p>\n","key":"contact[CONTACT_ID_2][0][key]","value":"ACTIVITY_KEY_2"},{"description":"<p>Activity occurrence date - not required</p>\n","key":"contact[CONTACT_ID_2][0][date]","value":"2017-01-01 00:00:00"},{"description":"<p>Adding the value for the parameter with the key ACTIVITY_PARAM_KEY_1</p>\n","key":"contact[CONTACT_ID_2][0][parameter][ACTIVITY_PARAM_KEY_1]","value":"VALUE_1"},{"description":"<p>Adding the value for the parameter with the key ACTIVITY_PARAM_KEY_2</p>\n","key":"contact[CONTACT_ID_2][0][parameter][ACTIVITY_PARAM_KEY_2]","value":"VALUE_2"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/activity","description":"<p>In order to perform mass addition of activities to contacts send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADRESS/api/2/contact/activity</code></p>\n<blockquote>\n<p>Parameter <code>ACTIVITY_KEY_1</code> and <code>ACTIVITY_KEY_2</code> should be replaced with KEY of the activity.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ACTIVITY_PARAM_KEY_1</code> and <code>ACTIVITY_PARAM_KEY_2</code> should be replaced with parameter key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>MANY_OF_MANY</code> should be replaced with parameter key.</p>\n</blockquote>\n<p>Maximum recommended number of activities added in one request is 50.</p>\n","urlObject":{"protocol":"https","path":["api","2","contact","activity"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"de06fd35-6009-1b5e-d2dc-97559c941755","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"","value":"","disabled":true}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[CONTACT_ID_1][0][key]","value":"ACTIVITY_KEY_1","description":"Klucz API aktywności"},{"key":"contact[CONTACT_ID_1][0][date]","value":"2017-01-01 00:00:00","description":"Data wystąpienia aktywności - niewymagane"},{"key":"contact[CONTACT_ID_1][0][parameter][ACTIVITY_PARAM_KEY_1]","value":"VALUE_1","description":"Dodanie wartości dla parametru o kluczu ACTIVITY_PARAM_KEY_1"},{"key":"contact[CONTACT_ID_1][0][parameter][ACTIVITY_PARAM_KEY_2]","value":"VALUE_2","description":"Dodanie wartości dla parametru o kluczu ACTIVITY_PARAM_KEY_2"},{"key":"contact[CONTACT_ID_1][0][parameter][MANY_OF_MANY][0]","value":"VALUE_1","type":"text"},{"key":"contact[CONTACT_ID_1][0][parameter][MANY_OF_MANY][1]","value":"VALUE_2","type":"text"},{"key":"contact[CONTACT_ID_2][0][key]","value":"ACTIVITY_KEY_2","description":"Klucz API aktywności"},{"key":"contact[CONTACT_ID_2][0][date]","value":"2017-01-01 00:00:00","description":"Data wystąpienia aktywności - niewymagane"},{"key":"contact[CONTACT_ID_2][0][parameter][ACTIVITY_PARAM_KEY_1]","value":"VALUE_1","description":"Dodanie wartości dla parametru o kluczu ACTIVITY_PARAM_KEY_1"},{"key":"contact[CONTACT_ID_2][0][parameter][ACTIVITY_PARAM_KEY_2]","value":"VALUE_2","description":"Dodanie wartości dla parametru o kluczu ACTIVITY_PARAM_KEY_2"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/activity"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 06:57:18 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"155","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"}],"_postman_id":"93299f16-af1c-a285-f4bb-ec2b41545ee1"},{"name":"Mass addition of actions to contacts","id":"e8f089ed-5c3a-3e5b-0389-3097b722a6d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIz"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Action API key</p>\n","key":"contact[ID_CONTACT_1][0][key]","value":"ACTION_1"},{"description":"<p>Action occurrence date - not required</p>\n","key":"contact[ID_CONTACT_1][0][date]","value":"YYYY-MM-DD HH:MM:SS"},{"description":"<p>Adding the value for the parameter with the key ACTION_PARAM_KEY_1</p>\n","key":"contact[ID_CONTACT_1][0][parameter][ACTION_PARAM_KEY_1]","value":"VALUE_1"},{"description":"<p>Adding the value for the parameter with the key ACTION_PARAM_KEY_2</p>\n","key":"contact[ID_CONTACT_1][0][parameter][ACTION_PARAM_KEY_2]","value":"VALUE_2"},{"key":"contact[CONTACT_ID_1][0][parameter][MANY_OF_MANY][0]","value":"VALUE_1","description":"<p>Adding the value for the parameter with the key MANY_OF_MANY</p>\n","type":"text"},{"key":"contact[CONTACT_ID_1][0][parameter][MANY_OF_MANY][0]","value":"VALUE_2","description":"<p>Adding the value for the parameter with the key MANY_OF_MANY</p>\n","type":"text"},{"description":"<p>Action API key</p>\n","key":"contact[ID_CONTACT_2][0][key]","value":"ACTION_2"},{"description":"<p>Action occurrence date - not required</p>\n","key":"contact[ID_CONTACT_2][0][date]","value":"YYYY-MM-DD HH:MM:SS"},{"description":"<p>Adding the value for the parameter with the key ACTION_PARAM_KEY_1</p>\n","key":"contact[ID_CONTACT_2][0][parameter][ACTION_PARAM_KEY_1]","value":"VALUE_1"},{"description":"<p>Adding the value for the parameter with the key ACTION_PARAM_KEY_2</p>\n","key":"contact[ID_CONTACT_2][0][parameter][ACTION_PARAM_KEY_2]","value":"VALUE_2"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/action","description":"<p>In order to perform mass addition of actions to contacts send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADRESS/api/2/contact/action</code></p>\n<blockquote>\n<p>Parameter <code>ACTION_1</code> and <code>ACTION_2</code> should be replaced with action KEY.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ACTION_PARAM_KEY_1</code> and <code>ACTION_PARAM_KEY_2</code> should be replaced with parameter key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>MANY_OF_MANY</code> should be replaced with parameter key.</p>\n</blockquote>\n<p>Maximum recommended number of actions added in one request is 50.</p>\n","urlObject":{"protocol":"https","path":["api","2","contact","action"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"ef0f24ef-ae58-678c-3f6e-74dc5edefe22","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIz"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[ID_CONTACT_1][0][key]","value":"ACTION_1"},{"key":"contact[ID_CONTACT_1][0][date]","value":"YYYY-MM-DD HH:MM:SS"},{"key":"contact[ID_CONTACT_1][0][parameter][ACTION_PARAM_KEY_1]","value":"VALUE_1"},{"key":"contact[ID_CONTACT_1][0][parameter][ACTION_PARAM_KEY_2]","value":"VALUE_2"},{"key":"contact[CONTACT_ID_1][0][parameter][MANY_OF_MANY][0]","value":"VALUE_1","type":"text"},{"key":"contact[CONTACT_ID_1][0][parameter][MANY_OF_MANY][1]","value":"VALUE_2","type":"text"},{"key":"contact[ID_CONTACT_2][0][key]","value":"ACTION_2"},{"key":"contact[ID_CONTACT_2][0][date]","value":"YYYY-MM-DD HH:MM:SS"},{"key":"contact[ID_CONTACT_2][0][parameter][ACTION_PARAM_KEY_1]","value":"VALUE_1"},{"key":"contact[ID_CONTACT_2][0][parameter][ACTION_PARAM_KEY_2]","value":"VALUE_2"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/action"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"44","description":""},{"key":"content-type","value":"text/json;charset=UTF-8","description":""},{"key":"date","value":"Fri, 06 Oct 2017 06:32:45 GMT","description":""},{"key":"x-content-type-options","value":"nosniff","description":""}],"cookie":[],"responseTime":"156","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"5f457e91-585b-c370-e9cd-75b84b24c314","name":"Error - Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic YXBpOmFwaS5BUEkuMTIz"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[ID_CONTACT_1][0][key]","value":"ACTION_1"},{"key":"contact[ID_CONTACT_1][0][date]","value":"YYYY-MM-DD HH:MM:SS"},{"key":"contact[ID_CONTACT_1][0][parameter][ACTION_PARAM_KEY_1]","value":"VALUE_1"},{"key":"contact[ID_CONTACT_1][0][parameter][ACTION_PARAM_KEY_2]","value":"VALUE_2"},{"key":"contact[ID_CONTACT_2][0][key]","value":"ACTION_2"},{"key":"contact[ID_CONTACT_2][0][date]","value":"YYYY-MM-DD HH:MM:SS"},{"key":"contact[ID_CONTACT_2][0][parameter][ACTION_PARAM_KEY_1]","value":"VALUE_1"},{"key":"contact[ID_CONTACT_2][0][parameter][ACTION_PARAM_KEY_2]","value":"VALUE_2"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/action"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"150","description":""},{"key":"content-type","value":"text/json;charset=UTF-8","description":""},{"key":"date","value":"Fri, 06 Oct 2017 06:36:43 GMT","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-content-type-options","value":"nosniff","description":""}],"cookie":[],"responseTime":"206","body":"{\n    \"code\": 201,\n    \"data\": {\n        \"ID_CONTACT_1\": {\n            \"code\": 400,\n            \"message\": \"Bad Request\",\n            \"errorCode\": 55,\n            \"data\": {\n                \"action\": {\n                    \"code\": 404,\n                    \"message\": \"Not Found\",\n                    \"errorCode\": 12,\n                    \"data\": {\n                        \"key\": \"ACTION_1\"\n                    }\n                }\n            }\n        },\n      \"ID_CONTACT_2\": {\n            \"code\": 400,\n            \"message\": \"Bad Request\",\n            \"errorCode\": 55,\n            \"data\": {\n                \"action\": {\n                    \"code\": 404,\n                    \"message\": \"Not Found\",\n                    \"errorCode\": 12,\n                    \"data\": {\n                        \"key\": \"ACTION_2\"\n                    }\n                }\n            }\n        }\n    },\n    \"message\": \"Created\"\n}"}],"_postman_id":"e8f089ed-5c3a-3e5b-0389-3097b722a6d1"},{"name":"Mass addition of tags to contacts","id":"fe97e56d-cdcc-cbcc-a8e0-9c2c0f5cfec5","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[ID_CONTACT_1]","value":"TAG_NAME_1"},{"key":"contact[ID_CONTACT_2]","value":"TAG_NAME_2"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/tag","description":"<p>In order to perform mass addition of tags to contacts send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/tag</code>. </p>\n<p>The request should include one-dimensional array category containing IDs of selected categories.</p>\n<blockquote>\n<p>Parameter <code>ID_CONTACT_1</code> and <code>ID_CONTACT_2</code> should be replaced with contact’s ID.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact","tag"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"51a61908-8a55-46fa-5bd9-79a9526db2cb","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[ID_CONTACT_1]","value":"TAG_NAME_1"},{"key":"contact[ID_CONTACT_2]","value":"TAG_NAME_2"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/tag"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 07:02:31 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"198","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"111e34db-5668-e9c2-46d7-342c91b8d70d","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[ID_CONTACT_1]","value":"TAG_NAME_1"},{"key":"contact[ID_CONTACT_2]","value":"TAG_NAME_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/tag"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 06:43:17 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"142","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":49}"}],"_postman_id":"fe97e56d-cdcc-cbcc-a8e0-9c2c0f5cfec5"},{"name":"Delete contact","id":"154693f5-1d95-941c-5998-b8c15a3f9963","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT","description":"<p>In order to delete a contact you should send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT</code></p>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"39330c9a-ea8f-6f0c-175f-790226b29279","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT "},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 09:22:43 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"303","body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"},{"id":"a676c91c-7317-d637-87f3-985f814441a6","name":"error-not found","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 09:25:35 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"277","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":44}"}],"_postman_id":"154693f5-1d95-941c-5998-b8c15a3f9963"},{"name":"Deleting contact’s tag","id":"792dec32-4d65-6e0a-03f9-88b20bafb0ab","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https:/CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/tag/ID_TAG","description":"<p>In order to delete contact’s tag send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/tag/ID_TAG</code></p>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with contact’s ID.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_TAG</code> should be replaced with ID of a tag.</p>\n</blockquote>\n","urlObject":{"port":"","path":["CLIENT_PANEL_ADDRESS","api","2","contact","ID_CONTACT","tag","ID_TAG"],"host":["https"],"query":[],"variable":[]}},"response":[{"id":"24f24427-c411-cd30-4e15-31c581f9ad3e","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https:/CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/tag/ID_TAG"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 10:30:27 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"146","body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"},{"id":"e9ef3890-705d-56d6-d5e1-c10ddfa0ae3a","name":"Error - Not Found","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https:/CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/tag/ID_TAG"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 10:32:16 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"238","body":"{\"code\":404,\"message\":\"Not Found\"}"}],"_postman_id":"792dec32-4d65-6e0a-03f9-88b20bafb0ab"},{"name":"Deleting contact’s category","id":"615c65ab-ff9c-d1df-ba5e-a56506311e0c","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https:/CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/category/ID_CATEGORY","description":"<p>In order to delete categories send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/category/ID_CATEGORY</code></p>\n<blockquote>\n<p>Parameter <code>ID_CATEGORY</code> should be replaced with ID’s category.</p>\n</blockquote>\n","urlObject":{"port":"","path":["CLIENT_PANEL_ADDRESS","api","2","contact","ID_CONTACT","category","ID_CATEGORY"],"host":["https"],"query":[],"variable":[]}},"response":[{"id":"3a6831ad-8316-c45e-50fa-76348722fe58","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https:/CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/category/ID_CATEGORY"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 11:02:56 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"235","body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"},{"id":"f9d75e9e-37c3-255c-f62e-1e895ec38dbf","name":"Error - Not Found","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https:/CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/category/ID_CATEGORY"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 11:03:42 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"182","body":"{\"code\":404,\"message\":\"Not Found\"}"}],"_postman_id":"615c65ab-ff9c-d1df-ba5e-a56506311e0c"},{"name":"Delete consent of a given ID or API key from a contact of a given ID","id":"8922aaee-3bd9-346e-06e5-64a49b947a47","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/agreement/ID_AGREEMENT","description":"<p>In order to delete consent of a given ID or API key from a contact of a given ID send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/agreement/AGREEMENT</code></p>\n<blockquote>\n<p>Parameter <code>AGREEMENT</code> should be replaced with consent’s ID or API key. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with contact’s ID.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","agreement","ID_AGREEMENT"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"5c718f5a-adae-1890-40e3-f0b20fe61c4e","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/agreement/AGREEMENT"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Tue, 03 Oct 2017 12:59:45 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"192","body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"}],"_postman_id":"8922aaee-3bd9-346e-06e5-64a49b947a47"},{"name":"Delete contact’s connections","id":"54476e47-3fa7-a356-54f1-d6649a55942f","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/connection/ID_CONTACT_2","description":"<p>In order to delete connections between contacts send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADRESS/api/2/contact/ID_CONTACT/connection/ID_CONTACT_2</code></p>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code>should be replaced with contact’s ID.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_CONTACT_2</code> should be replaced with the ID contact whose connect is to be deleted.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact","ID_CONTACT","connection","ID_CONTACT_2"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"9f38a220-45b3-54be-f399-3992abcd7b49","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/connection/ID_CONTACT_2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"27","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 05:58:28 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"127","body":"{\"code\":200,\"message\":\"OK\"}"},{"id":"44a6f061-4058-386f-38d2-0c84b8990cd7","name":"Error-Forbidden","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/ID_CONTACT/connection/ID_CONTACT_2"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 05:59:58 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"102","body":"{\"code\":403,\"message\":\"Forbidden\",\"errorCode\":47}"}],"_postman_id":"54476e47-3fa7-a356-54f1-d6649a55942f"}],"id":"a9d0c4d5-7020-5be1-00a0-3403c0dfa67c","_postman_id":"a9d0c4d5-7020-5be1-00a0-3403c0dfa67c","description":""},{"name":"Dynamic contact attributes","item":[{"name":"Get available attributes","id":"370a4135-2353-c9f1-b991-0aea4b20cf26","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute","description":"<p>In order to get dynamic attributes send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/attribute</code></p>\n","urlObject":{"protocol":"https","path":["api","2","attribute"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"2e7cb914-30e4-3936-6091-6ccb0a9ed9a6","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADRESS/api/2/attribute"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"2914","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:46:26 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"156","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"attribute\": {\n            \"email\": {\n                \"key\": \"email\",\n                \"type\": \"string\",\n                \"system\": 1\n            },\n            \"fname\": {\n                \"key\": \"fname\",\n                \"type\": \"string\",\n                \"system\": 1\n            },\n            \"lname\": {\n                \"key\": \"lname\",\n                \"type\": \"string\",\n                \"system\": 1\n            },\n            \"categoryId\": {\n                \"key\": \"categoryId\",\n                \"id\": 61,\n                \"type\": \"multiselect\",\n                \"name\": \"categoryId\",\n                \"options\": {\n                   \n                },\n                \"optionsByKey\": {\n                   \n                }\n            },\n            \"consumerfavorite\": {\n                \"key\": \"consumerfavorite\",\n                \"id\": 60,\n                \"type\": \"multiselect\",\n                \"name\": \"consumer_favorite\",\n                \"options\": {\n                    \"18\": \"w123\",\n                    \"19\": \"w323\"\n                },\n                \"optionsByKey\": {\n                    \"w1\": \"18\",\n                    \"w3\": \"19\"\n                },\n      },\n    },\n    \"message\": \"OK\"\n    }\n}"}],"_postman_id":"370a4135-2353-c9f1-b991-0aea4b20cf26"},{"name":"Edit attribute option","id":"1e8fc14a-12e4-6e49-c048-11ebb1177faf","request":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"option[value]","value":"OPTION_NAME","type":"text"},{"key":"option[key]","value":"NEW_OPTION_KEY","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATTRIBUTE_KEY/option/OPTION_KEY","description":"<p>In order to edit attribute option send <code>PUT</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATTRIBUTE_KEY/option/OPTION_KEY</code></p>\n<blockquote>\n<p>Parameter <code>ATTRIBUTE_KEY</code> should be replaced with attribute API key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>OPTION_KEY</code> should be replaced with option API key. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>NEW_OPTION_KEY</code> should be replaced with new option API key. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>OPTION_NAME</code> should be replaced with option name. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","attribute","ATTRIBUTE_KEY","option","OPTION_KEY"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"16a6dd23-987e-92f6-5c5f-281c403a0343","name":"Success 201","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"TOKEN"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"option[key]","value":"NEW_OPTION_KEY","type":"text"},{"key":"option[value]","value":"OPTION_NAME","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATTRIBUTE_KEY/option/OPTION_KEY"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"32","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 07:39:03 GMT","description":"The date and time that the message was sent"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.25","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"panel.ipresso.dev","path":"/","secure":false,"value":"da30eed51d21c312da91a42ea36adc9c","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":201,\"message\":\"Created\"}"},{"id":"1cd6580d-87a9-ff91-994a-ad8d70e7023a","name":"Error 404","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"TOKEN"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"option[key]","value":"NEW_OPTION_KEY","type":"text"},{"key":"option[value]","value":"OPTION_NAME","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATTRIBUTE_KEY/option/OPTION_KEY"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"50","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:44:56 GMT","description":"The date and time that the message was sent"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.25","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"panel.ipresso.dev","path":"/","secure":false,"value":"da30eed51d21c312da91a42ea36adc9c","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":104}"},{"id":"f1399765-ecf6-d526-aa3e-ddde87441a6d","name":"Error 404","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"TOKEN"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"option[key]","value":"NEW_OPTION_KEY","type":"text"},{"key":"option[value]","value":"OPTION_NAME","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATTRIBUTE_KEY/option/OPTION_KEY"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 06:42:30 GMT","description":"The date and time that the message was sent"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.25","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"panel.ipresso.dev","path":"/","secure":false,"value":"da30eed51d21c312da91a42ea36adc9c","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":65}"}],"_postman_id":"1e8fc14a-12e4-6e49-c048-11ebb1177faf"},{"name":"Add new dynamic attributes","id":"8122b008-2dcc-6bc1-7bd0-0fe57149af05","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"ATTRIBUTE_NAME"},{"key":"key","value":"ATTRIBUTE_KEY"},{"key":"type","value":"ATTRIBUTE_TYPE"},{"key":"precision","value":"ATTRIBUTE_PRECISION","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute","description":"<p>In order to add new dynamic attribute send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/attribute</code></p>\n<blockquote>\n<p>Parameter <code>ATTRIBUTE_NAME</code> should be replace with an attribute’s name. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ATTRIBUTE_KEY</code> should be replaced with attribute key. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ATTRIBUTE_TYPE</code> should be replaced with attribute type. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ATTRIBUTE_PRECISION</code> should be replaced with the number of decimal places in the floating-point numbers (only the decimal attribute).</p>\n</blockquote>\n<p><strong>Kinds of available attribute types:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>integer</td>\n<td>Numerical value</td>\n</tr>\n<tr>\n<td>string</td>\n<td>Text (up to 255 characters)</td>\n</tr>\n<tr>\n<td>decimal</td>\n<td>Floating point numbers</td>\n</tr>\n<tr>\n<td>checkbox</td>\n<td>True/false</td>\n</tr>\n<tr>\n<td>select</td>\n<td>True/false</td>\n</tr>\n<tr>\n<td>multiselect</td>\n<td>Many out of many</td>\n</tr>\n<tr>\n<td>text</td>\n<td>Text</td>\n</tr>\n<tr>\n<td>date</td>\n<td>Date (format: YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td>datetime</td>\n<td>Date and  time (format: YYYY-MM-DD HH:MM)</td>\n</tr>\n<tr>\n<td>time</td>\n<td>Time (format HH:MM)</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","2","attribute"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"388bc5c3-1328-9c54-7ef0-fe9c8b44863f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"ATTRIBUTE_NAME","type":"text"},{"key":"key","value":"ATTRIBUTE_KEY","type":"text"},{"key":"type","value":"ATTRIBUTE_TYPE","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"107","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:27:02 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"2530","body":"{\n    \"code\": 201,\n    \"data\": {\n        \"attribute\": {\n            \"id\": 64,\n            \"name\": \"test\",\n            \"key\": \"test\",\n            \"type\": \"string\"\n        }\n    },\n    \"message\": \"Created\"\n}"},{"id":"79613f72-2069-3452-184b-fc84eff22a8f","name":"Error-Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"ATTRIBUTE_NAME","type":"text"},{"key":"key","value":"ATTRIBUTE_KEY","type":"text"},{"key":"type","value":"ATTRIBUTE_TYPE","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute"},"status":"Found","code":302,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"102","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:37:53 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"213","body":"{\n    \"code\": 302,\n    \"data\": {\n        \"attribute\": {\n            \"name\": \"test\",\n            \"key\": \"test\",\n            \"type\": \"string\"\n        }\n    },\n    \"message\": \"Found\"\n}"}],"_postman_id":"8122b008-2dcc-6bc1-7bd0-0fe57149af05"},{"name":"Add attribute option","id":"86319036-018c-ced4-2cc4-e47cac5d247a","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"option[OPTION_KEY]","value":"OPTION_VALUE","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATRIBUTE_KEY/option","description":"<p>In order to add attribute option send <code>POST</code> request to the URL:  <code>https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATTRIBUTE_KEY/option</code></p>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the URL address of iPresso. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ATTRIBUTE_KEY</code> should be replaced with attribute API key. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>OPTION_KEY</code> should be replaced with option key. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>OPTION_VALUE</code> should be replaced with option name. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","attribute","ATRIBUTE_KEY","option"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"10ad5c5e-a3b7-52f5-6b9c-2b1af3ee2c16","name":"Success 201","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"TOKEN"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"option","value":"['OPTION_KEY1' => 'OPTION_VALUE']","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATTRIBUTE_KEY/option"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"32","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Thu, 12 Apr 2018 09:21:43 GMT","description":"The date and time that the message was sent"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.25","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"panel.qa11-ipresso.encja.eu","path":"/","secure":false,"value":"ae83775dd6e73bf76cc2af44642b005e","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":201,\"message\":\"Created\"}"},{"id":"8e944b50-5bf2-1173-e5bb-6db1d3896c95","name":"Error - Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"TOKEN"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"option","value":"['OPTION_KEY1' => 'OPTION_VALUE']","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATRIBUTE_KEY/option"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"32","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Thu, 12 Apr 2018 09:21:43 GMT","description":"The date and time that the message was sent"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.25","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"panel.qa11-ipresso.encja.eu","path":"/","secure":false,"value":"ae83775dd6e73bf76cc2af44642b005e","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Not Found\",\"errorCode\":65\n}"},{"id":"95ce408a-45f7-3d5c-b995-793b84932bb0","name":"Error - Bad Request","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"TOKEN"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"option","value":"['OPTION_KEY1' => 'OPTION_VALUE']","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATRIBUTE_KEY/option"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"32","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Thu, 12 Apr 2018 09:21:43 GMT","description":"The date and time that the message was sent"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.25","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"panel.qa11-ipresso.encja.eu","path":"/","secure":false,"value":"ae83775dd6e73bf76cc2af44642b005e","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"message\": \"Bad request\"\n}"}],"_postman_id":"86319036-018c-ced4-2cc4-e47cac5d247a"},{"name":"Delete attribute option","id":"f4ca4170-6e28-ddb0-be99-769031fddea0","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATTRIBUTE_KEY/option/OPTION_KEY","description":"<p>In order to delete attribute option send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATTRIBUTE_KEY/option/OPTION_KEY</code></p>\n<blockquote>\n<p>Parameter <code>ATTRIBUTE_KEY</code> should be replaced with attribute API key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>OPTION_KEY</code> should be replaced with option API key. </p>\n</blockquote>\n<p>Can't delete option used by contact. </p>\n","urlObject":{"protocol":"https","path":["api","2","attribute","ATTRIBUTE_KEY","option","OPTION_KEY"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"b4ad573a-64fc-096b-1ec9-8b507846da45","name":"Success 200","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"TOKEN"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATTRIBUTE_KEY/option/OPTION_KEY"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"27","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 06:30:29 GMT","description":"The date and time that the message was sent"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.25","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"panel.ipresso.dev","path":"/","secure":false,"value":"da30eed51d21c312da91a42ea36adc9c","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":200,\"message\":\"OK\"}"},{"id":"4c7649f9-b7d2-1bce-6bf3-50c4155a2c82","name":"Error 403","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"TOKEN"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATTRIBUTE_KEY/option/OPTION_KEY"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 06:31:16 GMT","description":"The date and time that the message was sent"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.25","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"panel.ipresso.dev","path":"/","secure":false,"value":"da30eed51d21c312da91a42ea36adc9c","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":403,\"message\":\"Forbidden\",\"errorCode\":64}"},{"id":"7039fc13-856b-e2b4-0476-9e46a4194251","name":"Error 404","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"TOKEN"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/ATTRIBUTE_KEY/option/OPTION_KEY"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 06:27:35 GMT","description":"The date and time that the message was sent"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.25","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"panel.ipresso.dev","path":"/","secure":false,"value":"da30eed51d21c312da91a42ea36adc9c","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":65}"}],"_postman_id":"f4ca4170-6e28-ddb0-be99-769031fddea0"}],"id":"2432c169-eba4-3a5e-b6c7-26bb63d87849","_postman_id":"2432c169-eba4-3a5e-b6c7-26bb63d87849","description":""},{"name":"Contact Activities","item":[{"name":"Get available activities","id":"aecd45a0-5990-2cc4-badf-06aaa93c9fb6","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/activity","description":"<p>In order to get available activities send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/activity</code></p>\n","urlObject":{"protocol":"https","path":["api","2","activity"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"5124b26e-e959-e54e-b860-f5aacc367ec9","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/activity/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"3265","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 06:30:09 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"212","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"activity\": {\n            \"ACTIVITY_ID\": {\n                \"id\": \"ACTIVITY_ID\",\n                \"name\": \"ACTIVITY_NAME\",\n                \"key\": \"ACTIVITY_KEY\",\n                \"jsKey\": \"JSON_KEY\",\n                \"parameter\": {\n                    \"PARAMETER_KEY\": {\n                        \"name\": \"PARAMETER_NAME\",\n                        \"key\": \"PARAMETER_KEY\",\n                        \"type\": \"PARAMETER_TYPE\"\n                    }\n                }\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"aecd45a0-5990-2cc4-badf-06aaa93c9fb6"},{"name":"Edit activity","id":"4e71e5fe-0c91-ca95-d886-ed8915416b79","request":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"NEW_ACTIVITY_NAME","type":"text"},{"key":"parameter[1][key]","value":"PARAMETER_KEY_1","type":"text"},{"key":"parameter[1][name]","value":"NEW_PARAMETER_NAME_1","type":"text"},{"key":"parameter[2][key]","value":"ADD_NEW_PARAMETER_KEY_2","type":"text"},{"key":"parameter[2][name]","value":"ADD_NEW_PARAMETER_NAME_2","type":"text"},{"key":"parameter[2][type]","value":"TYPE","type":"text"}]},"url":"https:/CLIENT_PANEL_ADDRESS/api/2/activity/ACTIVITY_KEY","description":"<p>In order to edit activity, send <code>PUT</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/activity/ACTIVITY_KEY</code></p>\n<blockquote>\n<p>Parameter <code>ACTIVITY_KEY</code> should be replaced with a name of an activity key.</p>\n</blockquote>\n<p><strong>The edit option allows you to change the activity name, change the name of activity parameters and add new parameters to existing activities. When adding new parameters to an existing activity, proceed in the same way as when adding a new activity (enter the name, key, and parameter type).</strong></p>\n<p>Available parameter types: </p>\n<ul>\n<li><code>integer</code> for numerical values, </li>\n<li><code>decimal</code> for floating point numbers, </li>\n<li><code>string</code> for text contents, </li>\n<li><code>datetime</code> for data and time, </li>\n<li><code>bool</code> for true/false values, </li>\n<li><code>multi</code> for dynamically generated table,</li>\n<li><code>dictionary</code> for dictionaries.</li>\n</ul>\n","urlObject":{"port":"","path":["CLIENT_PANEL_ADDRESS","api","2","activity","ACTIVITY_KEY"],"host":["https"],"query":[],"variable":[]}},"response":[{"id":"5ddd8901-5de9-e945-c1e0-2e84087241bf","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"activitytestww102","type":"text"},{"key":"parameter[1][key]","value":"integer","type":"text"},{"key":"parameter[1][name]","value":"zmiana nazwy","type":"text"},{"key":"parameter[1]type","value":"integer","type":"text"},{"key":"parameter[2][key]","value":"decimal6","type":"text"},{"key":"parameter[2][name]","value":"edit add","type":"text"},{"key":"parameter[2][type]","value":"decimal","type":"text"}]},"url":"https:/CLIENT_PANEL_ADDRESS/api/2/activity/ACTIVITY_KEY"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 06:01:14 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"513","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"3dce433f-4562-e668-8e9f-d9fd3d4a1076","name":"Error-Not Found","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"activitytestww102","type":"text"},{"key":"parameter[1][key]","value":"integer","type":"text"},{"key":"parameter[1][name]","value":"zmiana nazwy","type":"text"},{"key":"parameter[2][key]","value":"decimal6","type":"text"},{"key":"parameter[2][name]","value":"edit add","type":"text"},{"key":"parameter[2][type]","value":"decimal","type":"text"}]},"url":"https:/CLIENT_PANEL_ADDRESS/api/2/activity/ACTIVITY_KEY"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 06:04:33 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"139","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":12}"}],"_postman_id":"4e71e5fe-0c91-ca95-d886-ed8915416b79"},{"name":"Add new activity","id":"fcec486d-8e44-5dd5-c884-0cf2c3db26a4","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"key","value":"ACTIVITY_KEY","type":"text"},{"key":"name","value":"ACTIVITY_NAME","type":"text"},{"key":"parameter[1][key]","value":"PARAMETER_KEY_1","type":"text"},{"key":"parameter[1][name]","value":"PARAMETER_NAME_!","type":"text"},{"key":"parameter[1][type]","value":"integer","type":"text"},{"key":"parameter[2][key]","value":"PARAMETER_KEY_2"},{"key":"parameter[2][name]","value":"PARAMETER_NAME_2"},{"key":"parameter[2][type]","value":"decimal"},{"key":"parameter[3][key]","value":"PARAMETER_KEY_3"},{"key":"parameter[3][name]","value":"PARAMETER_NAME_3"},{"key":"parameter[3][type]","value":"string"},{"key":"parameter[4][key]","value":"PARAMETER_KEY_4"},{"key":"parameter[4][name]","value":"PARAMETER_NAME_4"},{"key":"parameter[4][type]","value":"dictionary"},{"key":"parameter[5][key]","value":"PARAMETER_KEY_5"},{"key":"parameter[5][name]","value":"PARAMETER_NAME_5"},{"key":"parameter[5][type]","value":"datetime"},{"key":"parameter[6][key]","value":"PARAMETER_KEY_6"},{"key":"parameter[6][name]","value":"PARAMETER_NAME_6"},{"key":"parameter[6][type]","value":"bool"},{"key":"parameter7][key]","value":"PARAMETER_KEY_7"},{"key":"parameter[7][name]","value":"PARAMETER_NAME_7"},{"key":"parameter[7][type]","value":"multi"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/activity","description":"<p>In order to add new activity send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/activity</code></p>\n<p>Parameter <code>ACTIVITY_KEY</code> should be replaced with a name of an activity key.</p>\n<p>Parameter <code>ACTIVITY_NAME</code> should be replaced with the name of an activity.</p>\n<p>Parameter <code>PARAMETER_KEY</code> should be replaced with a parameter key.</p>\n<p>Parameter <code>PARAMETER_TYPE</code> should be replaced with the type of data.</p>\n<p>Available parameter types: </p>\n<ul>\n<li><code>integer</code> for numerical values, </li>\n<li><code>decimal</code> for floating point numbers, </li>\n<li><code>string</code> for text contents, </li>\n<li><code>datetime</code> for data and time, </li>\n<li><code>bool</code> for true/false values, </li>\n<li><code>multi</code> for dynamically generated table,</li>\n<li><code>dictionary</code> for dictionaries.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","2","activity"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"e5e04388-1dec-8258-197a-3ad9a9f8e0e6","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"key","value":"ACTIVITY_KEY"},{"key":"name","value":"ACTIVITY_NAME"},{"key":"parameter[1][key]","value":"PARAMETER_KEY_1"},{"key":"parameter[1][name]","value":"PARAMETER_NAME_!"},{"key":"parameter[1][type]","value":"integer"},{"key":"parameter[2][key]","value":"PARAMETER_KEY_2"},{"key":"parameter[2][name]","value":"PARAMETER_NAME_2"},{"key":"parameter[2][type]","value":"decimal"},{"key":"parameter[3][key]","value":"PARAMETER_KEY_3"},{"key":"parameter[3][name]","value":"PARAMETER_NAME_3"},{"key":"parameter[3][type]","value":"string"},{"key":"parameter[4][key]","value":"PARAMETER_KEY_4"},{"key":"parameter[4][name]","value":"PARAMETER_NAME_4"},{"key":"parameter[4][type]","value":"dictionary"},{"key":"parameter[5][key]","value":"PARAMETER_KEY_5"},{"key":"parameter[5][name]","value":"PARAMETER_NAME_5"},{"key":"parameter[5][type]","value":"datetime"},{"key":"parameter[6][key]","value":"PARAMETER_KEY_6"},{"key":"parameter[6][name]","value":"PARAMETER_NAME_6"},{"key":"parameter[6][type]","value":"bool"},{"key":"parameter7][key]","value":"PARAMETER_KEY_7"},{"key":"parameter[7][name]","value":"PARAMETER_NAME_7"},{"key":"parameter[7][type]","value":"multi"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/activity"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 10:21:46 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"348","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"}],"_postman_id":"fcec486d-8e44-5dd5-c884-0cf2c3db26a4"},{"name":"Mass addition of activities along with parameters to contacts","id":"4bdf5673-2b01-961d-0cff-120beb735aaf","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"date","value":"DATE","type":"text"},{"key":"parameter[PARAMETER_KEY_1]","value":"CONTENT_1","type":"text"},{"key":"parameter[PARAMETER_KEY_2]","value":"CONTENT_2","type":"text"},{"key":"contact[0]","value":"ID_CONTACT_1","type":"text"},{"key":"contact[1]","value":"ID_CONTACT_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/activity/KEY/contact","description":"<p>In order to perform mass addition of activities send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/activity/KEY/contact</code></p>\n<blockquote>\n<p>Parameter <code>ID_CONTACT_X</code> should be replaced with contact's ID.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>KEY</code> should be replaced with an activity key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter 'DATE\" could be replaced by date and hour of activity creation in format : <code>yyyy-mm-dd hh:mm:ss</code> . This applies to historical provisioning of activities where impose of date from the past is required. With current activity addition parameter should be skipped what implies setting date and hour in format adequate to current Customer time zone.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>PARAMETER_KEY</code> should be replaced with parameter key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>CONTENT</code> should be replaced with parameter's content.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","activity","KEY","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"4097ea7e-786c-d189-e74c-2a37c49d06a0","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"date","value":"","type":"text"},{"key":"parameter[decimal6]","value":"15","type":"text"},{"key":"parameter[integer]","value":"16","type":"text"},{"key":"contact[0]","value":"306154","type":"text"},{"key":"contact[1]","value":"306153","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/activity/KEY/contact"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 06:24:58 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"203","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"7b26cc33-da93-8c20-89c3-83ce697fb629","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/activity/KEY/contact"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 06:26:43 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"89","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":11}"}],"_postman_id":"4bdf5673-2b01-961d-0cff-120beb735aaf"},{"name":"Delete activity","id":"a4f0ef0d-7beb-f85a-9c3f-c24c4c77afb1","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/activity/ACTIVITY_KEY","description":"<p>In order to delete activity you should send DELETE request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/activity/ACTIVITY_KEY</code></p>\n<blockquote>\n<p>Parameter <code>ACTIVITY_KEY</code> should be replaced with a name of an activity key.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","activity","ACTIVITY_KEY"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"7b664e91-dfac-0105-e3ad-c089c9cf00b6","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/activity/ACTIVITY_KEY"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"27","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 06:13:05 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"228","body":"{\"code\":200,\"message\":\"OK\"}"},{"id":"a99133d0-48d3-0a23-f5e6-2816accf88ea","name":"Error-Not Found","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/activity/ACTIVITY_KEY"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 06:13:51 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"143","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":12}"},{"id":"15d11b25-030b-4a71-a9f1-23fa1c228c37","name":"Error-In used","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/activity/ACTIVITY_KEY"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 403,\n    \"message\": \"Forbidden\",\n    \"errorCode\": 123\n}"}],"_postman_id":"a4f0ef0d-7beb-f85a-9c3f-c24c4c77afb1"}],"id":"d5fe19e2-7fb0-5cf2-0f07-9f09946742a5","_postman_id":"d5fe19e2-7fb0-5cf2-0f07-9f09946742a5","description":""},{"name":"Contact Actions","item":[{"name":"Get actions","id":"65260dc9-6082-afcc-d79d-0fd09c4c2cbe","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/action","description":"<p>In order to get actions send <code>GET</code> request to the URL:\n <code>https://CLIENT_PANEL_ADDRESS/api/2/action</code></p>\n","urlObject":{"protocol":"https","path":["api","2","action"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"031aac07-6b53-333d-ec7e-0ff86934008d","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/action"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"483","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 06:57:37 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"112","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"action\": {\n            \"20\": {\n                \"id\": \"20\",\n                \"name\": \"action\",\n                \"key\": \"action1\",\n                \"jsKey\": \"t3ZwJJSZ0AYVKiLoAYtO5yCQJgkvrBfu38_ddC3On0M.\",\n                \"parameter\": {\n                    \"param_1\": {\n                        \"name\": \"action1\",\n                        \"key\": \"param_1\",\n                        \"type\": \"integer\"\n                    },\n                    \"key123\": {\n                        \"name\": \"Test\",\n                        \"key\": \"key123\",\n                        \"type\": \"string\"\n                    },\n                    \"fix_test\": {\n                        \"name\": \"action3\",\n                        \"key\": \"fix_test\",\n                        \"type\": \"integer\"\n                    }\n                }\n            },\n            \"108\": {\n                \"id\": \"108\",\n                \"name\": \"test\",\n                \"key\": \"test\",\n                \"jsKey\": \"8rfggJBI0T_Lyfkxby7MBz8KYKymGxIC17bnSFis4Ww.\",\n                \"parameter\": {\n                    \"testdzialaniewwparam1\": {\n                        \"name\": \"testparam1\",\n                        \"key\": \"testparam1\",\n                        \"type\": \"string\"\n                    },\n                    \"testdzialaniewwparam2\": {\n                        \"name\": \"testparam2\",\n                        \"key\": \"testparam2\",\n                        \"type\": \"integer\"\n                    }\n                }\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"65260dc9-6082-afcc-d79d-0fd09c4c2cbe"},{"name":"Edit action","id":"6dafd255-62c9-11b8-86be-8e45e9f9c0ea","request":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"NEW_ACTION_NAME"},{"key":"parameter[1][key]","value":"PARAMETER_KEY_1"},{"key":"parameter[1][name]","value":"NEW_PARAMETER_NAME_1"},{"key":"parameter[2][key]","value":"ADD_NEW_PARAMETER_KEY_2"},{"key":"parameter[2][name]","value":"ADD_NEW_PARAMETER_NAME_2"},{"key":"parameter[2][type]","value":"TYPE"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/action/ACTION_KEY","description":"<p>In order to edit action, send <code>PUT</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/action/ACTION_KEY</code></p>\n<blockquote>\n<p>Parameter <code>ACTION_KEY</code> should be replaced with a name of an action key.</p>\n</blockquote>\n<p>**The edit option allows you to change the action name, change the name of action parameters and add new parameters to existing actions. When adding new parameters to an existing action, proceed in the same way as when adding a new action (enter the name, key, and parameter type).  **</p>\n<p>Available parameter types: </p>\n<ul>\n<li><code>integer</code> for numerical values, </li>\n<li><code>decimal</code> for floating point numbers, </li>\n<li><code>string</code> for text contents, </li>\n<li><code>datetime</code> for data and time, </li>\n<li><code>bool</code> for true/false values, </li>\n<li><code>multi</code> for dynamically generated table,</li>\n<li><code>dictionary</code> for dictionaries.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","2","action","ACTION_KEY"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"2850f30d-8c62-31ce-bfd3-12cd68ddfb6c","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"akcjatestwwchange"},{"key":"parameter[1][key]","value":"wwww"},{"key":"parameter[1][name]","value":"change name"},{"key":"parameter[2][key]","value":"decimal6"},{"key":"parameter[2][name]","value":"edit add put"},{"key":"parameter[2][type]","value":"decimal"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/action/ACTION_KEY"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 11:03:36 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"179","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"63bba94c-29ad-4683-d1f9-e992787bf216","name":"Error-Not Found","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"akcjatestwwchange"},{"key":"parameter[1][key]","value":"wwww"},{"key":"parameter[1][name]","value":"change name"},{"key":"parameter[2][key]","value":"decimal6"},{"key":"parameter[2][name]","value":"edit add put"},{"key":"parameter[2][type]","value":"decimal"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/action/ACTION_KEY"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:06:50 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"138","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":12}"}],"_postman_id":"6dafd255-62c9-11b8-86be-8e45e9f9c0ea"},{"name":"Add new action","id":"ffc53246-06ca-8915-e80a-dcafa6eb7b31","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"key","value":"ACTION_KEY","description":"<p>Action key</p>\n"},{"key":"name","value":"ACTION_NAME"},{"key":"parameter[1][key]","value":"PARAMETER_KEY_1"},{"key":"parameter[1][name]","value":"PARAMETER_NAME_1"},{"key":"parameter[1][type]","value":"integer"},{"key":"parameter[2][key]","value":"PARAMETER_KEY_2"},{"key":"parameter[2][name]","value":"PARAMETER_NAME_2"},{"key":"parameter[2][type]","value":"decimal"},{"key":"parameter[3][key]","value":"PARAMETER_KEY_3"},{"key":"parameter[3][name]","value":"PARAMETER_NAME_3"},{"key":"parameter[3][type]","value":"string"},{"key":"parameter[4][key]","value":"PARAMETER_KEY_4"},{"key":"parameter[4][name]","value":"PARAMETER_NAME_4"},{"key":"parameter[4][type]","value":"dictionary"},{"key":"parameter[4][parameter][0]","value":"OPTION_1"},{"key":"parameter[4][parameter][1]","value":"OPTION_2"},{"key":"parameter[5][key]","value":"PARAMETER_KEY_5"},{"key":"parameter[5][name]","value":"PARAMETER_NAME_5"},{"key":"parameter[5][type]","value":"datetime"},{"key":"parameter[6][key]","value":"PARAMETER_KEY_6"},{"key":"parameter[6][name]","value":"PARAMETER_NAME_6"},{"key":"parameter[6][type]","value":"bool"},{"key":"parameter7][key]","value":"PARAMETER_KEY_7"},{"key":"parameter[7][name]","value":"PARAMETER_name_7"},{"key":"parameter[7][type]","value":"multi"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/action","description":"<p>In order to add actions send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/action</code></p>\n<blockquote>\n<p>Parameter <code>ACTION_KEY</code> should be replaced with an action key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>PARAMETER_KEY</code> should be replaced with a parameter key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>PARAMETER_TYPE</code> should be replaced with the type of data.</p>\n</blockquote>\n<p>Available parameter types: </p>\n<ul>\n<li><code>integer</code> for numerical values, </li>\n<li><code>decimal</code> for floating point numbers, </li>\n<li><code>string</code> for text contents, </li>\n<li><code>datetime</code> for data and time, </li>\n<li><code>bool</code> for true/false values, </li>\n<li><code>multi</code> for dynamically generated table,</li>\n<li><code>dictionary</code> for dictionaries.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","2","action"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"b43442d9-e29d-5e2b-beb0-d7346f7131ed","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"key","value":"ACTION_KEY-2WW","description":"Klucz działania"},{"key":"name","value":"ACTION_NAME"},{"key":"parameter[1][key]","value":"ACTION_KEY_1"},{"key":"parameter[1][name]","value":"PARAMETER_KEY_1"},{"key":"parameter[1][type]","value":"integer"},{"key":"parameter[2][key]","value":"PARAMETER_KEY_2"},{"key":"parameter[2][name]","value":"decimal"},{"key":"parameter[2][type]","value":"decimal"},{"key":"parameter[3][key]","value":"string"},{"key":"parameter[3][name]","value":"string"},{"key":"parameter[3][type]","value":"string"},{"key":"parameter[4][key]","value":"dictionary2222"},{"key":"parameter[4][name]","value":"dictionary"},{"key":"parameter[4][type]","value":"dictionary"},{"key":"parameter[4][parameter][0]","value":"OPTION_1","type":"text"},{"key":"parameter[4][parameter][1]","value":"OPTION_2","type":"text"},{"key":"parameter[5][key]","value":"datetime"},{"key":"parameter[5][name]","value":"datetime"},{"key":"parameter[5][type]","value":"datetime"},{"key":"parameter[6][key]","value":"bool"},{"key":"parameter[6][name]","value":"bool"},{"key":"parameter[6][type]","value":"bool"},{"key":"parameter7][key]","value":"multi"},{"key":"parameter[7][name]","value":"multi"},{"key":"parameter[7][type]","value":"multi"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/action"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"44","description":""},{"key":"content-type","value":"text/json;charset=UTF-8","description":""},{"key":"date","value":"Fri, 06 Oct 2017 09:48:10 GMT","description":""},{"key":"x-content-type-options","value":"nosniff","description":""}],"cookie":[],"responseTime":"1681","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"}],"_postman_id":"ffc53246-06ca-8915-e80a-dcafa6eb7b31"},{"name":"Mass addition of actions to contacts","id":"ea753574-08b3-b402-808a-0e7ca34950ef","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"parameter[PARAMETER_KEY_1]","value":"CONTENT_1"},{"key":"parameter[PARAMETER_KEY_2]","value":"CONTENT_2"},{"key":"contact[0]","value":"ID_CONTACT_1"},{"key":"contact[1]","value":"ID_CONTACT_2"},{"key":"date","value":"DATE","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/action/KEY/contact","description":"<p>In order to add actions to contacts send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/action/ACTION_KEY/contact</code></p>\n<blockquote>\n<p>Parameter <code>ID_CONTACT_X</code> should be replaced with contact's ID.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>KEY</code> should be replaced with action key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>PARAMETER_KEY</code> should be replaced with parameter key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>CONTENT</code> should be replaced with parameter's content.</p>\n</blockquote>\n<blockquote>\n<p>Parameter 'DATE\" could be replaced by date and hour of activity creation in format : <code>yyyy-mm-dd hh:mm:ss</code> . This applies to historical provisioning of activities where impose of date from the past is required. With current activity addition parameter should be skipped what implies setting date and hour in format adequate to current Customer time zone.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","action","KEY","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"b7411281-b865-af47-d9bb-3e54e933cb8f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"parameter[string]","value":"rrr"},{"key":"parameter[wwww2]","value":"777"},{"key":"contact[0]","value":"306157"},{"key":"contact[1]","value":"306154"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/action/KEY/contact"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"44","description":""},{"key":"content-type","value":"text/json;charset=UTF-8","description":""},{"key":"date","value":"Fri, 06 Oct 2017 10:16:38 GMT","description":""},{"key":"x-content-type-options","value":"nosniff","description":""}],"cookie":[],"responseTime":"189","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"c8caef0f-1ecc-c6b6-79ae-00e61a1d9f7a","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"parameter[wwww]","value":"str"},{"key":"parameter[wwww2]","value":"16"},{"key":"contact[0]","value":"306154"},{"key":"contact[1]","value":"306153"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/action/KEY/contact"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 07:40:24 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"287","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":11}"}],"_postman_id":"ea753574-08b3-b402-808a-0e7ca34950ef"},{"name":"Delete action","id":"2dab6d10-770a-ea2c-6229-674efbfb48a9","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/action/ACTION_KEY","description":"<p>In order to delete action you should send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/action/ACTION_KEY</code></p>\n<blockquote>\n<p>Parameter <code>ACTION_KEY</code> should be replaced with a name of an action key.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","action","ACTION_KEY"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"126ee741-97a8-ba46-14bf-2865036435e8","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/action/ACTION_KEY"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"27","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:10:40 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"171","body":"{\"code\":200,\"message\":\"OK\"}"},{"id":"d849e446-a6e9-0709-6a00-729c7771d477","name":"Error-Not Found","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/action/ACTION_KEY"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:11:23 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"136","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":12}"}],"_postman_id":"2dab6d10-770a-ea2c-6229-674efbfb48a9"}],"id":"7c7f58bc-4988-0eaf-4756-b1bd63cded02","_postman_id":"7c7f58bc-4988-0eaf-4756-b1bd63cded02","description":""},{"name":"Categories","item":[{"name":"Get all categories","id":"a752c178-b292-4619-571a-db24c069ec32","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https:/CLIENT_PANEL_ADDRESS/api/2/category","description":"<p>In order to get categories send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/category</code></p>\n","urlObject":{"port":"","path":["CLIENT_PANEL_ADDRESS","api","2","category"],"host":["https"],"query":[],"variable":[]}},"response":[{"id":"173fb649-e6f9-8ccc-f6cc-6082fe04e211","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESSl/api/2/category"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"238","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:04:26 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"128","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"category\": {\n            \"category_id_1\": \"category_name_1\",\n            \"category_id_2\": \"category_name_2\"\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"a752c178-b292-4619-571a-db24c069ec32"},{"name":"Get all contacts to categories","id":"f237f7ad-7394-3588-49ee-5203836a1c1c","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY/contact","description":"<p>In order to get all contacts in a given category send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY/contact</code></p>\n<blockquote>\n<p>Parameter <code>ID_CATEGORY</code> should be replaced with ID of a selected category. </p>\n</blockquote>\n<p> In the case of large number of contacts assigned to a category, the system will respond with just the first page of 50 records. In order to see other pages it is necessary to define which page is to be displayed by adding link to parameter <code>?page=N</code> where <code>N</code> corresponds to the number of the page, e.g.: <code>https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY/contact?page=2</code> </p>\n","urlObject":{"protocol":"https","path":["api","2","category","ID_CATEGORY","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"cafdc515-6699-e248-77ef-d80a57ebb651","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"306147"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"180","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 11:38:48 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"165","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"count\": \"141\",\n        \"id\": [\n            \"1\",\n            \"3\"\n        ]\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"f237f7ad-7394-3588-49ee-5203836a1c1c"},{"name":"Get information on categories","id":"9cb1ccb2-5ed4-11b1-837f-088de25a39b4","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY","description":"<p>In order to get information on categories send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY</code></p>\n<blockquote>\n<p> Parameter <code>ID_CATEGORY</code> should be replaced with category’s ID. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","category","ID_CATEGORY"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"a3012bca-be08-8fb5-f0eb-0effd16e4391","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https:/CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"81","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:25:14 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"107","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"category\": {\n            \"ID_CATEGORY\": \"CATEGORY_NAME\"\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"6b1e1617-0ba5-8f72-cff6-71d49af384b4","name":"Error-Not Found","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:26:20 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"175","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":26}"}],"_postman_id":"9cb1ccb2-5ed4-11b1-837f-088de25a39b4"},{"name":"Edit selected category","id":"06514805-80fc-6bfd-4681-30d150b0dd96","request":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"category[name]","value":"CATEGORY_NAME","description":"<p>New category name</p>\n","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY","description":"<p>In order to edit selected category send <code>PUT</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY</code></p>\n<blockquote>\n<p>Parameter <code>ID_CATEGORY</code> should be replaced with ID’s category. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>CATEGORY NAME</code> should be replaced with category’s new name.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","category","ID_CATEGORY"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"e8dced96-ce44-44f2-9404-867e32b3ed73","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"","value":"","disabled":true}],"body":{"mode":"urlencoded","urlencoded":[{"key":"category[name]","value":"ALTER_NAME_FOR_CATEGORY","description":"Nowa nazwa kategorii","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:29:59 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"150","body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"},{"id":"0c7f0e45-ab1e-ee00-2096-099a41df625b","name":"Error-Not Found","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"category[name]","value":"ALTER_NAME_FOR_CATEGORY","description":"Nowa nazwa kategorii","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:31:00 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"94","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":29}"}],"_postman_id":"06514805-80fc-6bfd-4681-30d150b0dd96"},{"name":"Add new categories","id":"e4ae1b7f-8d85-3d35-9d87-2dadeca2af26","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"CATEGORY_NAME","description":"<p>Category name</p>\n","type":"text"},{"key":"parentId","value":"PARENT_CATEGORY_ID","description":"<p>Parent category ID</p>\n","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY","description":"<p>In order to add new categories send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/category</code></p>\n<blockquote>\n<p>Parameter <code>CATEGORY_NAME</code> should be replaced with the name of added category. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>PARENT_CATEGORY_ID</code> should be replaced with ID of parent category. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","category","ID_CATEGORY"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"0f563ae3-4ea5-239d-2fe0-e14190a433ef","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"CATEGORY_NAME","description":"Nazwa kategorii","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/category"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"105","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 07:59:59 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"196","body":"{\n    \"code\": 201,\n    \"data\": {\n        \"category\": {\n            \"id\": 32,\n            \"name\": \"CATEGORY_NAME\",\n            \"parentId\": false\n        }\n    },\n    \"message\": \"Created\"\n}"},{"id":"f2472b8b-7061-930f-2f63-c33972c7ec17","name":"Success-PARENT_CATEGORY_ID","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"CATEGORY_NAME","description":"Nazwa kategorii","type":"text"},{"key":"parentId","value":"PARENT_CATEGORY_ID","description":"ID kategorii nadrzędnej ","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/category"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"105","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 11:05:33 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"299","body":"{\n    \"code\": 201,\n    \"data\": {\n        \"category\": {\n            \"id\": 38,\n            \"name\": \"CATEGORY_NAME\",\n            \"parentId\": \"PARENT_CATEGORY_ID\"\n        }\n    },\n    \"message\": \"Created\"\n}"},{"id":"fa39c5b9-eef0-802e-5d91-678849d9fded","name":"Found - 302","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"","value":"","disabled":true}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"CATEGORY_NAME","description":"Nazwa kategorii","type":"text"},{"key":"","value":"","type":"text","disabled":true}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/category"},"status":"Found","code":302,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"105","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:01:23 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"179","body":"{\n    \"code\": 302,\n    \"data\": {\n        \"category\": {\n            \"id\": \"32\",\n            \"name\": \"CATEGORY_NAME\",\n            \"parentId\": null\n        }\n    },\n    \"message\": \"Found\"\n}"}],"_postman_id":"e4ae1b7f-8d85-3d35-9d87-2dadeca2af26"},{"name":"Add new contacts to categories","id":"c126cdfc-e629-bdd1-3bb6-bd83934dcc72","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT_1","type":"text"},{"key":"contact[1]","value":"ID_CONTACT_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY/contact","description":"<p>In order to add new contacts to a category send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADRESS/api/2/category/ID_CATEGORY/contact</code></p>\n<blockquote>\n<p>Parameter <code>ID_CATEGORY</code> should be replaced with category’s ID. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with ID of a contact to whom the category is being assigned. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","category","ID_CATEGORY","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"e7b68757-5843-bab9-6f67-1390b1de73cf","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT_1","description":"Numer ID kontaktu","type":"text"},{"key":"contact[1]","value":"ID_CONTACT_2","description":"Numer ID kontaktu","type":"text"}]},"url":"https:/CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY/contact"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:09:51 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"202","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"00aac3ae-85e8-dbf1-6e56-f8149440145b","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT_1","description":"Numer ID kontaktu","type":"text"},{"key":"contact[1]","value":"ID_CONTACT_2","description":"Numer ID kontaktu","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY/contact"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 11:25:18 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"101","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":26}"},{"id":"5168b949-4199-8dac-5aa1-56bbd5d238c4","name":"Error-Forbidden","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY/contact"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:10:47 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"137","body":"{\"code\":403,\"message\":\"Forbidden\",\"errorCode\":28}"}],"_postman_id":"c126cdfc-e629-bdd1-3bb6-bd83934dcc72"},{"name":"Delete many contacts from category","id":"caef8daa-dcb8-46c7-be82-0e282f6c6444","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT_1","type":"text"},{"key":"contact[1]","value":"ID_CONTACT_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY/contact-remove","description":"<p>In order to delete many contacts from a category send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADRESS/api/2/category/ID_CATEGORY/contact</code></p>\n<blockquote>\n<p>Parameter <code>ID_CATEGORY</code> should be replaced with category’s ID. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with ID of a contact to whom the category is being assigned.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","category","ID_CATEGORY","contact-remove"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"c4781836-a5d1-47e5-8654-ffaf33bdcb8b","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT_1","description":"Numer ID kontaktu","type":"text"},{"key":"contact[1]","value":"ID_CONTACT_2","description":"Numer ID kontaktu","type":"text"}]},"url":"https:/CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY/contact-remove"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:09:51 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"202","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"ec526f2e-1ed4-433d-a153-faa48ee2cc6a","name":"Error-Forbidden","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY/contact-remove"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:10:47 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"137","body":"{\"code\":403,\"message\":\"Forbidden\",\"errorCode\":117}"}],"_postman_id":"caef8daa-dcb8-46c7-be82-0e282f6c6444"},{"name":"Delete contacts from a category","id":"3ea248a8-1439-403d-84a8-1f4f0ba963bf","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADRESS/api/2/category/ID_CATEGORY/contact/ID_CONTACT","description":"<p>In order to delete contacts from a category of a given ID send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADRESS/api/2/category/ID_CATEGORY/contact/ID_CONTACT</code></p>\n<blockquote>\n<p>Parameter <code>ID_CATEGORY</code> should be replaced with ID’s category.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with contact’s ID. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","category","ID_CATEGORY","contact","ID_CONTACT"],"host":["CLIENT_PANEL_ADRESS"],"query":[],"variable":[]}},"response":[{"id":"d5d6a80d-05df-2beb-1240-dc8c4683ad62","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADRESS/api/2/category/ID_CATEGORY/contact/ID_CONTACT"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:22:18 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"159","body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"},{"id":"924b44c8-25a4-909a-8a2a-6cea1ce45c0e","name":"Error-Not Found","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADRESS/api/2/category/ID_CATEGORY/contact/ID_CONTACT"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:21:37 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"97","body":"{\"code\":404,\"message\":\"Not Found\"}"}],"_postman_id":"3ea248a8-1439-403d-84a8-1f4f0ba963bf"},{"name":"Delete category","id":"aa04defc-cc1b-430e-a9ec-2f291bebab6f","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADRESS/api/2/category/ID_CATEGORY/contact/ID_CONTACT","description":"<p>In order to delete category send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/category/ID_CATEGORY</code></p>\n<blockquote>\n<p>Parameter <code>ID_CATEGORY</code> should be replaced with ID’s category.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","category","ID_CATEGORY","contact","ID_CONTACT"],"host":["CLIENT_PANEL_ADRESS"],"query":[],"variable":[]}},"response":[{"id":"bfbe44aa-db41-40a8-a774-b1da4e1e854b","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADRESS/api/2/category/ID_CATEGORY/contact/ID_CONTACT"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:22:18 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"},{"id":"7f88c999-7884-4752-909a-9b907d05b01a","name":"Error-Not Found","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADRESS/api/2/category/ID_CATEGORY/contact/ID_CONTACT"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 08:21:37 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":404,\"message\":\"Not Found\"}"}],"_postman_id":"aa04defc-cc1b-430e-a9ec-2f291bebab6f"}],"id":"0d2f0ca3-054b-2177-fa62-16b4da28aa63","_postman_id":"0d2f0ca3-054b-2177-fa62-16b4da28aa63","description":""},{"name":"Tags","item":[{"name":"Get information on tags","id":"2e263702-1307-ec06-2131-6ed822a9c741","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG","description":"<p>In order to get information on a tag send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG</code></p>\n<blockquote>\n<p>Parameter <code>ID_TAG</code> should be replaced with ID of a given tag.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","tag","ID_TAG"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"1a157600-11c8-c831-79ad-af7370308a32","name":"success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"66","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 10:17:32 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"262","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"tag\": {\n            \"ID_TAG\": \"TAG\"\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"52877414-57fb-172f-83b4-c863c9f63a00","name":"Error-Not Found","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 10:18:26 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"167","body":"{\"code\":404,\"message\":\"Not Found\"}"}],"_postman_id":"2e263702-1307-ec06-2131-6ed822a9c741"},{"name":"Get all contacts to tags","id":"c865f4cb-736b-e635-2ef2-f5c38c905b6a","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG/contact","description":"<p>In order to get all contacts to a given tag send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG/contact</code></p>\n<blockquote>\n<p>Parameter <code>ID_TAG</code> should be replaced by ID of a given tag.</p>\n</blockquote>\n<p>In the case of getting large number of contacts assigned to a tag, the system will respond with just the first page of 50 records. In order to see other pages it is necessary to define which page is to be displayed by adding link to parameter <code>?page=N</code> where <code>N</code> corresponds to the number of the page, e.g.: <code>https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG/contact?page=2</code> </p>\n","urlObject":{"protocol":"https","path":["api","2","tag","ID_TAG","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"3868a836-ac9f-137f-266e-600c5bb6cac9","name":"success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"98","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:55:52 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"295","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"count\": \"5\",\n        \"id\": [\n            \"ID_CONTACT\",\n            \"ID_CONTACT\",\n            \"ID_CONTACT\",\n            \"ID_CONTACT\",\n            \"ID_CONTACT\"\n        ]\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"c865f4cb-736b-e635-2ef2-f5c38c905b6a"},{"name":"Get all tags","id":"b027edb8-3a32-55b2-dd3d-142b27e0dccf","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag","description":"<p>In order to get all tags send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/tag</code></p>\n","urlObject":{"protocol":"https","path":["api","2","tag"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"5b2637f9-0758-85f5-4ad9-4613bc78581a","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"1087","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 12:13:44 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"176","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"tag\": {\n            \"1\": \"tag1\",\n            \"2\": \"tag2\",\n            \"3\": \"tag3\",\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"b027edb8-3a32-55b2-dd3d-142b27e0dccf"},{"name":"Edit selected tag","id":"f602b3ec-b28d-f961-0725-25de54f6c363","request":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"tag[name]","value":"TAG_NAME","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG","description":"<p>In order to edit a tag send <code>PUT</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG</code></p>\n<blockquote>\n<p>Parameter <code>ID_TAG</code> should be replaced with ID of a given tag.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>TAG_NAME</code> should be replaced with tag’s new name. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","tag","ID_TAG"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"799d2c9c-3a1f-c513-3b27-21c1d369b413","name":"success","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"tag[name]","value":"ALTER_NAME_FOR_TAG"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 10:22:38 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"698","body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"},{"id":"56d76a91-c14c-bde8-a8f2-18d1bd68e1b6","name":"error-Not Found","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"tag[name]","value":"ALTER_NAME_FOR_TAG","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 10:23:41 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"209","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":38}"}],"_postman_id":"f602b3ec-b28d-f961-0725-25de54f6c363"},{"name":"Add new tags","id":"a66f0be2-244c-fbd3-18b0-7b11e57895c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"TAG_NAME","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag","description":"<p>In order to add new tags send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/tag</code></p>\n<blockquote>\n<p>Parameter <code>TAG_NAME</code> should be replaced with the name of the tag being added.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","tag"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"1abd768e-6d28-1faf-3bc3-f831a26fe4b6","name":"success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"TAG_NAME","type":"text"}]},"url":"https://CLIENT_PANEL_ADRDESS.pl/api/2/tag"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"108","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:34:25 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"255","body":"{\n    \"code\": 201,\n    \"data\": {\n        \"tag\": {\n            \"id\": 164,\n            \"name\": \"TAG_NAME\",\n            \"parentId\": false\n        }\n    },\n    \"message\": \"Created\"\n}"},{"id":"c7186252-2a3d-2b43-cdb0-15dd2151e56f","name":"error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:35:06 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"156","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":31}"}],"_postman_id":"a66f0be2-244c-fbd3-18b0-7b11e57895c3"},{"name":"Add new contacts to a tag","id":"d134a6fb-5312-f69d-ea0a-3d2d8e7be617","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG/contact","description":"<p>In order to add contacts to tags send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG/contact</code></p>\n<blockquote>\n<p>Parameter <code>ID_TAG</code> should be replaced with ID of a tag.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with ID of the contact to which the tag is being assigned. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","tag","ID_TAG","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"25bfd64a-887f-ad16-9e11-a9b55f69d726","name":"success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT","type":"text"}]},"url":"https://CLIENT_PANEL_ADRESS/api/2/tag/ID_TAG/contact"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:46:16 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"300","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"7c5c3414-4f39-fbbe-7c94-438aa58eb8d4","name":"error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT","type":"text"}]},"url":"https://CLIENT_PANEL_ADRESS/api/2/tag/ID_TAG/contact"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:47:33 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"128","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":37}"}],"_postman_id":"d134a6fb-5312-f69d-ea0a-3d2d8e7be617"},{"name":"Delete contacts from a tag","id":"905217b1-2baf-0b89-ea79-27b54cc56823","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG/contact/ID_CONTACT","description":"<p>In order to delete contacts from a tag send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG/contact/ID_CONTACT</code></p>\n<blockquote>\n<p>Parameter <code>ID_TAG</code> should be replaced with ID of a given tag.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with contact’s ID.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","tag","ID_TAG","contact","ID_CONTACT"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"05081d23-5880-bda4-ed36-f11270475dfd","name":"success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG/contact/ID_CONTACT"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 10:11:52 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"192","body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"},{"id":"2367470b-eb5d-fbcb-718e-e6e6640e6a31","name":"error-Not Found","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADRDESS/api/2/tag/ID_TAG/contact/ID_CONTACT"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 10:12:45 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"187","body":"{\"code\":404,\"message\":\"Not Found\"}"}],"_postman_id":"905217b1-2baf-0b89-ea79-27b54cc56823"},{"name":"Delete tag","id":"4079adaf-195e-43a1-8295-651c478064d7","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG","description":"<p>In order to delete a tag send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG</code></p>\n<blockquote>\n<p>Parameter <code>ID_TAG</code> should be replaced with ID of a given tag.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","tag","ID_TAG"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"fc0fad71-14d5-4f21-a005-23bdce2313f8","name":"success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/tag/ID_TAG"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 10:11:52 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"},{"id":"fc17769d-5c0f-4b75-905a-8a3b433b7ac7","name":"error-Not Found","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADRDESS/api/2/tag/ID_TAG"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 10:12:45 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":404,\"message\":\"Not Found\"}"}],"_postman_id":"4079adaf-195e-43a1-8295-651c478064d7"}],"id":"019fb2db-1912-7769-a828-2b41c666c421","event":[{"listen":"prerequest","script":{"id":"363d2b81-ec89-4340-9b21-8d606582c50d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7faf915e-4fc8-4730-acb6-cb248cfcf74c","type":"text/javascript","exec":[""]}}],"_postman_id":"019fb2db-1912-7769-a828-2b41c666c421","description":""},{"name":"Consents","item":[{"name":"Get all available consents","id":"713bccfc-702f-e2f2-ec4d-2f9188bb22ef","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement","description":"<p>In order to get all the available consents send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/agreement</code></p>\n","urlObject":{"protocol":"https","path":["api","2","agreement"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"f7cc2531-158b-3370-3b55-5e87e74efe09","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"737","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:09:45 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"131","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"agreement\": {\n            \"1\": {\n                \"id\": \"1\",\n                \"name\": \"AGREEMENT_NAME\",\n                \"short_name\": \"AGREEMENT_SHORT_NAME\",\n                \"descr\": \"AGREEMENT_DESCRIPTION\",\n                \"cant_delete\": \"1\",\n                \"required\": \"0\"\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"713bccfc-702f-e2f2-ec4d-2f9188bb22ef"},{"name":"Get contacts assigned to an consent","id":"5d6d014a-856a-76c9-4144-26d7d64b9660","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/IAGREEMENT/contact","description":"<p>In order to get contacts assigned to an consent of a given ID or API key send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT/contact</code></p>\n<blockquote>\n<p>Parameter <code>AGREEMENT</code> should be replaced with ID number or API key of a chosen consent. </p>\n</blockquote>\n<p>In the case of getting large number of contacts assigned to an consent, the system will respond with just the first page of 50 records. In order to see other pages it is necessary to define which page is to be displayed by adding to the link the following parameter <code>?page=N</code> where <code>N</code> corresponds to the number of the page, e.g.: <code>https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT/contact?page=2</code></p>\n","urlObject":{"protocol":"https","path":["api","2","agreement","IAGREEMENT","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"37a198b2-c084-4341-04fd-e56fa71a74bd","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/IAGREEMENT/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"86","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:46:42 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"106","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"count\": \"2\",\n        \"id\": [\n            \"ID_CONTACT_1\",\n            \"ID_CONTACT_2\"\n        ]\n    },\n    \"message\": \"OK\"\n}"},{"id":"8f0e6a2b-c9a3-3c74-5592-fdd83d65aacb","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"","value":"","type":"text","disabled":true}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 10:00:11 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"152","body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"},{"id":"a2341e31-ed71-67df-4cbf-640fc6a2062a","name":"Error-Forbidden","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"","value":"","type":"text","disabled":true}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT/contact"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:57:45 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"203","body":"{\"code\":403,\"message\":\"Forbidden\",\"errorCode\":62}"}],"_postman_id":"5d6d014a-856a-76c9-4144-26d7d64b9660"},{"name":"Get available consents in group","id":"8daf6851-ca19-4be0-82a4-2c909c2068bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/group/API_GROUP_KEY","description":"<p>In order to get all the available consents in group send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/agreement/group/API_GROUP_KEY</code></p>\n<blockquote>\n<p>Parameter <code>API_GROUP_KEY</code> should be replaced with api key of a chosen consent group.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","agreement","group","API_GROUP_KEY"],"host":["CLIENT_PANEL_ADDRESS"],"query":[{"disabled":true,"key":"USER_AGENT","value":"iPresso"},{"disabled":true,"key":"","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"disabled":true,"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"variable":[]}},"response":[{"id":"34caf996-e846-4de8-8ff3-590e52e2a1b2","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/group/API_GROUP_KEY","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","agreement","group","API_GROUP_KEY"],"query":[{"key":"USER_AGENT","value":"iPresso","disabled":true},{"key":"","value":"72d5b935a85b6e7366ddd0d3b6db14c9","disabled":true},{"key":"Content-Type","value":"application/x-www-form-urlencoded","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Aug 2019 09:32:47 GMT"},{"key":"X-Powered-By","value":"PHP/7.0.25"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"X-XSS-Protection","value":"1"},{"key":"Content-Security-Policy","value":"default-src * 'unsafe-inline' 'unsafe-eval' data:; img-src * 'self' data: blob:;"},{"key":"X-Frame-Options","value":"deny"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"150"},{"key":"Content-Type","value":"text/json;charset=UTF-8"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": {\n        \"agreement\": {\n            \"28\": {\n                \"id\": 28,\n                \"name\": \"AGREEMENT_NAME\",\n                \"descr\": \"AGREEMENT_DESCRIPTION\",\n                \"short_name\": \"AGREEMENT_SHORT_NAME\",\n                \"cant_delete\": 1,\n                \"required\": 0,\n                \"dm_visible\": 1\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"71583c3c-f371-49c6-a860-c90072c90cbe","name":"Error - 404","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/group/API_GROUP_KEY","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","agreement","group","API_GROUP_KEY"],"query":[{"key":"USER_AGENT","value":"iPresso","disabled":true},{"key":"","value":"72d5b935a85b6e7366ddd0d3b6db14c9","disabled":true},{"key":"Content-Type","value":"application/x-www-form-urlencoded","disabled":true}]}},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Not Found\"\n}"}],"_postman_id":"8daf6851-ca19-4be0-82a4-2c909c2068bd"},{"name":"Get available contacts","id":"b5e177f7-3aa1-4eaa-9054-fc8585ec96f3","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/stats/count?id_agreement / api_key=int/string&contact_type=string&group_by_consent=bool","description":"<p>Resource: GET <code>/agreement/stats/count</code></p>\n<p>Retrieves the number of contacts for consents. Returns statistics regarding consents held by contacts.</p>\n<blockquote>\n<p>Parameter <code>id_agreement / api_key</code> (Optional)<br />ID / API key of a specific consent. If provided, the response will return the count only for that consent. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>contact_type</code> (Optional)<br />Returns the number of contacts only for a specific key (e.g., main_contact for individuals, other for companies). </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>group_by_consent</code> (Optional)<br />If set to 1, returns a summary of all consents along with their respective counts.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","agreement","stats","count"],"host":["CLIENT_PANEL_ADDRESS"],"query":[{"description":{"content":"<p>(Optional) ID / API key of a specific consent. If provided, it will return the count only for that consent.</p>\n","type":"text/plain"},"key":"id_agreement / api_key","value":"int/string"},{"description":{"content":"<p>(Optional) Returns the number of contacts only for a specific key (e.g., main_contact for individuals, other for companies).</p>\n","type":"text/plain"},"key":"contact_type","value":"string"},{"description":{"content":"<p>(Optional) If set to 1, returns a summary of all consents along with their counts.</p>\n","type":"text/plain"},"key":"group_by_consent","value":"bool"}],"variable":[]}},"response":[{"id":"8ccdf4b8-f221-4984-ab3d-c60d59ebf927","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/stats/count"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":"","enabled":true},{"key":"Content-Length","value":"86","description":"","enabled":true},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"","enabled":true},{"key":"Date","value":"Thu, 05 Oct 2017 10:01:31 GMT","description":"","enabled":true},{"key":"Vary","value":"Accept-Encoding","description":"","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","description":"","enabled":true}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"188","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"count\": 250\n    },\n    \"message\": \"OK\"\n}"},{"id":"5acf2f54-7310-4136-a75b-7e7b38c2e389","name":"Success when id_agreement/api_key param given","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/stats/count"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":"","enabled":true},{"key":"Content-Length","value":"86","description":"","enabled":true},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"","enabled":true},{"key":"Date","value":"Thu, 05 Oct 2017 10:01:31 GMT","description":"","enabled":true},{"key":"Vary","value":"Accept-Encoding","description":"","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","description":"","enabled":true}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"188","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"agreement\": {\n            \"sample_api_key\": 250\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"fb1d6213-34c7-4556-9dca-933967ce5e3e","name":"Success when group_by_consent param given","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/stats/count"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":"","enabled":true},{"key":"Content-Length","value":"86","description":"","enabled":true},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"","enabled":true},{"key":"Date","value":"Thu, 05 Oct 2017 10:01:31 GMT","description":"","enabled":true},{"key":"Vary","value":"Accept-Encoding","description":"","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","description":"","enabled":true}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"188","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"agreement\": {\n            \"sample_api_key\": 200,\n            \"sample_api_key_2\": 300,\n            \"sample_api_key_3\": 400\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"b5e177f7-3aa1-4eaa-9054-fc8585ec96f3"},{"name":"Consent edition","id":"adee5614-ac9e-75a5-1095-d514198773e0","request":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"agreement[name]","value":"AGREEMENT_NAME","description":"<p>New consent name</p>\n"},{"key":"agreement[description]","value":"AGREEMENT_DESCRIPTION","description":"<p>Consent content</p>\n"},{"key":"agreement[dmvisible]","value":"DM_VISIBLE_STATUS","description":"<p>Parameter <code>DM_VISIBLE_STATUS</code> specifies whether an consent allows for sending messages: 0 if it doesn’t, 1 if it does. </p>\n"},{"key":"agreement[apiKey]","value":"API_KEY","description":"<p>Optional, validation for basic characters - according to what is in the panel - if not provided, a random value will be generated during creation and editing.</p>\n","type":"text"},{"key":"agreement[shortName]","value":"SHORT_NAME","description":"<p>Optional, validation for standard characters.</p>\n","type":"text"},{"key":"agreement[shortContent]","value":"SHORT_CONTENT","description":"<p>Optional description.</p>\n","type":"text"},{"key":"agreement[required]","value":"REQUIRED","description":"<p>Allowed values are 0 and 1 - This information is used when retrieving the consent definition via the API and can be utilized accordingly.</p>\n","type":"text"},{"key":"agreement[anonymousCanMerge]","value":"ANONYMOUS_CAN_MERGE","description":"<p>The parameter allows the merging of anonymous data. Permitted values are 0 and 1.</p>\n","type":"text"},{"key":"agreement[consentGroupApiKeys]","value":"CONSENT_GROUP_API_KEYS","description":"<p>An array with API keys of consent groups to which the consent should belong (e.g., <code>['key_1', 'key_2']</code>). If you do not want to edit the groups, do not provide it.</p>\n","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT","description":"<p>In order to edit consent send <code>PUT</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT</code></p>\n<blockquote>\n<p>Parameter <code>AGREEMENT</code> should be replaced with ID number or API key of a chosen consent. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>AGREEMENT_NAME</code> should be replaced with the name of the new consent. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>AGREEMENT_DESCRIPTION</code> should be replaced with new content of the consent. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>DM_VISIBLE_STATUS</code> specifies whether an consent allows for sending messages: 0 if it doesn’t, 1 if it does.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","agreement","AGREEMENT"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"c1d4ec72-60be-1f69-1b7c-631953715b34","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"ALTER_AGREEMENT_NAME","description":"Nowa nazwa zgody marketingowej"},{"key":"description","value":"ALTER_AGREEMENT_DESCRIPTION","description":"Nowa treść zgody marketingowej"},{"key":"dmvisible","value":"DM_VISIBLE_STATUS","description":"Parametr `DM_VISIBLE_STATUS` określa czy zgoda zezwala na wysyłkę: 0 jeżeli nie zezwala, 1 jeżeli zezwala."},{"key":"apiKey","value":"API_KEY","description":"Optional, validation for basic characters - according to what is in the panel - if not provided, a random value will be generated during creation and editing.","type":"text"},{"key":"shortName","value":"SHORT_NAME","description":"Optional, validation for standard characters.","type":"text"},{"key":"shortContent","value":"SHORT_CONTENT","description":"Optional description.","type":"text"},{"key":"required","value":"REQUIRED","description":"Allowed values are 0 and 1 - This information is used when retrieving the consent definition via the API and can be utilized accordingly.","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:32:05 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"324","body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"},{"id":"168a2c71-884b-9c47-3e87-dddd7c5285fb","name":"Error-Not Found","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"ALTER_AGREEMENT_NAME","description":"Nowa nazwa zgody marketingowej"},{"key":"description","value":"ALTER_AGREEMENT_DESCRIPTION","description":"Nowa treść zgody marketingowej"},{"key":"dmvisible","value":"DM_VISIBLE_STATUS","description":"Parametr `DM_VISIBLE_STATUS` określa czy zgoda zezwala na wysyłkę: 0 jeżeli nie zezwala, 1 jeżeli zezwala."},{"key":"apiKey","value":"API_KEY","description":"Optional, validation for basic characters - according to what is in the panel - if not provided, a random value will be generated during creation and editing.","type":"text"},{"key":"shortName","value":"SHORT_NAME","description":"Optional, validation for standard characters.","type":"text"},{"key":"shortContent","value":"SHORT_CONTENT","description":"Optional description.","type":"text"},{"key":"required","value":"REQUIRED","description":"Allowed values are 0 and 1 - This information is used when retrieving the consent definition via the API and can be utilized accordingly.","type":"text"}]},"url":"http://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:34:35 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"132","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":21}"}],"_postman_id":"adee5614-ac9e-75a5-1095-d514198773e0"},{"name":"Add new consents","id":"98b3b1ec-1053-37cf-1c74-98bdfbe7ac66","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"AGREEMENT_NAME","description":"<p>Consent name</p>\n"},{"key":"description","value":"AGREEMENT_DESCRIPTION","description":"<p>Consent content</p>\n"},{"key":"dmvisible","value":"DM_VISIBLE_STATUS","description":"<p>Parameter <code>DM_VISIBLE_STATUS</code> specifies whether an consent allows for sending messages: 0 if it doesn’t, 1 if it does. </p>\n"},{"key":"apiKey","value":"API_KEY","description":"<p>Optional, validation for basic characters - according to what is in the panel - if not provided, a random value will be generated during creation and editing.</p>\n","type":"text"},{"key":"shortName","value":"SHORT_NAME","description":"<p>Optional, validation for standard characters.</p>\n","type":"text"},{"key":"shortContent","value":"SHORT_CONTENT","description":"<p>Optional description.</p>\n","type":"text"},{"key":"required","value":"REQUIRED","description":"<p>Allowed values are 0 and 1 - This information is used when retrieving the consent definition via the API and can be utilized accordingly.</p>\n","type":"text"},{"key":"anonymousCanMerge","value":"ANONYMOUS_CAN_MERGE","description":"<p>The parameter allows the merging of anonymous data. Permitted values are 0 and 1.</p>\n","type":"text"},{"key":"consentGroupApiKeys","value":"CONSENT_GROUP_API_KEYS","description":"<p>An array with API keys of consent groups to which the consent should belong (e.g., <code>['key_1', 'key_2']</code>). If you do not want to edit the groups, do not provide it.</p>\n","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement","description":"<p>In order to add new consents send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/agreement</code></p>\n<blockquote>\n<p>Parameter <code>AGREEMENT_NAME</code> should be replaced with the name of an consent. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>AGREEMENT_DESCRIPTION</code> should be replaced with the content of an consent. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>DM_VISIBLE_STATUS</code> defines whether consent allows sending message: 0 if it doesn’t, 1 if it does. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","agreement"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"2afac9b9-7cd9-9407-e1b9-4bd012f59400","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"AGREEMENT_NAME","description":"Nazwa zgody marketingowej","type":"text"},{"key":"description","value":"AGREEMENT_DESCRIPTION","description":"Treść zgody marketingowej","type":"text"},{"key":"dmvisible","value":"0","type":"text"},{"key":"apiKey","value":"API_KEY","description":"Optional, validation for basic characters - according to what is in the panel - if not provided, a random value will be generated during creation and editing.","type":"text"},{"key":"shortName","value":"SHORT_NAME","description":"Optional, validation for standard characters.","type":"text"},{"key":"shortContent","value":"SHORT_CONTENT","description":"Optional description.","type":"text"},{"key":"required","value":"REQUIRED","description":"Allowed values are 0 and 1 - This information is used when retrieving the consent definition via the API and can be utilized accordingly.","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"118","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:03:09 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"312","body":"{\n    \"code\": 201,\n    \"data\": {\n        \"agreement\": {\n            \"id\": 22,\n            \"name\": \"AGREEMENT_NAME\",\n            \"description\": \"AGREEMENT_DESCRIPTION\",\n            \"dmvisible\": \"0\"\n            \"apiKey\": \"API_KEY\"\n            \"shortName\": \"SHORT_NAME\"\n            \"shortContent\": \"SHORT_CONTENT\"\n            \"required\": \"REQUIRED\"\n        }\n    },\n    \"message\": \"Created\"\n}"},{"id":"229b250a-e2ce-66a5-2571-1d3069346e83","name":"Error-Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"AGREEMENT_NAME","description":"Nazwa zgody marketingowej"},{"key":"description","value":"AGREEMENT_DESCRIPTION","description":"Treść zgody marketingowej"},{"key":"dmvisible","value":"0"},{"key":"apiKey","value":"API_KEY","description":"Optional, validation for basic characters - according to what is in the panel - if not provided, a random value will be generated during creation and editing.","type":"text"},{"key":"shortName","value":"SHORT_NAME","description":"Optional, validation for standard characters.","type":"text"},{"key":"shortContent","value":"SHORT_CONTENT","description":"Optional description.","type":"text"},{"key":"required","value":"REQUIRED","description":"Allowed values are 0 and 1 - This information is used when retrieving the consent definition via the API and can be utilized accordingly.","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement"},"status":"Found","code":302,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"110","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:04:08 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"148","body":"{\n    \"code\": 302,\n    \"data\": {\n        \"agreement\": {\n            \"id\": 22,\n            \"name\": \"AGREEMENT_NAME\",\n            \"description\": \"AGREEMENT_DESCRIPTION\",\n            \"dmvisible\": \"0\"\n            \"apiKey\": \"API_KEY\"\n            \"shortName\": \"SHORT_NAME\"\n            \"shortContent\": \"SHORT_CONTENT\"\n            \"required\": \"REQUIRED\"\n        }\n    },\n    \"message\": \"Found\"\n}"}],"_postman_id":"98b3b1ec-1053-37cf-1c74-98bdfbe7ac66"},{"name":"Add contacts to consent","id":"2fd39a36-4df5-2c41-083c-ff969e47f334","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT_1","type":"text"},{"key":"contact[1]","value":"ID_CONTACT_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT/contact","description":"<p>In order to add contacts to an consent of a chosen ID or API key send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/agreement/ID_AGREEMENT/contact</code></p>\n<blockquote>\n<p>Parameter <code>AGREEMENT</code> should be replaced with ID or API key number of a chosen consent. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with ID number of a chosen contact.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","agreement","AGREEMENT","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"8e4210ac-0e2a-ad79-cdeb-d76ec5a652c5","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT_1","description":"ID kontaktu 1"},{"key":"contact[1]","value":"ID_CONTACT_2","description":"ID kontaktu 2"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT/contact"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"44","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:42:46 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"166","body":"{\"code\":201,\"data\":true,\"message\":\"Created\"}"},{"id":"9aa39da9-fd4a-252b-ae21-6a814fafe890","name":"Error-Forbidden","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT_1","description":"ID kontaktu 1"},{"key":"contact[1]","value":"ID_CONTACT_2","description":"ID kontaktu 2"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT/contact"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:43:50 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"188","body":"{\"code\":403,\"message\":\"Forbidden\",\"errorCode\":20}"}],"_postman_id":"2fd39a36-4df5-2c41-083c-ff969e47f334"},{"name":"Delete consent","id":"9324847c-c811-3d3e-7907-e810632ec44e","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT","description":"<p>In order to delete consent send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT</code></p>\n<blockquote>\n<p>Parameter <code>AGREEMENT</code> should be replaced with ID or API key number of a chosen consent. </p>\n</blockquote>\n<p><strong>This operation may be performed only if the consent hasn’t been assigned to any contact.</strong></p>\n","urlObject":{"protocol":"https","path":["api","2","agreement","AGREEMENT"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"0c98b3c5-ee78-7903-ee2c-80a1da798781","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:37:56 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"235","body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"},{"id":"f1a3c663-05b6-001b-6d4c-a4eebc023853","name":"Error-Not Found","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Wed, 04 Oct 2017 09:38:45 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"139","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":21}"}],"_postman_id":"9324847c-c811-3d3e-7907-e810632ec44e"},{"name":"Delete contact’s consent","id":"4f402c2d-902e-a127-5e75-3b8ecfda9980","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT/contact/CONTACT","description":"<p>In order to delete contacts assigned to the consent of a chosen ID or API key send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT/contact/ID_CONTACT</code></p>\n<blockquote>\n<p>Parameter <code>AGREEMENT</code> should be replaced with ID number or API key of a chosen consent. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with ID number of a chosen contact.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","agreement","AGREEMENT","contact","CONTACT"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"49f30d93-9b05-8974-9562-13d77e0b8b9d","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"","value":"","type":"text","disabled":true}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT/contact/CONTACT"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"39","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 08:37:14 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"185","body":"{\"code\":200,\"data\":true,\"message\":\"OK\"}"},{"id":"e0777ac4-6f22-7ef8-d5f7-c45ae2c9dc0c","name":"Error-Forbidden","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"","value":"","type":"text","disabled":true}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/agreement/AGREEMENT/contact/CONTACT"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 08:38:19 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"121","body":"{\"code\":403,\"message\":\"Forbidden\",\"errorCode\":62}"}],"_postman_id":"4f402c2d-902e-a127-5e75-3b8ecfda9980"}],"id":"874851e2-9e19-a8c7-656f-5376ee7d51ea","event":[{"listen":"prerequest","script":{"id":"8223dc3b-ecfd-4d52-aa94-3647591095d7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"91b2d729-ef40-4660-b212-537931437f39","type":"text/javascript","exec":[""]}}],"_postman_id":"874851e2-9e19-a8c7-656f-5376ee7d51ea","description":""},{"name":"Types","item":[{"name":"Get contacts of a given type","id":"0b897b39-bed2-f8c5-5b12-3202477fb973","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/type/ID_TYPE/contact","description":"<p>In order to get contacts of a given type send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/type/ID_TYPE/contact</code></p>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with contact’s ID. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_TYPE</code> should be replaced with ID of a type.</p>\n</blockquote>\n<p>In the case of getting large number of contacts assigned to types, the system will respond with just the first page of 50 records. In order to see other pages it is necessary to define which page is to be displayed by adding to the link parameter <code>?page=N</code> where <code>N</code> corresponds to the number of the page, e.g.: <code>https://CLIENT_PANEL_ADDRESS/api/2/type/ID_TYPE/contact?page=2</code></p>\n","urlObject":{"protocol":"https","path":["api","2","type","ID_TYPE","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"591de2b6-c718-be29-e670-beb9f4106407","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/type/ID_TYPE/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"86","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 10:01:31 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"188","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"count\": \"2\",\n        \"id\": [\n            \"ID_CONTACT_1\",\n            \"ID_CONTACT_2\"\n        ]\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"0b897b39-bed2-f8c5-5b12-3202477fb973"},{"name":"Get all contact types with their dynamic and static attributes","id":"b7c5d7ce-5451-81f4-5439-6fe3b3078996","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/type","description":"<p>In order to get contact types send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/type</code></p>\n","urlObject":{"protocol":"https","path":["api","2","type"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"335e098f-c636-9a6a-5b2b-0be135dad92b","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/type"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"845","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:57:08 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"436","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"type\": {\n            \"1\": {\n                \"id\": \"1\",\n                \"name\": \"kontakt podstawowy\",\n                \"key\": \"main_contact\",\n                \"attribute\": {\n                    \"login\": {\n                        \"id\": \"1\",\n                        \"dict_name\": \"loginTitle\",\n                        \"attr_key\": \"login\"\n                    },\n                    \"fname\": {\n                        \"id\": \"2\",\n                        \"dict_name\": \"fname\",\n                        \"attr_key\": \"fname\"\n                    },\n                    \"lname\": {\n                        \"id\": \"3\",\n                        \"dict_name\": \"lname\",\n                        \"attr_key\": \"lname\"\n                    },\n                    \"work_position\": {\n                        \"id\": \"4\",\n                        \"dict_name\": \"work_position\",\n                        \"attr_key\": \"work_position\"\n                    },\n                    \"company\": {\n                        \"id\": \"5\",\n                        \"dict_name\": \"company\",\n                        \"attr_key\": \"company\"\n                    },\n                    \"www\": {\n                        \"id\": \"6\",\n                        \"dict_name\": \"usersite\",\n                        \"attr_key\": \"www\"\n                    },\n                    \"phone\": {\n                        \"id\": \"7\",\n                        \"dict_name\": \"phoneNumber\",\n                        \"attr_key\": \"phone\"\n                    },\n                    \"mobile\": {\n                        \"id\": \"8\",\n                        \"dict_name\": \"mobileNumber\",\n                        \"attr_key\": \"mobile\"\n                    },\n                    \"work_email\": {\n                        \"id\": \"13\",\n                        \"dict_name\": \"workEmail\",\n                        \"attr_key\": \"work_email\"\n                    },\n                    \"private_email\": {\n                        \"id\": \"14\",\n                        \"dict_name\": \"privateEmail\",\n                        \"attr_key\": \"private_email\"\n                    },\n                    \"city\": {\n                        \"id\": \"15\",\n                        \"dict_name\": \"city\",\n                        \"attr_key\": \"city\"\n                    },\n                    \"country\": {\n                        \"id\": \"16\",\n                        \"dict_name\": \"country\",\n                        \"attr_key\": \"country\"\n                    },\n                    \"region\": {\n                        \"id\": \"17\",\n                        \"dict_name\": \"region\",\n                        \"attr_key\": \"region\"\n                    },\n                    \"name\": {\n                        \"id\": \"18\",\n                        \"dict_name\": \"name\",\n                        \"attr_key\": \"name\"\n                    },\n                    \"address\": {\n                        \"id\": \"20\",\n                        \"dict_name\": \"address\",\n                        \"attr_key\": \"address\"\n                    },\n                    \"test_123\": {\n                        \"id\": \"9\",\n                        \"name\": \"IQ\",\n                        \"key\": \"test_123\"\n                    },\n                    \"is_ok\": {\n                        \"id\": \"10\",\n                        \"name\": \"jest ok\",\n                        \"key\": \"is_ok\"\n                    },\n                    \"tekst_od_mostona\": {\n                        \"id\": \"14\",\n                        \"name\": \"tekst_od_mostona\",\n                        \"key\": \"tekst_od_mostona\"\n                    },\n                    \"test\": {\n                        \"id\": \"16\",\n                        \"name\": \"test\",\n                        \"key\": \"test\"\n                    },\n                    \"birthdate\": {\n                        \"id\": \"19\",\n                        \"name\": \"Data urodzenia\",\n                        \"key\": \"birthdate\"\n                    },\n                    \"MjA_\": {\n                        \"id\": \"20\",\n                        \"name\": \"Liczba\",\n                        \"key\": \"MjA_\"\n                    },\n                    \"test_key_morning\": {\n                        \"id\": \"22\",\n                        \"name\": \"mornigTest\",\n                        \"key\": \"test_key_morning\"\n                    },\n                    \"test_count\": {\n                        \"id\": \"27\",\n                        \"name\": \"liczba testowa\",\n                        \"key\": \"test_count\"\n                    },\n                    \"MzI_\": {\n                        \"id\": \"32\",\n                        \"name\": \"Data urodzenia (lata)\",\n                        \"key\": \"MzI_\"\n                    },\n                    \"gender\": {\n                        \"id\": \"33\",\n                        \"name\": \"Płeć\",\n                        \"key\": \"gender\"\n                    }\n                }\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"b7c5d7ce-5451-81f4-5439-6fe3b3078996"},{"name":"Get available contacts","id":"403389f6-b75f-4df6-9a2f-10a90d4b8468","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/stats/count?contact_type=string&group_by_type=bool","description":"<p>Resource: <code>GET /contact/stats/count</code></p>\n<p>This resource returns information about the number of contacts in the database, allowing for precise filtering by contact type keys.</p>\n<blockquote>\n<p>Parameter <code>contact_type</code> (Optional): Returns the number of contacts for a specific key only (e.g., main_contact for individuals, other for companies). </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>group_by_type</code> (Optional): If set to 1, the API returns an array broken down by all available types, indexed by their keys.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact","stats","count"],"host":["CLIENT_PANEL_ADDRESS"],"query":[{"description":{"content":"<p>(Optional) Returns the number of contacts only for a specific key (e.g., main_contact for individuals, other for companies).</p>\n","type":"text/plain"},"key":"contact_type","value":"string"},{"description":{"content":"<p>(Optional) If set to 1, the API will return an array broken down by all available types according to their keys.</p>\n","type":"text/plain"},"key":"group_by_type","value":"bool"}],"variable":[]}},"response":[{"id":"06eae6a2-9b17-43cf-93af-76c01fcd0719","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/stats/count"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":"","enabled":true},{"key":"Content-Length","value":"86","description":"","enabled":true},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"","enabled":true},{"key":"Date","value":"Thu, 05 Oct 2017 10:01:31 GMT","description":"","enabled":true},{"key":"Vary","value":"Accept-Encoding","description":"","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","description":"","enabled":true}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"188","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"count\": 299232\n    },\n    \"message\": \"OK\"\n}"},{"id":"e111a32b-4308-44a0-adda-32542e4ac3ae","name":"Success when contact_type param given","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/stats/count"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":"","enabled":true},{"key":"Content-Length","value":"86","description":"","enabled":true},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"","enabled":true},{"key":"Date","value":"Thu, 05 Oct 2017 10:01:31 GMT","description":"","enabled":true},{"key":"Vary","value":"Accept-Encoding","description":"","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","description":"","enabled":true}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"188","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"type\": {\n            \"sample_contact_type_key\": 9\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"14547a73-88e7-4b76-9959-9bf4366e9603","name":"Success when group_by_type param given","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/stats/count"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":"","enabled":true},{"key":"Content-Length","value":"86","description":"","enabled":true},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"","enabled":true},{"key":"Date","value":"Thu, 05 Oct 2017 10:01:31 GMT","description":"","enabled":true},{"key":"Vary","value":"Accept-Encoding","description":"","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","description":"","enabled":true}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"188","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"type\": {\n            \"sample_contact_type_key_1\": 9,\n            \"sample_contact_type_key_2\": 12,\n            \"sample_contact_type_key_3\": 20\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"403389f6-b75f-4df6-9a2f-10a90d4b8468"},{"name":"Add new type of contact","id":"0a029b3b-45ce-6c98-f040-ba4934242255","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"key","value":"TYPE_KEY","description":"<p>Name of type key</p>\n","type":"text"},{"key":"name","value":"TYPE_NAME","description":"<p>Type name</p>\n","type":"text"},{"key":"parent","value":"TYPE_PARENT","description":"<p>API type key to connect</p>\n","type":"text"},{"key":"attribute[0]","value":"ATTRIBUTE_KEY","description":"<p>Attribute key</p>\n","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/type","description":"<p>In order to add new type of contact send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/type</code></p>\n<blockquote>\n<p>Parameter <code>TYPE_KEY</code> should be replaced with name of type key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>TYPE_NAME</code> should be replaced with type name. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>TYPE_PARENT</code> should be replaced with API type key to connect.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ATTRIBUTE_KEY</code> should be replaced with attribute key. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","type"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"923862da-304f-babc-c9d6-60eb851bc30b","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"key","value":"TYPE_KEY","description":"Nazwa klucza typu"},{"key":"value","value":"TYPE_NAME","description":"Nazwa typu"},{"key":"attribute[0]","value":"ATTRIBUTE_KEY","description":"Klucz atrybutu"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/type"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"122","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:55:28 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"186","body":"{\n    \"code\": 201,\n    \"data\": {\n        \"type\": {\n            \"name\": \"TYPE_NAME\",\n            \"key\": \"TYPE_KEY\",\n            \"attribute\": {\n                \"name\": {\n                    \"id\": \"18\",\n                    \"dict_name\": \"name\",\n                    \"attr_key\": \"name\"\n                }\n            }\n        }\n    },\n    \"message\": \"Created\"\n}"},{"id":"60564069-ee7d-045c-8187-839a0dd29cac","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"key","value":"TYPE_KEY","description":"Nazwa klucza typu"},{"key":"value","value":"TYPE_NAME","description":"Nazwa typu"},{"key":"attribute[0]","value":"ATTRIBUTE_KEY","description":"Klucz atrybutu"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/type"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:53:11 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"154","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":40}"}],"_postman_id":"0a029b3b-45ce-6c98-f040-ba4934242255"},{"name":"Assigne contact type to a contact","id":"e73b662d-8559-3c46-461a-5d0241e18bcc","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT","description":"<p>Contact ID number</p>\n"},{"key":"contact[1]","value":"ID_CONTACT","description":"<p>Contact ID number</p>\n"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/type/TYPE_KEY/contact","description":"<p>In order to assign contact type to a contact send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/type/TYPE_KEY/contact</code></p>\n<blockquote>\n<p>Parameter <code>TYPE_KEY</code> should be replaced with a type key. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_CONTACT</code> should be replaced with contact’s ID. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","type","TYPE_KEY","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"8f7648c6-1ff7-83c7-7394-1aad587f640d","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT","description":"Numer ID kontaktu","type":"text"},{"key":"contact[1]","value":"ID_CONTACT","description":"Numer ID kontaktu","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/type/type/TYPE_KEY/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"56","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 08:02:12 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"285","body":"{\"code\":200,\"data\":true,\"message\":\"Contact type edited\"}"},{"id":"1fcafcf9-9816-e40d-bb7f-2aa07aa44433","name":"Error-Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT","description":"Numer ID kontaktu","type":"text"},{"key":"contact[1]","value":"ID_CONTACT","description":"Numer ID kontaktu","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESSl/api/2/type/TYPE_KEY/contact"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 08:02:31 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"110","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":43}"}],"_postman_id":"e73b662d-8559-3c46-461a-5d0241e18bcc"}],"id":"4e0d5c3a-115b-3390-f4ef-bb40dbeea9c0","_postman_id":"4e0d5c3a-115b-3390-f4ef-bb40dbeea9c0","description":""},{"name":"Searching contacts","item":[{"name":"Searching contacts by criteria","id":"ceb17f10-9ea3-2533-1756-16ec50b533fc","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[email]","value":"EMAIL","type":"text"},{"key":"contact[fname]","value":"FIRST_NAME","type":"text"},{"key":"contact[lname]","value":"LAST_NAME","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/search","description":"<p>In order to search for a contact send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/contact/search</code></p>\n<p>The following table shows all possible search criteria:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>fname</td>\n<td>First Name</td>\n</tr>\n<tr>\n<td>lname</td>\n<td>Last Name</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Name</td>\n</tr>\n<tr>\n<td>email</td>\n<td>Email</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>Phone number</td>\n</tr>\n<tr>\n<td>idContactFrom</td>\n<td>Original ID of a contact, in relation to which the search is to be conducted.</td>\n</tr>\n<tr>\n<td>idContactTo</td>\n<td>Final ID of a contact, in relation to which the search is to be conducted.</td>\n</tr>\n<tr>\n<td>createDateFrom</td>\n<td>Original date of contact addition, in relation to which the search is to be conducted. Date format: YYYY-MM-YY; e.g. 2018-03-01</td>\n</tr>\n<tr>\n<td>createDateTo</td>\n<td>Final date of contact addition, in relation to which the search is to be conducted. Date format: YYYY-MM-YY; e.g. 2018-03-01</td>\n</tr>\n<tr>\n<td>id_category</td>\n<td>Id of category</td>\n</tr>\n<tr>\n<td>type</td>\n<td>Type of contact (enter type key)</td>\n</tr>\n<tr>\n<td>tag</td>\n<td>Tag of contact (enter name of tag)</td>\n</tr>\n<tr>\n<td>category</td>\n<td>Contact category (enter name of category)</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p>Parameter <code>EMAIL</code> should be replaced with email address of searched contact. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>FIRST_NAME</code> should be replaced with the first name of the contact. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>LAST_NAME</code> should be replaced with the last name of the contact. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact","search"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"33c9c133-dffe-3569-9307-25e3dd5ae404","name":"success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[email]","value":"EMAIL"},{"key":"contact[fname]","value":"FIRST_NAME"},{"key":"contact[lname]","value":"LAST_NAME"}]},"url":"https://CLIENT_PANEL_ADRESS/api/2/contact/search"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"57","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 06:52:35 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"221","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"contact\": [\n            \"ID_CONTACT\"\n        ]\n    },\n    \"message\": \"OK\"\n}"},{"id":"38c64087-6acb-aa53-6c60-4cc58324bf98","name":"error-Not Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[email]","value":"EMAIL"},{"key":"contact[fname]","value":"FIRST_NAME"},{"key":"contact[lname]","value":"LAST_NAME"}]},"url":"https://CLIENT_PANEL_ADRESS/api/2/contact/search"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"85","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 06:53:38 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"160","body":"{\"code\":404,\"data\":{\"contact\":[]},\"message\":\"Not Found\",\"errorCode\":3}"}],"_postman_id":"ceb17f10-9ea3-2533-1756-16ec50b533fc"},{"name":"Extended search for contacts by criteria","id":"054b46c2-466c-9dd3-b8d6-a0947512e158","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[email]","value":"EMAIL","type":"text"},{"key":"contact[fname]","value":"FIRST_NAME"},{"key":"contact[lname]","value":"LAST_NAME","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/search/extended","description":"<p>In order to search for a contact send <code>POST</code> request to the URL:\n<code>https://CLIENT_PANEL_ADDRESS/api/2/contact/search/extended</code></p>\n<p>The following table shows all possible search criteria:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>fname</td>\n<td>First Name</td>\n</tr>\n<tr>\n<td>lname</td>\n<td>Last Name</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Name</td>\n</tr>\n<tr>\n<td>email</td>\n<td>Email</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>Phone number</td>\n</tr>\n<tr>\n<td>idContactFrom</td>\n<td>Original ID of a contact, in relation to which the search is to be conducted.</td>\n</tr>\n<tr>\n<td>idContactTo</td>\n<td>Final ID of a contact, in relation to which the search is to be conducted.</td>\n</tr>\n<tr>\n<td>createDateFrom</td>\n<td>Original date of contact addition, in relation to which the search is to be conducted. Date format: YYYY-MM-YY; e.g. 2018-03-01</td>\n</tr>\n<tr>\n<td>createDateTo</td>\n<td>Final date of contact addition, in relation to which the search is to be conducted. Date format: YYYY-MM-YY; e.g. 2018-03-01</td>\n</tr>\n<tr>\n<td>id_category</td>\n<td>Id of category</td>\n</tr>\n<tr>\n<td>type</td>\n<td>Type of contact (enter type key)</td>\n</tr>\n<tr>\n<td>tag</td>\n<td>Tag of contact (enter name of tag)</td>\n</tr>\n<tr>\n<td>category</td>\n<td>Contact category (enter name of category)</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p>Parameter <code>EMAIL</code> should be replaced with email address of searched contact. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>FIRST_NAME</code> should be replaced with the first name of the contact. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>LAST_NAME</code> should be replaced with the last name of the contact. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","contact","search","extended"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"1dd3085b-31dc-5dd0-41cd-f87aec18a1c9","name":"Success-User Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[email]","value":"EMAIL","type":"text"},{"key":"contact[fname]","value":"FIRST_NAME"},{"key":"contact[lname[","value":"LAST_NAME","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/search/extended"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"90","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 12:44:29 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"123","body":"{\"code\":200,\"data\":{\"contact\":[],\"total\":\"0\",\"pages\":0,\"page\":1},\"message\":\"OK\"}"},{"id":"e367e331-de0e-5d76-b5a0-47386eee9110","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[fname]","value":"EMAIL"},{"key":"contact[email]","value":"FIRST_NAME","type":"text"},{"key":"contact[lname]","value":"LAST_NAME","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/contact/search/extended"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"code\": 200,\n  \"data\": {\n  \"contact\": [\n{\n  \"idContact\": 306144,\n  \"fname\": \"FIRST_NAME\",\n  \"lname\": \"LAST_NAME\",\n  \"vocative\": \"vocative\",\n  \"name\": \"\",\n  \"email\": \"email@ipresso.com\",\n  \"invalidEmail\": \"0\",\n  \"phone\": \"\",\n  \"mobile\": \"123456789\",\n  \"postCode\": \"\",\n  \"street\": \"\",\n  \"buildingNumber\": \"\",\n  \"flatNumber\": \"\",\n  \"city\": false,\n  \"country\": false,\n  \"www\": \"\",\n  \"workPosition\": \"\",\n  \"company\": \"\",\n  \"createDate\": \"2017-10-02 12:08:37\",\n  \"modifyTime\": \"2017-10-02 12:39:18\",\n  \"leadScoring\": false,\n  \"type\": false,\n  \"agreement\": {\n  \"1\": \"Consent to receive marketing information\"\n},\n  \"category\": [],\n  \"tag\": {\n  \"158\": \"ID_TAG\",\n  \"162\": \"TAG_NAME\"\n},\n  \"contactMonitoringIframe\": \"<iframe frameborder=\\\"0\\\" src=\\\"https://CLIENT_PANEL_ADRESS/contactcookie/EVwnRbQinHfCM37xi8pzskavaVXR3jhGKA-sD9De9k8./f3f55e0b03085bc178512783120c6134\\\" style=\\\"border: none; display:none; width:0px; height:0px;\\\"></iframe>\",\n  \"monitoringLink\": \"https://CLIENT_PANEL_ADRESS/contactcookie/EVwnRbQinHfCM37xi8pzskavaVXR3jhGKA-sD9De9k8./f3f55e0b03085bc178512783120c6134\",\n  \"monitoringPixel\": \"https://CLIENT_PANEL_ADRESS/systemnc/contactcookiepixel/EVwnRbQinHfCM37xi8pzskavaVXR3jhGKA-sD9De9k8./f3f55e0b03085bc178512783120c6134.png\",\n  \"hashIdContact\":\"EVwnRbQinHfCM37xi8pzskavaVXR3jhGKA-sD9De9k8.\",\n  \"contactAccess\": []\n},\n],\n  \"total\": \"1\",\n  \"pages\": 1,\n  \"page\": 1\n},\n  \"message\": \"OK\"\n}"}],"_postman_id":"054b46c2-466c-9dd3-b8d6-a0947512e158"}],"id":"595f913b-5410-e674-ab74-e9fb63ee1e2b","event":[{"listen":"prerequest","script":{"id":"2c14511e-67ab-476e-8eee-df3138e90a86","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bb0e41e6-d35b-4de2-9cde-26ca683b7054","type":"text/javascript","exec":[""]}}],"_postman_id":"595f913b-5410-e674-ab74-e9fb63ee1e2b","description":""},{"name":"Segmentation","item":[{"name":"Adding contacts to segments created by API","id":"88474f25-6bee-338b-42d2-32d98b9e4634","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"ipresso-external-key","value":"ExternalID","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact_origin","value":"1","description":"<p>Origin of contact's</p>\n","type":"text"},{"key":"contacts[0]","value":"ID_CONTACT_1","description":"<p>E-mail or contact's ID's</p>\n","type":"text"},{"key":"contacts[1]","value":"ID_CONTACT_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION/contact","description":"<p>In order to add new segmentation via iPresso API <code>POST</code> request should be sent to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION/contact</code>.</p>\n<blockquote>\n<p>Parameter <code>ID_SEGMENTATION</code> needs to be replaced with an ID of segmentation to which you want to add contacts.</p>\n</blockquote>\n<p><strong>Adding contacts to segment via API is possible only for segments created by API.</strong></p>\n<blockquote>\n<p>Parameter <code>contact_origin</code> marks the origin of contacts. If you want to add contacts to segment by their IDs or external IDs, parameter <code>contact_origin</code> should be set to 1, if by contact hash values to 3 and if by their e-mail addresses, to 2.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>contact_type</code> is optional. Only contacts with given e-mail addresses and contact type will be added to the segment if you define this parameter. Value <code>TYPE_KEY</code> needs to be replaced by the API key of specific contact type. </p>\n</blockquote>\n<p>In order do add contacts using their external ID, the <code>ipresso-external-key</code> parameter should be passed in the header.</p>\n<blockquote>\n<p>Parameter <code>ipresso-external-key</code> is an optional parameter. It adopts the values ​​of external ID groups defined in iPresso.</p>\n</blockquote>\n<p><strong>Array contacts needs to contain only e-mail addresses, ID or external ID depending on defined earlier <code>contact_origin</code> parameter.</strong></p>\n<p><strong>It is possible to send only up to 1000 contacts in one request.</strong></p>\n","urlObject":{"protocol":"https","path":["api","2","segmentation","ID_SEGMENTATION","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"0071b1ff-b5e0-418d-fb14-3bfa3be4fb93","name":"Success-by ID","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact_origin","value":"1","description":"Typ przekazywanych kontatków","type":"text"},{"key":"contacts[0]","value":"306154","description":"E-mail lub ID kontaktu","type":"text"},{"key":"contacts[1]","value":"306153","description":"E-mail lub ID kontaktu","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION/contact"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"91","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 10:03:32 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"144","body":"{\"code\":201,\"data\":{\"id\":\"438\",\"contacts_in_segment\":2},\"message\":\"Created\"}"},{"id":"2b26303b-82ad-dcd8-bd04-e1156605b787","name":"Success-By Email","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact_origin","value":"2","description":"Typ przekazywanych kontaktów","type":"text"},{"key":"contacts[0]","value":"test1@test.com","description":"E-mail lub ID kontaktu","type":"text"},{"key":"contacts[1]","value":"test2@test.com","description":"E-mail lub ID kontatku","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS.pl/api/2/segmentation/ID_SEGMENTATION/contact"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"90","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 10:07:35 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"173","body":"{\"code\":201,\"data\":{\"id\":\"438\",\"contacts_in_segment\":4},\"message\":\"Created\"}"},{"id":"bdc93155-de81-1430-42aa-e41c110723da","name":"Success-By Hash","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Name","description":"Nazwa segmentu","type":"text"},{"key":"live_time","value":"2","type":"text"},{"key":"contact_origin","value":"3","description":"Typ przekazywanych kontaktów","type":"text"},{"key":"contacts[0]","value":"XwQqEsfTJSkSydkgNU0VoEevc8MeD8fLj1CiF9M1OMo","description":"hashID","type":"text"},{"key":"","value":"","type":"text","disabled":true}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"88","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 10:14:26 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"160","body":"{\"code\":201,\"data\":{\"id\":440,\"contacts_in_segment\":1},\"message\":\"Created\"}"},{"id":"1ab89a12-4b23-56f1-446f-280cf7a85a5f","name":"Error-Bad Request","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"","type":"text"},{"key":"live_time","value":"2","type":"text"},{"key":"contact_origin","value":"3","type":"text"},{"key":"contacts[0]","value":"","type":"text"},{"key":"contacts[1]","value":"","type":"text","disabled":true}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"51","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 10:21:27 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"73","body":"{\"code\":400,\"message\":\"Bad Request\",\"errorCode\":90}"}],"_postman_id":"88474f25-6bee-338b-42d2-32d98b9e4634"},{"name":"Removing contacts from segments created by API","id":"7221d551-9554-4a2d-aade-dd69d47e1df4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"ipresso-external-key","value":"ExternalID","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact_origin","value":"1","description":"<p>Origin of contact's</p>\n","type":"text"},{"key":"contacts[0]","value":"ID_CONTACT_1","description":"<p>E-mail or contact's ID's</p>\n","type":"text"},{"key":"contacts[1]","value":"ID_CONTACT_2","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION/contact-remove","description":"<p>In order to remove contact from segment via iPresso API <code>POST</code> request should be sent to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION/contact-remove</code>.</p>\n<blockquote>\n<p>Parameter <code>ID_SEGMENTATION</code> needs to be replaced with an ID of segmentation from which you want to remove contacts. </p>\n</blockquote>\n<p><strong>Removing contacts from segment via API is possible only for segments created by API.</strong></p>\n<blockquote>\n<p>Parameter <code>contact_origin</code> marks the origin of contacts. If you want to remove contacts tofrom segment by their IDs or external IDs, parameter <code>contact_origin</code> should be set to 1, if by contact hash values to 3 and if by their e-mail addresses, to 2. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>contact_type</code> is optional. Only contacts with given e-mail addresses and contact type will be removed from the segment if you define this parameter. Value <code>TYPE_KEY</code> needs to be replaced by the API key of specific contact type. </p>\n</blockquote>\n<p>In order do remove contacts using their external ID, the <code>ipresso-external-key</code> parameter should be passed in the header.</p>\n<blockquote>\n<p>Parameter <code>ipresso-external-key</code> is an optional parameter. It adopts the values ​​of external ID groups defined in iPresso. </p>\n</blockquote>\n<p><strong>Array contacts needs to contain only e-mail addresses, ID or external ID depending on defined earlier</strong> <strong><code>contact_origin</code></strong> <strong>parameter.</strong></p>\n","urlObject":{"protocol":"https","path":["api","2","segmentation","ID_SEGMENTATION","contact-remove"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"b3dce670-65a3-444a-919e-a19982298439","name":"Success-by ID","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact_origin","value":"1","description":"Typ przekazywanych kontatków","type":"text"},{"key":"contacts[0]","value":"306154","description":"E-mail lub ID kontaktu","type":"text"},{"key":"contacts[1]","value":"306153","description":"E-mail lub ID kontaktu","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION/contact-remove"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"91","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 10:03:32 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"144","body":"{\"code\":201,\"data\":{\"id\":\"438\",\"contacts_in_segment\":2},\"message\":\"Created\"}"},{"id":"b332ef69-c5c2-4d52-abb1-84c36296c87b","name":"Success-By Email","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact_origin","value":"2","description":"Typ przekazywanych kontaktów","type":"text"},{"key":"contacts[0]","value":"test1@test.com","description":"E-mail lub ID kontaktu","type":"text"},{"key":"contacts[1]","value":"test2@test.com","description":"E-mail lub ID kontatku","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS.pl/api/2/segmentation/ID_SEGMENTATION/contact"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"90","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 10:07:35 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"173","body":"{\"code\":201,\"data\":{\"id\":\"438\",\"contacts_in_segment\":4},\"message\":\"Created\"}"},{"id":"7c2b8207-b3b5-4773-a913-b0a0b3655cf3","name":"Success-By Hash","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Name","description":"Nazwa segmentu","type":"text"},{"key":"live_time","value":"2","type":"text"},{"key":"contact_origin","value":"3","description":"Typ przekazywanych kontaktów","type":"text"},{"key":"contacts[0]","value":"XwQqEsfTJSkSydkgNU0VoEevc8MeD8fLj1CiF9M1OMo","description":"hashID","type":"text"},{"key":"","value":"","type":"text","disabled":true}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"88","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 10:14:26 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"160","body":"{\"code\":201,\"data\":{\"id\":440,\"contacts_in_segment\":1},\"message\":\"Created\"}"},{"id":"79ebeaee-f1f0-4928-aa88-3a708b127d28","name":"Error-Bad Request","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"","type":"text"},{"key":"live_time","value":"2","type":"text"},{"key":"contact_origin","value":"3","type":"text"},{"key":"contacts[0]","value":"","type":"text"},{"key":"contacts[1]","value":"","type":"text","disabled":true}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/contact-remove"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"51","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 10:21:27 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"73","body":"{\"code\":400,\"message\":\"Bad Request\",\"errorCode\":90}"}],"_postman_id":"7221d551-9554-4a2d-aade-dd69d47e1df4"},{"name":"Adding new segment via iPresso API","id":"7e8e472f-2487-2a3a-0bf0-36c70a6d68a8","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"SEGMENT_NAME","description":"<p>Name of segmentation</p>\n"},{"key":"live_time","value":"3","description":"<p>Segment availability in full hours</p>\n"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation","description":"<p>In order to add new segmentation via iPresso API <code>POST</code> request should be sent to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/segmentation</code>.</p>\n<blockquote>\n<p>Parameter <code>live_time</code> marks the time in full hours in which the segment will be available to perform any actions on it. Parameter <code>live_time</code> accepts only integer values. </p>\n</blockquote>\n<p><strong>Maximum value of <code>live_time</code> must not exceed 168.</strong></p>\n<p><strong>It is possible to create an empty segment.</strong></p>\n<blockquote>\n<p>Parameter <code>contact_origin</code> marks the origin of contacts. If you want to add contacts to segment by their IDs, parameter <code>contact_origin</code> should be set to 1, if by contact hash values to 3 and if by their e-mail addresses, to 2. </p>\n</blockquote>\n<blockquote>\n<p>Parametr <code>contact_type</code> is optional. Only contacts with given e-mail addresses and contact type will be added to the segment if you define this parameter. Value <code>TYPE_KEY</code> needs to be replaced by the API key of specific contact type. </p>\n</blockquote>\n<p><strong>Array <code>contacts</code> needs to contain only ID numbers or e-mail addresses, depending on defined earlier <code>contact_origin</code> parameter.</strong></p>\n<p><strong>It is possible to send only up to 1000 contacts in one request.</strong></p>\n","urlObject":{"protocol":"https","path":["api","2","segmentation"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"e9f8bc17-c51d-4dbd-baa4-e8e2a4d84da8","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Name","description":"Nazwa segmentu"},{"key":"live_time","value":"1-168","description":"Czas dostepności segmentu"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"89","description":""},{"key":"content-type","value":"text/json;charset=UTF-8","description":""},{"key":"date","value":"Thu, 05 Oct 2017 10:34:05 GMT","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-content-type-options","value":"nosniff","description":""}],"cookie":[],"responseTime":"225","body":"{\"code\":201,\"data\":{\"id\":443,\"contacts_in_segment\":0},\"message\":\"Created\"}"},{"id":"11b450e5-cfb6-c288-1351-b292efba0518","name":"Error-Bad request","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Name","description":"Nazwa segmentu"},{"key":"live_time","value":"1-168","description":"Czas dostępności segmentu"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"51","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 08:13:45 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"168","body":"{\"code\":400,\"message\":\"Bad Request\",\"errorCode\":90}"}],"_postman_id":"7e8e472f-2487-2a3a-0bf0-36c70a6d68a8"},{"name":"Deleting a segment created by API","id":"e069063b-4c13-51e7-6cb5-e1db1e259ccf","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION.","description":"<p>In order to delete a segmentation via iPresso API <code>DELETE</code> request should be sent to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION.</code></p>\n<blockquote>\n<p>Parameter <code>ID_SEGMENTATION</code> needs to be replaced with an ID of segmentation you want to delete. </p>\n</blockquote>\n<p>**Only segments created by API can be deleted this way. **</p>\n","urlObject":{"protocol":"https","path":["api","2","segmentation","ID_SEGMENTATION."],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"45df97c2-6874-6edd-619b-60c4cacc46a5","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION."},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"27","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 10:24:43 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"162","body":"{\"code\":200,\"message\":\"OK\"}"},{"id":"273a8551-d2ed-9087-8941-ed53e069ccb4","name":"Error-Not Found","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION."},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 10:25:17 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"166","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":94}"}],"_postman_id":"e069063b-4c13-51e7-6cb5-e1db1e259ccf"},{"name":"Get contacts from segmentation","id":"e25521e1-2413-cc4a-1116-fd6b8ff8a6e1","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION","description":"<p>In order to get contacts from segmentation send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION.</code></p>\n<blockquote>\n<p>Parameter <code>ID_SEGMENTATION</code> needs to be replaced with an ID of segmentation. </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","segmentation","ID_SEGMENTATION"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"1c1e9432-6dc7-0358-ec27-d09665ff1de4","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n {\n  \"code\":200,\n  \"data\":\n         {\n          \"contact\":\n                    {\n                     \"249726\":\n                         {\n                          \"hashIdContact\":\"y28jL22sSvhJl-V3Jk0M4PCLCcven23Y3LTdyMheXjQ.\"\n                         }\n                    }\n         }\n\n },\n               \"message\":\"OK\"\n]"},{"id":"f4a8fdd3-9e9f-8c06-e4d1-d561dbedb6fa","name":"Error 404","originalRequest":{"method":"GET","header":[],"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n {\"code\":404,\n        \"message\":\"Not found\"\n  }\n]"}],"_postman_id":"e25521e1-2413-cc4a-1116-fd6b8ff8a6e1"},{"name":"Get active segmentations","id":"60a0cb18-0cd8-6b97-40ed-c656b25f0388","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation","description":"<p>In order to get active segmentations, make <code>GET</code> request on: <code>https://CLIENT_PANEL_ADDRESS/api/2/segmentation</code></p>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> needs to be replaced with your iPresso URL.</p>\n</blockquote>\n<p>Segmentation params:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>origin</td>\n<td>segmentation origin (1 - Criteria form; 2,3,6 - File; 4 - Scenario; 5 - Api; 7 - Contact manager; 8 - Action on segmentation; 9 - Contact import)</td>\n</tr>\n<tr>\n<td>reload_interval</td>\n<td>Refresh interval</td>\n</tr>\n<tr>\n<td>reload_interval_type</td>\n<td>Refresh interval unit (1 - hours, 2 - days)</td>\n</tr>\n<tr>\n<td>actions</td>\n<td>Types of actions performed on segments</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","2","segmentation"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"d9ec1c98-de3c-54a5-6106-b78b9fc393fa","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://CLIENT_PANEL_ADDRESS/api/2/segmentation/ID_SEGMENTATION"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{  \n   \"code\":200,\n   \"data\":{  \n      \"segmentations\":{  \n         \"1925\":{  \n            \"id_segmentation\":1925,\n            \"name\":\"test name 1\",\n            \"origin\":\"1\",\n            \"valid_to\":\"2018-03-20 16:27:54\",\n            \"live_time\":\"8\",\n            \"reload_interval\":6,\n            \"reload_interval_type\":1,\n            \"contacts_in_segment\":\"2742\",\n            \"create_date\":\"2018-03-20 08:27:54\"\n         },\n         \"1936\":{  \n            \"id_segmentation\":1936,\n            \"name\":\"test name 2\",\n            \"origin\":\"1\",\n            \"valid_to\":\"2018-03-20 16:27:44\",\n            \"live_time\":\"8\",\n            \"reload_interval\":null,\n            \"reload_interval_type\":null,\n            \"contacts_in_segment\":\"27\",\n            \"create_date\":\"2018-03-20 08:27:44\",\n            \"actions\":[  \n               4,\n               2\n            ]\n         }\n      }\n   },\n   \"message\":\"OK\"\n}"}],"_postman_id":"60a0cb18-0cd8-6b97-40ed-c656b25f0388"}],"id":"0aff00f9-b559-5827-fb3d-1d7000bb67dd","_postman_id":"0aff00f9-b559-5827-fb3d-1d7000bb67dd","description":""},{"name":"Source of contact","item":[{"name":"Get all contact sources","id":"9c29c8de-818c-29b2-2e6a-cfbf5602f887","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/origin","description":"<p>In order to get all contact sources send <code>GET</code> to the URL:\n<code>https://CLIENT_PANEL_ADDRESS/api/2/origin</code></p>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the URL address of iPresso. </p>\n","urlObject":{"protocol":"https","path":["api","2","origin"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"773a77c5-54b9-7420-fad3-dcb5eec7a452","name":"success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESSapi/2/origin"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"466","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:27:11 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"409","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"origin\": {\n            \"1\": {\n                \"id\": \"1\",\n                \"key\": \"landingPage\",\n                \"integration\": 0\n            },\n            \"2\": {\n                \"id\": \"2\",\n                \"key\": \"genericOrigin\",\n                \"integration\": 0\n            },\n            \"3\": {\n                \"id\": \"3\",\n                \"key\": \"frontRegistered\",\n                \"integration\": 0\n            },\n            \"4\": {\n                \"id\": \"4\",\n                \"key\": \"submitForm\",\n                \"integration\": 0\n            },\n            \"5\": {\n                \"id\": \"5\",\n                \"key\": \"importedFromFile\",\n                \"integration\": 0\n            },\n            \"6\": {\n                \"id\": \"6\",\n                \"key\": \"addedByApi\",\n                \"integration\": 0\n            },\n            \"7\": {\n                \"id\": \"7\",\n                \"key\": \"addedByLiveChat\",\n                \"integration\": 1\n            },\n            \"8\": {\n                \"id\": \"8\",\n                \"key\": \"addedBySlideShare\",\n                \"integration\": 1\n            },\n            \"9\": {\n                \"id\": \"9\",\n                \"key\": \"addedBySalesForce\",\n                \"integration\": 1\n            },\n            \"10\": {\n                \"id\": \"10\",\n                \"key\": \"addedBySugarCRM\",\n                \"integration\": 1\n            },\n            \"11\": {\n                \"id\": \"11\",\n                \"key\": \"addedByUnknown\",\n                \"integration\": 0\n            },\n            \"12\": {\n                \"id\": \"12\",\n                \"key\": \"addedByContactually\",\n                \"integration\": 1\n            },\n            \"13\": {\n                \"id\": \"13\",\n                \"key\": \"addedByLiveSpace\",\n                \"integration\": 1\n            },\n            \"14\": {\n                \"id\": \"14\",\n                \"key\": \"addedByFusionSystem\",\n                \"integration\": 1\n            },\n            \"15\": {\n                \"id\": \"15\",\n                \"key\": \"addedByZenDesk\",\n                \"integration\": 1\n            },\n            \"16\": {\n                \"id\": \"16\",\n                \"key\": \"addedByZohoCrm\",\n                \"integration\": 1\n            },\n            \"17\": {\n                \"id\": \"17\",\n                \"key\": \"addedByInsightly\",\n                \"integration\": 1\n            },\n            \"18\": {\n                \"id\": \"18\",\n                \"key\": \"addedByBaseCrm\",\n                \"integration\": 1\n            },\n            \"19\": {\n                \"id\": \"19\",\n                \"key\": \"leadAddedByBaseCrm\",\n                \"integration\": 1\n            },\n            \"20\": {\n                \"id\": \"20\",\n                \"key\": \"addedByPrestaShop\",\n                \"integration\": 1\n            },\n            \"21\": {\n                \"id\": \"21\",\n                \"key\": \"addedByLeadDesk\",\n                \"integration\": 1\n            },\n            \"22\": {\n                \"id\": \"22\",\n                \"key\": \"addedByMagento\",\n                \"integration\": 1\n            },\n            \"23\": {\n                \"id\": \"23\",\n                \"key\": \"addedByWordPress\",\n                \"integration\": 1\n            },\n            \"24\": {\n                \"id\": \"24\",\n                \"key\": \"addedByDelighted\",\n                \"integration\": 1\n            },\n            \"25\": {\n                \"id\": \"25\",\n                \"key\": \"addedByProsperWorks\",\n                \"integration\": 1\n            },\n            \"26\": {\n                \"id\": \"26\",\n                \"key\": \"addedBySmartsUpp\",\n                \"integration\": 1\n            },\n            \"27\": {\n                \"id\": \"27\",\n                \"key\": \"addedByPipedrive\",\n                \"integration\": 1\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"9c29c8de-818c-29b2-2e6a-cfbf5602f887"},{"name":"Get contacts from a given source","id":"efd38e11-df1a-e81d-84a3-ef6042c45d80","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/origin/ID_ORIGIN/contact","description":"<p>In order to get contacts from a given source send <code>GET</code> request to the URL:\n<code>https://CLIENT_PANEL_ADDRESS/api/2/origin/ID_ORIGIN/contact</code></p>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the URL address of iPresso. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID_ORIGIN</code> should be replaced with ID number of contact’s source. </p>\n</blockquote>\n<p>In the case of getting large number of contacts assigned to a given source, the system will respond with just the first page of 50 records. In order to see other pages it is necessary to define which page is to be displayed by adding to the link parameter <code>?page=N</code> where <code>N</code> corresponds to the number of the page, e.g.: <code>https://CLIENT_PANEL_ADDRESS/api/2/origin/ID_ORIGIN/contact?page=2</code> </p>\n","urlObject":{"protocol":"https","path":["api","2","origin","ID_ORIGIN","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"eb188a5a-3478-123f-a94a-4da3ca9d3023","name":"success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/origin/ID_ORIGIN/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"89","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:34:38 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"273","body":"{\"code\":200,\"data\":{\"count\":\"3\",\"id\":[\"90\",\"91\",\"243556\"]},\"message\":\"OK\"}"}],"_postman_id":"efd38e11-df1a-e81d-84a3-ef6042c45d80"}],"id":"7fd33578-3f04-dac7-a643-fefa0386d4ec","_postman_id":"7fd33578-3f04-dac7-a643-fefa0386d4ec","description":""},{"name":"Log into iPresso Panel","item":[{"name":"Login via API","id":"8713c229-f70c-7760-8896-3d4707bf5ccf","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"login","value":"USER_LOGIN","type":"text"},{"key":"password","value":"USER_PASSWORD","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/authorization/panel","description":"<p>In order to log into customer account via <code>API</code> send <code>POST</code> request to the url address <code>https://CLIENT_PANEL_ADDRESS/api/2/authorization/panel</code>.</p>\n<blockquote>\n<p>Parameters <code>USER_LOGIN</code> and <code>USER_PASSWORD</code> should be replaced with the login and password assigned to user. </p>\n</blockquote>\n<blockquote>\n<p>Session is valid for 2 hours. </p>\n</blockquote>\n<blockquote>\n<p>The url in <code>auth_url</code> is used for logging into customer account. </p>\n</blockquote>\n<h3 id=\"example\">Example:</h3>\n<blockquote>\n<p>In order to log into customer account via API and go to the Contact Manager, send a GET or POST request to the url address received as a response in auth_url, e.g. <code>https://CLIENT_PANEL_ADDRESS/v2/login?oneTimeAuthToken=xyz</code> with <code>oneTimeAuthToken</code> parameter eg. e3ba8aa6ceec0f1052c8f6d59a1999f2 and [optional] redirect_url parameter eg. <code>https://CLIENT_PANEL_ADDRESS/v2/contact-manager.</code> </p>\n</blockquote>\n<blockquote>\n<p>sample URL:<br /><code>https://CLIENT_PANEL_ADDRESS/authorization/log-in/?oneTimeAuthToken=e3ba8aa6ceec0f1052c8f6d59a1999f2&amp;redirect_url=https://CLIENT_PANEL_ADDRESS/contact-manager</code></p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","authorization","panel"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"dd052550-fdba-af2f-6545-ed1dc1a0dac8","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"login","value":"USER_LOGIN","type":"text"},{"key":"password","value":"USER_PASSWORD","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/authorization/panel"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"151","description":""},{"key":"content-type","value":"text/json;charset=UTF-8","description":""},{"key":"date","value":"Fri, 06 Oct 2017 06:25:19 GMT","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-content-type-options","value":"nosniff","description":""}],"cookie":[],"responseTime":"234","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"auth_url\": \"https://CLIENT_PANEL_ADDRESS/v2/login?oneTimeAuthToken=xyz\"\n    },\n    \"message\": \"OK\"\n}"},{"id":"3a180263-7fe5-2a15-b307-8bdb6ef35cfc","name":"Error - Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"login","value":"USER_LOGIN","type":"text"},{"key":"password","value":"USER_PASSWORD","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/authorization/panel"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"34","description":""},{"key":"content-type","value":"text/json;charset=UTF-8","description":""},{"key":"date","value":"Fri, 06 Oct 2017 06:29:28 GMT","description":""},{"key":"x-content-type-options","value":"nosniff","description":""}],"cookie":[],"responseTime":"94","body":"{\"code\":404,\"message\":\"Not Found\"}"}],"_postman_id":"8713c229-f70c-7760-8896-3d4707bf5ccf"}],"id":"88330df2-b4f0-d539-0cf5-81aab6358e70","_postman_id":"88330df2-b4f0-d539-0cf5-81aab6358e70","description":""},{"name":"Monitored site","item":[{"name":"Get monitored sites","id":"c1a5a7a0-3075-142f-9246-1bc96705f7fa","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/www","description":"<p>In order to get all monitored sites send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/www</code></p>\n","urlObject":{"protocol":"https","path":["api","2","www"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"f4f60de6-b4f6-4cce-8e2a-60ba7dc34ccc","name":"success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/www"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":" {\n    \"code\": 200,\n    \"data\": {\n        \"www\": {\n            \"1\": {\n                \"id\": \"1\",\n                \"url\": \"SITE_URL\",\n                \"create_date\": \"2018-03-16\",\n                \"last_check\": \"2018-03-16 09:24:45\",\n                 \"code\": \"<script type=\\\"module\\\">import {iPressoJSAPI} from 'https://libs.ipresso.com/jsapi/latest/ipresso-jsapi.esm.js';iPressoJSAPI.init({initURL: ...</script>\",\n                \"codeLegacy\": \"<script type=\\\"text/javascript\\\">function __ipGetMonitCode(t){for(var e=\\\"__ipcan_oXQUo026RIvVKIo7kJ_5KAdme8P_w0MeIakrhZ4SyXk...};</script>\"\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"c1a5a7a0-3075-142f-9246-1bc96705f7fa"},{"name":"Get monitored site of a given ID","id":"a314e679-1149-3c12-4d20-4811abfc0890","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/www/ID_WWW","description":"<p>In order to get data of monitored sites send <code>GET</code> request to the URL:<br /><code>https://CLIENT_PANEL_ADDRESS/api/2/www/ID_WWW</code></p>\n<blockquote>\n<p>Parameter <code>ID_WWW</code> should be replaced with ID of monitored site.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","www","ID_WWW"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"144a465b-db46-f557-3b9b-38cd15d78c36","name":"success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/www/ID_WWW"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"788","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:58:53 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"259","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"www\": {\n            \"id\": \"7\",\n            \"url\": \"http://ipresso.pl\",\n            \"create_date\": \"2012-06-26\",\n            \"last_check\": \"2016-07-05 11:23:24\",\n             \"code\": \"<script type=\\\"module\\\">import {iPressoJSAPI} from 'https://libs.ipresso.com/jsapi/latest/ipresso-jsapi.esm.js';iPressoJSAPI.init({initURL: ...</script>\",\n            \"codeLegacy\": \"<script type=\\\"text/javascript\\\">function __ipGetMonitCode(t){for(var e=\\\"__ipcan_oXQUo026RIvVKIo7kJ_5KAdme8P_w0MeIakrhZ4SyXk...};</script>\"\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"a314e679-1149-3c12-4d20-4811abfc0890"},{"name":"Add monitored site","id":"5d2423c5-b0da-1228-f63d-e83e2de53de6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"www[url]","type":"text","value":"SITE_URL"},{"key":"www[js_api_methods][JS_API_KEY]","value":"1","type":"text"},{"key":"www[js_api_methods][JS_API_KEY]","value":"0","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/www","description":"<p>In order to add a new site send <code>POST</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/www</code></p>\n<blockquote>\n<p>Parameter <code>SITE_URL</code> should be replaced with a correct URL (containing https://). </p>\n</blockquote>\n<p>In order to use JS API fully, it is possible (optionally) to turn on selected JS API methods, which should be active on the monitored site. Also, it is possible to turn off methods which are active by default. To switch the method on and off you should replace <code>JS_API_KEY</code> parameter with proper JS API method key. In order to turn on method, send JS API key with <strong>1</strong> value. To turn off method, send JS API key with <strong>0</strong> value.</p>\n<p>All methods and keys are available in client's panel after log in. Navigate to <strong>Site monitoring</strong> module, click <strong>more</strong> next to any monitored website on the listing and then choose <strong>JS API method settings</strong>.</p>\n<p>In response, tracking code will be returned - where 'SCRIPT' placeholder is located in the example.</p>\n","urlObject":{"protocol":"https","path":["api","2","www"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"918e1247-f9de-0dc8-852a-f01767b953cc","name":"success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"www[url]","value":"SITE_URL","type":"text"},{"key":"www[js_api_methods][JS_API_KEY]","value":"1","type":"text"},{"key":"www[js_api_methods][JS_API_KEY]","value":"0","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/www"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"773","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:51:03 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"198","body":"{\n    \"code\": 201,\n    \"data\": {\n        \"www\": {\n            \"id\": 29,\n            \"url\": \"http://ipresso.pl\",\n            \"create_date\": \"2017-10-05\",\n            \"last_check\": false,\n             \"code\": \"<script type=\\\"module\\\">import {iPressoJSAPI} from 'https://libs.ipresso.com/jsapi/latest/ipresso-jsapi.esm.js';iPressoJSAPI.init({initURL: ...</script>\",\n            \"codeLegacy\": \"<script type=\\\"text/javascript\\\">function __ipGetMonitCode(t){for(var e=\\\"__ipcan_oXQUo026RIvVKIo7kJ_5KAdme8P_w0MeIakrhZ4SyXk...};</script>\"\n        }\n    },\n    \"message\": \"Created\"\n}"},{"id":"1aea9bf9-3919-65cd-a2ef-c6b199475b12","name":"error-Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"www[url]","value":"SITE_URL","type":"text"},{"key":"www[js_api_methods][JS_API_KEY]","value":"1","type":"text"},{"key":"www[js_api_methods][JS_API_KEY]","value":"0","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/www"},"status":"Found","code":302,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"790","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:55:06 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"591","body":"{\n    \"code\": 302,\n    \"data\": {\n        \"www\": {\n            \"id\": \"10\",\n            \"url\": \"http://ipresso9.pl\",\n            \"create_date\": \"2013-06-26\",\n            \"last_check\": \"2014-09-15 13:43:02\",\n            \"code\": \"SCRIPT\"\n        }\n    },\n    \"message\": \"Found\"\n}"},{"id":"3dcf0001-958a-07df-9074-c3a125cf17c7","name":"error-Not Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"www[url]","value":"SITE_URL","type":"text"},{"key":"www[js_api_methods][JS_API_KEY]","value":"1","type":"text"},{"key":"www[js_api_methods][JS_API_KEY]","value":"0","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/www"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 07:51:33 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"199","body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":66}"},{"id":"bc23cb35-c7ef-410a-af3d-3b8ac5a8c2d2","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"www[url]","type":"text","value":"SITE_URL"},{"key":"www[js_api_methods][JS_API_KEY]","value":"1","type":"text"},{"key":"www[js_api_methods][JS_API_KEY]","value":"0","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/www"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"message\": \"Bad Request\",\n    \"errorCode\": 114\n}"}],"_postman_id":"5d2423c5-b0da-1228-f63d-e83e2de53de6"},{"name":"Delete monitored site","id":"f7eaae3c-6081-a799-1fc9-49b54afc5c2a","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/www/ID_WWW","description":"<p>In order to delete site send <code>DELETE</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/www/ID_WWW</code></p>\n<blockquote>\n<p>Parameter <code>ID_WWW</code> should be replaced with ID of monitored site.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","www","ID_WWW"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"d8bc251e-3148-134d-6500-1899615458b2","name":"success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/www/ID_WWW"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"768","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 08:01:20 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"116","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"www\": {\n            \"id\": \"30\",\n            \"url\": \"http://ipresso.pl\",\n            \"create_date\": \"2017-10-05\",\n            \"last_check\": null,\n            \"code\": \"<script type=\\\"text/javascript\\\">function __ipGetMonitCode(t){for(var e=\\\"__ipcan_bezF2dXFC4djYZ4IlQsIC6GpzzfSbNlNtVUxcuxFQ-I.=\\\",n=document.cookie.split(\\\";\\\"),o=\\\"null\\\",i=0;i<n.length;i++){var r;r=\\\"function\\\"!=typeof String.prototype.trim?n[i].replace(/^\\\\s+|\\\\s+$/g,\\\"\\\"):n[i].trim(),0==r.indexOf(e)&&(o=r.substring(e.length,r.length))}var a=document.getElementById(\\\"ipressoMonitStart\\\");if(null!=a)try{document.getElementsByTagName(\\\"head\\\")[0].removeChild(a)}catch(f){}var c=document.getElementsByTagName(\\\"script\\\")[0],m=document.createElement(\\\"script\\\");m.type=\\\"text/javascript\\\",m.id=\\\"ipressoMonitStart\\\",m.async=!0,t=t===!0?1:0,m.src=\\\"//encja-uptest-media.ipresso.pl/monitoridentification/bezF2dXFC4djYZ4IlQsIC6GpzzfSbNlNtVUxcuxFQ-I./d0liglKLIwdqchkcnvgcKPUV7vxNIqbE2VUNpo8dOFo./monitoridentification.js?r=\\\"+encodeURIComponent(document.referrer)+\\\"&ti=\\\"+encodeURIComponent(document.title)+\\\"&c=\\\"+o+\\\"&z=Qiuit2U0PLr9sZlkRc89-vwh63VRkZnyuv0eox72Dlk.&as=\\\"+t,c.parentNode.insertBefore(m,c)}function __ipStartMonitoring(t){\\\"undefined\\\"!=typeof __ipIntervalTu&&__ipIntervalTu&&clearInterval(__ipIntervalTu),__ipGetMonitCode(t)}__ipStartMonitoring(!0);</script>\"\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"9159407f-731d-f3bf-a398-96db25069aa7","name":"error-Not Found","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/www/ID_WWW"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 08:02:51 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":"133","body":"{\"code\":404,\"message\":\"Not Found\"}"}],"_postman_id":"f7eaae3c-6081-a799-1fc9-49b54afc5c2a"}],"id":"2b7c89a8-e238-8166-e5f1-00d1b241cc0d","_postman_id":"2b7c89a8-e238-8166-e5f1-00d1b241cc0d","description":""},{"name":"iPresso Availability Monitoring","item":[{"name":"iPresso Availability Monitoring","id":"0e2b59b8-712e-4286-ac66-d19af7a703a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Authorization","value":"[Token required to check system status]","type":"text"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/status","description":"<p>To check iPresso's availability via the API, you need to make a <strong>GET</strong> request to the following URL:</p>\n<p><code>https://CLIENT_PANEL_ADDRESS/api/2/status</code></p>\n<p>For authorization, you'll need to provide the token (the one required for checking system status) as the value for the <strong>X-Authorization</strong> key in the headers. You can generate this token in your iPresso client panel, from the list of API users.</p>\n","urlObject":{"protocol":"https","path":["api","2","status"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"6b3ea80a-84fb-4eed-a9e8-ebde9f7ddc1e","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Authorization","value":"[Token required to check system status]","type":"text"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/status"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\"\n}"},{"id":"dc35fe87-5915-473d-b018-f5357f76d926","name":"Error - Authorization error","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Authorization","value":"[Token required to check system status]","type":"text"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/status"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 403,\n    \"message\": \"Unauthorized\"\n}"},{"id":"d3895619-0644-4176-b9db-9b64d2632c2c","name":"Error - Service error","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Authorization","value":"[Token required to check system status]","type":"text"}],"url":"https://CLIENT_PANEL_ADDRESS/api/2/status"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 503,\n    \"message\": \"One or more services are currently experiencing issues. Please try again later or contact support.\"\n}"}],"_postman_id":"0e2b59b8-712e-4286-ac66-d19af7a703a1"}],"id":"511c809e-2498-4c64-8f82-64d171e2c0e9","_postman_id":"511c809e-2498-4c64-8f82-64d171e2c0e9","description":""},{"name":"Customer attributes","item":[{"name":"Get available customer attributes","event":[{"listen":"test","script":{"id":"28e46300-5361-42be-a93b-c9a6f43fc5cf","exec":[""],"type":"text/javascript","packages":{}}}],"id":"adda7e9f-8b71-44cf-a889-a2dc5c9f77e8","request":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer","description":"<p>In order to get customer attributes send <code>GET</code> request to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer</code></p>\n","urlObject":{"protocol":"https","path":["api","2","attribute","customer"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"4003ed13-e83f-4ded-8f8a-900603703078","name":"Success","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://CLIENT_PANEL_ADDRESS/api/2/type/attribute/customer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"86","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Thu, 05 Oct 2017 10:01:31 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": {\n        \"attribute\": {\n            \"3\": {\n                \"id\": \"3\",\n                \"name\": \"CUSTOMER_ATTRIBUTE\",\n                \"value\": \"1\",\n                \"key\": \"API_KEY\",\n                \"type\": \"integer\"\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"2db90b6f-9d7b-4fe6-b901-fb9c2cfa6370","name":"Errror - Not Found","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Mon, 06 Aug 2018 08:12:23 GMT","description":"The date and time that the message was sent"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.28","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"panel.qa13-ipresso.encja.eu","path":"/","secure":false,"value":"d4bcffeb422067b1c6e596714d999bfd","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Not Found\"\n}"}],"_postman_id":"adda7e9f-8b71-44cf-a889-a2dc5c9f77e8"},{"name":"Edit customer attribute","id":"8e79aabc-1b12-4576-b1eb-c668812f6cfd","request":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"attribute[name]","value":"NEW_ATTRIBUTE_NAME","type":"text"},{"key":"attribute[key]","value":"NEW_ATTRIBUTE_KEY","type":"text"},{"key":"attribute[value]","value":"NEW_ATTRIBUTE_VALUE","type":"text"},{"key":"attribute[type]","value":"NEW_ATTRIBUTE_TYPE","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer","description":"<p>In order to edit customer attribute send <code>POST</code> request on the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer/ATTRIBUTE_KEY</code></p>\n<blockquote>\n<p>Parameter <code>NEW_ATTRIBUTE_NAME</code> should be replace with new attribute name. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>NEW_ATTRIBUTE_KEY</code> should be replaced with new attribute key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>NEW_ATTRIBUTE_VALUE</code> should be replaced with new attribute value.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>NEW_ATTRIBUTE_TYPE</code> should be replaced with new attribute type.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","attribute","customer"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"c0e102f6-7ddc-4b20-a682-2545e648f0e1","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Encoding","value":"gzip","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"137","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Mon, 06 Aug 2018 08:25:57 GMT","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Vary","value":"Accept-Encoding","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.28","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"panel.qa13-ipresso.encja.eu","path":"/","secure":false,"value":"d4bcffeb422067b1c6e596714d999bfd","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"Created\"\n}"},{"id":"267e26c4-178a-4dc5-82a5-f037f5bfbd56","name":"Error - Forbidden","originalRequest":{"method":"PUT","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Length","value":"49","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Mon, 06 Aug 2018 08:32:10 GMT","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.28","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"panel.qa13-ipresso.encja.eu","path":"/","secure":false,"value":"d4bcffeb422067b1c6e596714d999bfd","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 403,\n    \"message\": \"Forbidden\",\n    \"errorCode\": 65\n}"}],"_postman_id":"8e79aabc-1b12-4576-b1eb-c668812f6cfd"},{"name":"Add new customer attributes","id":"02c39683-3419-422e-a26c-046b2cc8da72","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"ATTRIBUTE_NAME","type":"text"},{"key":"key","value":"ATTRIBUTE_KEY","type":"text"},{"key":"value","value":"ATTRIBUTE_VALUE","type":"text"},{"key":"type","value":"ATTRIBUTE_TYPE","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer","description":"<p>In order to add new customer attribute send <code>POST</code> request on the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer</code></p>\n<blockquote>\n<p>Parameter <code>ATTRIBUTE_NAME</code> should be replace with an attribute name. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ATTRIBUTE_KEY</code> should be replaced with attribute key.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ATTRIBUTE_VALUE</code> should be replaced with attribute value.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ATTRIBUTE_TYPE</code> should be replaced with attribute type.</p>\n</blockquote>\n<p><strong>Kinds of available attribute types:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>integer</td>\n<td>Numerical value</td>\n</tr>\n<tr>\n<td>string</td>\n<td>Text (up to 255 characters)</td>\n</tr>\n<tr>\n<td>decimal</td>\n<td>Floating point numbers</td>\n</tr>\n<tr>\n<td>text</td>\n<td>Text</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","2","attribute","customer"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"3e195a77-fbec-4864-b070-7f7ee232244a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"ATTRIBUTE_NAME","type":"text"},{"key":"key","value":"ATTRIBUTE_KEY","type":"text"},{"key":"value","value":"ATTRIBUTE_VALUE","type":"text"},{"key":"type","value":"ATTRIBUTE_TYPE","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Encoding","value":"gzip","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"137","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Mon, 06 Aug 2018 08:25:57 GMT","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Vary","value":"Accept-Encoding","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.28","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"panel.qa13-ipresso.encja.eu","path":"/","secure":false,"value":"d4bcffeb422067b1c6e596714d999bfd","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"data\": {\n        \"attribute\": {\n            \"4\": {\n                \"name\": \"ATTRIBUTE_NAME\",\n                \"value\": \"ATTRIBUTE_VALUE\",\n                \"type\": 4,\n                \"api_key\": \"ATTRIBUTE_KEY\",\n                \"id\": 4\n            }\n        }\n    },\n    \"message\": \"Created\"\n}"},{"id":"299d872e-ca7b-4322-8c56-6a65db03e196","name":"Error - Not Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"ATTRIBUTE_NAME","type":"text"},{"key":"key","value":"ATTRIBUTE_KEY","type":"text"},{"key":"value","value":"ATTRIBUTE_VALUE","type":"text"},{"key":"type","value":"ATTRIBUTE_TYPE","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Length","value":"49","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Mon, 06 Aug 2018 08:32:10 GMT","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.28","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"panel.qa13-ipresso.encja.eu","path":"/","secure":false,"value":"d4bcffeb422067b1c6e596714d999bfd","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Not Found\",\n    \"errorCode\": 24\n}"},{"id":"bf83dc93-5613-4261-9436-e1cfc198ef85","name":"Error - Found","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"ATTRIBUTE_NAME","type":"text"},{"key":"key","value":"ATTRIBUTE_KEY","type":"text"},{"key":"value","value":"ATTRIBUTE_VALUE","type":"text"},{"key":"type","value":"ATTRIBUTE_TYPE","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer"},"status":"Found","code":302,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Encoding","value":"gzip","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"135","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Mon, 06 Aug 2018 08:27:59 GMT","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Vary","value":"Accept-Encoding","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.28","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"panel.qa13-ipresso.encja.eu","path":"/","secure":false,"value":"d4bcffeb422067b1c6e596714d999bfd","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 302,\n    \"data\": {\n        \"attribute\": {\n            \"4\": {\n                \"id\": \"4\",\n                \"name\": \"ATTRIBUTE_NAME\",\n                \"value\": \"ATTRIBUTE_VALUE\",\n                \"key\": \"ATTRIBUTE_KEY\",\n                \"type\": \"text\"\n            }\n        }\n    },\n    \"message\": \"Found\"\n}"}],"_postman_id":"02c39683-3419-422e-a26c-046b2cc8da72"},{"name":"Delete customer attribute","id":"de318424-67b6-453d-842a-edfd4d82db66","request":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer/ATTRIBUTE_KEY","description":"<p>In order to delete customer attribute send <code>DELETE</code> request on the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer/ATTRIBUTE_KEY</code></p>\n<blockquote>\n<p>Parameter <code>ATTRIBUTE_KEY</code> should be replaced with customer attribute API key.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","2","attribute","customer","ATTRIBUTE_KEY"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"9688c903-2f4b-4910-932f-389d72aa79c8","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer/ATTRIBUTE_KEY"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Encoding","value":"gzip","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"137","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Mon, 06 Aug 2018 08:25:57 GMT","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Vary","value":"Accept-Encoding","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.28","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"panel.qa13-ipresso.encja.eu","path":"/","secure":false,"value":"d4bcffeb422067b1c6e596714d999bfd","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\"\n}"},{"id":"d0f17114-7589-4275-8539-ca100bcabfa8","name":"Error - Forbidden","originalRequest":{"method":"DELETE","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/attribute/customer/ATTRIBUTE_KEY"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Length","value":"49","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":"The mime type of this content"},{"key":"Date","value":"Mon, 06 Aug 2018 09:33:10 GMT","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Content-Type-Options","value":"nosniff","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.28","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"panel.qa13-ipresso.encja.eu","path":"/","secure":false,"value":"d4bcffeb422067b1c6e596714d999bfd","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":403,\"message\":\"Forbidden\",\"errorCode\":65}"}],"_postman_id":"de318424-67b6-453d-842a-edfd4d82db66"}],"id":"2030e374-a12b-4e70-8f9b-f5779cb8ae7d","event":[{"listen":"prerequest","script":{"id":"274b706c-b1dc-4231-9a76-e261b9882089","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"aa9fbe30-5393-49d9-bb93-d4a5ae242276","type":"text/javascript","exec":[""]}}],"_postman_id":"2030e374-a12b-4e70-8f9b-f5779cb8ae7d","description":""},{"name":"Campaigns","item":[{"name":"Sending e-mails","id":"c390fc4c-5943-0e28-0ec3-aa36c2ba35e3","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email[0]","value":"EMAIL","description":"<p>E-mail address</p>\n","type":"text"},{"key":"contactId[0]","value":"ID_CONTACT","description":"<p>Contact ID number</p>\n","type":"text"},{"key":"content[HEAD]","value":"HEAD_CONTENT","description":"<p>Header content</p>\n","type":"text"},{"key":"content[TEXT]","value":"TEXT_CONTENT","description":"<p>Message content</p>\n","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send","description":"<p>In order to send message via iPresso API, <code>POST</code> request should be sent to the URL:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send</a> using campaign ID</li>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/API_KEY/send?key=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/API_KEY/send?key=true</a> using campaign API key</li>\n</ul>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the URL address of one’s iPresso. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID</code> should be replaced with the campaign ID. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>API_KEY</code> should be replaced with the campaign API key. </p>\n</blockquote>\n<p>You can send messages only to existing iPresso contacts, using the contact’s email <code>email[]</code> and contact’s ID <code>contactId[]</code>.  </p>\n<p>You can use brackets in campaign content. For example, to replace brackets <code>{_bracket1_}</code> and <code>{_bracket2_}</code>, you need to use <code>[‘content’][‘bracket1’] = ‘Hi’</code> and <code>[‘content’][‘bracket2’] = ‘this is bracket content’</code>. </p>\n<p>In order to return message ID, append <code>returnId=true</code> parameter to the URL address. Examples:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true</a></li>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true</a></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","2","campaign","ID","send"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"97b2d120-0758-d7cb-b38c-c028dcf37648","name":"Success-By Id","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email[0]","value":"EMAIL","description":"Adres e-mail"},{"key":"contactId[0]","value":"ID_CONTACT","description":"Numer ID kontaktu"},{"key":"content[HEAD]","value":"HEAD_CONTENT","description":"Nagłówek wiadomości"},{"key":"content[TEXT]","value":"TEXT_CONTENT","description":"Treść wiadomości"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"115","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:38:29 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"651","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"email\": {\n            \"email@encja.com\": {\n                \"code\": 202\n            }\n        },\n        \"contactId\": {\n            \"123456\": {\n                \"code\": 202\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"ef08cba0-eb90-364a-1690-89180330fbd7","name":"Success-By Key","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email[0]","value":"EMAIL","description":"Adres e-mail"},{"key":"contactId[0]","value":"ID_CONTACT","description":"Numer ID kontaktu"},{"key":"content[HEAD]","value":"HEAD_CONTENT","description":"Nagłówek wiadomości"},{"key":"content[TEXT]","value":"TEXT_CONTENT","description":"Treść wiadomości"}]},"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","campaign","KEY_NAME","send"],"query":[{"key":"key","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"115","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:41:57 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"197","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"email\": {\n            \"email@encja.com\": {\n                \"code\": 202\n            }\n        },\n        \"contactId\": {\n            \"123456\": {\n                \"code\": 202\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"109bd73c-5ab7-7357-e17e-95aaf336ea57","name":"Error","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email[0]","value":"EMAIL","description":"Adres e-mail"},{"key":"contactId[0]","value":"ID_CONTACT","description":"Numer ID kontaktu"},{"key":"content[HEAD]","value":"HEAD_CONTENT","description":"Nagłówek wiadomości"},{"key":"content[TEXT]","value":"TEXT_CONTENT","description":"Treść wiadomości"}]},"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","campaign","KEY_NAME","send"],"query":[{"key":"key","value":"true"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"148","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:43:52 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"192","body":"{\n    \"code\": 400,\n    \"data\": {\n        \"email\": {\n            \"email@encja.com\": {\n                \"errorCode\": 13,\n                \"code\": 404\n            }\n        },\n        \"contactId\": {\n            \"123456\": {\n                \"errorCode\": 13,\n                \"code\": 404\n            }\n        }\n    },\n    \"message\": \"Bad request - See response\"\n}"}],"_postman_id":"c390fc4c-5943-0e28-0ec3-aa36c2ba35e3"},{"name":"Send messages to an external e-mail address","id":"d0ea1d55-6b0d-6210-b48f-181ea8d5f581","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[0][ID_CONTACT]","value":"EXTERNAL_EMAIL","description":"<p>External email address assigned to the contact id</p>\n"},{"key":"content[HEAD]","value":"HEAD_CONTENT","description":"<p>Message header</p>\n","type":"text"},{"key":"content[TEXT]","value":"TEXT_CONTENT","description":"<p>Message content</p>\n","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send","description":"<p>In order to send message via iPresso API \nto the e-mail address outside the system, <code>POST</code> request should be sent to the URL:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send</a> using campaign ID</li>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true</a> using campaign API key</li>\n</ul>\n<blockquote>\n<p>Parameter CLIENT_PANEL_ADDRESS should be replaced with the URL address of one’s iPresso.</p>\n</blockquote>\n<blockquote>\n<p>Parameter ID should be replaced with the campaign ID.</p>\n</blockquote>\n<blockquote>\n<p>Parameter API_KEY should be replaced with the campaign API key.</p>\n</blockquote>\n<p>The camapign may be forwarded to an outside e-mail address if the contact with id assigned in the parameter <code>ID_CONTACT</code> exists in the system. </p>\n<p>You can use brackets in campaign content. For example, to replace brackets <code>{_HEAD_}</code> and <code>{_TEXT_}</code>, you need to use <code>[‘content’][‘HEAD’] = ‘Hi’</code> and `[‘content’][‘TEXT’] = ‘this is bracket content’.</p>\n<p>In order to return message ID, append <code>returnId=true</code> parameter to the URL address. Examples:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true</a></li>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true</a></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","2","campaign","ID","send"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"364c081a-9bd0-3463-7972-59af63f9c2cf","name":"Success-By Key","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[0][ID_CONTACT]","value":"email@encja.com","description":"External email address assigned to the contact id"},{"key":"content[HEAD]","value":"HEAD_CONTENT","description":"Message header"},{"key":"content[TEXT]","value":"TEXT_CONTENT","description":"Message content"}]},"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","campaign","KEY_NAME","send"],"query":[{"key":"key","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"115","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:41:57 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": {\n        \"email\": {\n            \"email@encja.com\": {\n                \"code\": 202\n            }\n        },\n        \"contactId\": {\n            \"123456\": {\n                \"code\": 202\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"577039b2-7789-9243-41ec-e482c62d5fc4","name":"Success-By Id","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[0][ID_CONTACT]","value":"email@encja.com","description":"External email address assigned to the contact id"},{"key":"content[HEAD]","value":"HEAD_CONTENT","description":"Message header"},{"key":"content[TEXT]","value":"TEXT_CONTENT","description":"Message content"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"115","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:38:29 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": {\n        \"email\": {\n            \"email@encja.com\": {\n                \"code\": 202\n            }\n        },\n        \"contactId\": {\n            \"123456\": {\n                \"code\": 202\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"f470af82-3182-c000-d794-39317b0833e7","name":"Error","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[0][ID_CONTACT]","value":"email@encja.com","description":"External email address assigned to the contact id"},{"key":"content[HEAD]","value":"HEAD_CONTENT","description":"Message header"},{"key":"content[TEXT]","value":"TEXT_CONTENT","description":"Message content"}]},"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","campaign","KEY_NAME","send"],"query":[{"key":"key","value":"true"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"148","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:43:52 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"data\": {\n        \"email\": {\n            \"email@encja.com\": {\n                \"errorCode\": 13,\n                \"code\": 404\n            }\n        },\n        \"contactId\": {\n            \"123456\": {\n                \"errorCode\": 13,\n                \"code\": 404\n            }\n        }\n    },\n    \"message\": \"Bad request - See response\"\n}"}],"_postman_id":"d0ea1d55-6b0d-6210-b48f-181ea8d5f581"},{"name":"Sending SMS/Voice","id":"f67248b6-a150-eefb-c1cd-c689fd92fe69","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"phone[0]","value":"PHONE","description":"<p>Phone number</p>\n","type":"text"},{"key":"contactId[0]","value":"ID_CONTACT","description":"<p>Contact ID number</p>\n","type":"text"},{"key":"content[text]","value":"TEXT","description":"<p>Message content</p>\n","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send","description":"<p>In order to send message via iPresso API, <code>POST</code> request should be sent to the URL:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send</a> using campaign ID</li>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/API_KEY/send?key=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/API_KEY/send?key=true</a> using campaign API key</li>\n</ul>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the URL address of one’s iPresso. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID</code> should be replaced with the campaign ID.  </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>API_KEY</code> should be replaced with the campaign API key. </p>\n</blockquote>\n<p>You can send messages only to existing iPresso contacts, using contact’s mobilephones numbers array (<code>$data[‘phone’][]</code>) and contact’s IDs array ( <code>$data[‘contactId’][]</code>). </p>\n<p>You can use brackets in campaign content. For example, to replace bracket <code>{_bracket1_}</code> you need to use <code>$data[‘content’][‘bracket1’] = ‘this is bracket content’</code>.</p>\n<p>In order to return message ID, append <code>returnId=true</code> parameter to the URL address. Examples:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true</a></li>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true</a></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","2","campaign","ID","send"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"a00bb3eb-8a22-aa9f-b656-d0e937cd99f4","name":"Success-By Id","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"phone[0]","value":"PHONE","description":"Numer telefonu"},{"key":"contactId[0]","value":"ID_CONTACT","description":"Numer ID kontaktu"},{"key":"content[tekstSMS]","value":"TEXT","description":"Treść wiadomości"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"112","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 11:14:45 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"1607","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"sms\": {\n            \"123123123\": {\n                \"errorCode\": 72,\n                \"code\": 300\n            }\n        },\n        \"contactId\": {\n            \"123456\": {\n                \"code\": 202\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"c2abf1fa-8108-cb99-f733-2e4115bdf4c6","name":"Success-By Key","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"phone[0]","value":"PHONE","description":"Numer telefonu"},{"key":"contactId[0]","value":"ID_CONTACT","description":"Numer ID kontaktu"},{"key":"content[tekstSMS]","value":"TEXT","description":"Treść wiadomości"}]},"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","campaign","KEY_NAME","send"],"query":[{"key":"key","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"112","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 11:17:09 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"1476","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"sms\": {\n            \"123123123\": {\n                \"errorCode\": 72,\n                \"code\": 300\n            }\n        },\n        \"contactId\": {\n            \"123456\": {\n                \"code\": 202\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"ed1865c1-93aa-3f68-3f48-10aad416be13","name":"Error","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"phone[0]","value":"PHONE","description":"Numer telefonu"},{"key":"contactId[0]","value":"ID_CONTACT","description":"Numer ID kontaktu"},{"key":"content[tekstSMS]","value":"TEXT","description":"Treść wiadomości"}]},"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","campaign","KEY_NAME","send"],"query":[{"key":"key","value":"true"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"130","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 11:19:02 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"1514","body":"{\"code\":400,\"data\":{\"sms\":{\"\":{\"errorCode\":72,\"code\":300}},\"contactId\":{\"30614900\":{\"errorCode\":13,\"code\":404}}},\"message\":\"Bad request - See response\"}"}],"_postman_id":"f67248b6-a150-eefb-c1cd-c689fd92fe69"},{"name":"Send messages to an external phone number","event":[{"listen":"test","script":{"id":"b6cb98c5-07f6-4a6a-9e1e-8bd43292e8e8","exec":["pm.test(\"Prawidłowa wysyłka SMS/Voice\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"74e08f34-1e96-22d2-6d40-6c30eda9a0fa","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[0][ID_CONTACT]","value":"EXTERNAL_NUMBER","description":"<p>External telephone number assigned to the contact id</p>\n","type":"text"},{"key":"content[TEXT]","value":"TEXT","description":"<p>SMS content</p>\n","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send","description":"<p>In order to send message via iPresso API in to external phone number, <code>POST</code> request should be sent to the URL:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send</a> using campaign ID</li>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true</a> using campaign API key</li>\n</ul>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the URL address of one’s iPresso.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID</code> should be replaced with the campaign ID.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>API_KEY</code> should be replaced with the campaign API key.</p>\n</blockquote>\n<p>You can send sms messages to external phone number if parameter <code>ID_CONTACT</code> exists in iPresso. </p>\n<p>You can use brackets in campaign content. For example, to replace bracket <code>{_TEXT_}</code> you need to use <code>$data[‘content’][‘TEXT’] = ‘this is bracket content’.</code></p>\n<p>In order to return message ID, append <code>returnId=true</code> parameter to the URL address. Examples:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true</a></li>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true</a></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","2","campaign","ID","send"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"2505a6e6-759d-2e67-ce40-703d0d6481be","name":"Success-By Key","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[0][ID_CONTACT]","value":"EXTERNAL_NUMBER","description":"External telephone number assigned to the contact id","type":"text"},{"key":"content[TEXT]","value":"TEXT","description":"SMS content","type":"text"}]},"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","campaign","KEY_NAME","send"],"query":[{"key":"key","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"code\": 200,\n  \"data\": {\n    \"sms\": {\n      \"123123123\": {\n        \"errorCode\": 72,\n        \"code\": 300\n      }\n    },\n    \"contactId\": {\n      \"123456\": {\n        \"code\": 202\n      }\n    }\n  },\n  \"message\": \"OK\"\n}"},{"id":"4327f027-5345-43e5-c652-5034ead2af8d","name":"Success-By Id","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[0][ID_CONTACT]","value":"EXTERNAL_NUMBER","description":"External telephone number assigned to the contact id","type":"text"},{"key":"content[TEXT]","value":"TEXT","description":"SMS content","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"code\": 200,\n  \"data\": {\n    \"sms\": {\n      \"123123123\": {\n        \"errorCode\": 72,\n        \"code\": 300\n      }\n    },\n    \"contactId\": {\n      \"123456\": {\n        \"code\": 202\n      }\n    }\n  },\n  \"message\": \"OK\"\n}"}],"_postman_id":"74e08f34-1e96-22d2-6d40-6c30eda9a0fa"},{"name":"Sending push notification","id":"dea6c62c-799e-4abf-60c3-7cafa00dba46","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[]","value":"ID_CONTACT","type":"text"},{"key":"hash[]","value":"HASH","type":"text"},{"key":"token[]","value":"TOKEN","type":"text"},{"key":"content[header]","value":"HEADER","type":"text"},{"key":"content[text]","value":"TEXT","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send","description":"<p>In order to send message via iPresso API, <code>POST</code> request should be sent to the URL:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send</a> using campaign ID</li>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/API_KEY/send?key=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/API_KEY/send?key=true</a> using campaign API key</li>\n</ul>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the URL address of one’s iPresso. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID</code> should be replaced with the campaign ID.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>API_KEY</code> should be replaced with the campaign API key. </p>\n</blockquote>\n<p>You can send messages only to existing iPresso contacts, using contact’s push tokens array (<code>$data[‘token’][]</code>), contact’s IDs array ( <code>$data[‘contactId’][]</code>) and anonymous contacts hashes ( <code>$data[‘hash’][]</code>) . </p>\n<p>You can use brackets in campaign content. For example, to replace bracket <code>{_bracket1_}</code> you need to use <code>$data[‘content’][‘bracket1’] = ‘this is bracket content’</code>. </p>\n<p>In order to return message ID, append <code>returnId=true</code> parameter to the URL address. Examples:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true</a></li>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true</a></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","2","campaign","ID","send"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"559a5ae6-79a0-4c0c-99d9-3504cca57904","name":"Success-By Key","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[]","value":"306157","type":"text","disabled":true},{"key":"hash[]","value":"c64vjdvntpAhkYAHoWVCUNNDJtHoB80nxoEhTmr7t0M.","type":"text","disabled":true},{"key":"token[]","value":"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R","type":"text"},{"key":"content[naglowek]","value":"Ahoj","type":"text"},{"key":"content[tekst]","value":"Przygodo","type":"text"}]},"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY/send?key=true","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","campaign","KEY","send"],"query":[{"key":"key","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"284","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 13 Oct 2017 08:14:36 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"168","body":"{\"code\":200,\"data\":{\"token\":{\"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R\":[{\"id_contact\":null,\"id_contact_anonym\":\"zdwtdaedejrz_zpktgdzI4vNerStMXv5vCkM5Nukgj4.\",\"token\":\"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R\",\"code\":202}]}},\"message\":\"OK\"}"},{"id":"6b1eb80d-4718-366a-c116-5471241d164e","name":"Success-By Id","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[]","value":"306157","type":"text","disabled":true},{"key":"hash[]","value":"c64vjdvntpAhkYAHoWVCUNNDJtHoB80nxoEhTmr7t0M.","type":"text","disabled":true},{"key":"token[]","value":"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R","type":"text"},{"key":"content[naglowek]","value":"Ahoj","type":"text"},{"key":"content[tekst]","value":"Przygodo","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"284","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 13 Oct 2017 08:03:36 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"234","body":"{\"code\":200,\"data\":{\"token\":{\"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R\":[{\"id_contact\":null,\"id_contact_anonym\":\"zdwtdaedejrz_zpktgdzI4vNerStMXv5vCkM5Nukgj4.\",\"token\":\"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R\",\"code\":202}]}},\"message\":\"OK\"}"},{"id":"e242ad9c-ca12-6ea0-61df-070af38c590f","name":"Error","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[]","value":"306157","type":"text","disabled":true},{"key":"hash[]","value":"c64vjdvntpAhkYAHoWVCUNNDJtHoB80nxoEhTmr7t0M.","type":"text"},{"key":"token[]","value":"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R","type":"text","disabled":true},{"key":"content[naglowek]","value":"Ahoj","type":"text"},{"key":"content[tekst]","value":"Przygodo","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"147","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 13 Oct 2017 08:17:32 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"204","body":"{\"code\":400,\"data\":{\"hash\":{\"c64vjdvntpAhkYAHoWVCUNNDJtHoB80nxoEhTmr7t0M.\":{\"errorCode\":98,\"code\":403}}},\"message\":\"Bad request - See response\"}"}],"_postman_id":"dea6c62c-799e-4abf-60c3-7cafa00dba46"},{"name":"Sending mobile push notification","id":"2efeb6fb-7656-4a57-bea7-e1ef533cb986","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[]","value":"ID_CONTACT","type":"text"},{"key":"hash[]","value":"HASH","type":"text"},{"key":"token[]","value":"TOKEN","type":"text"},{"key":"content[header]","value":"HEADER","type":"text"},{"key":"content[text]","value":"TEXT","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send","description":"<p>In order to send message via iPresso API, <code>POST</code> request should be sent to the URL:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send</a> using campaign ID</li>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/API_KEY/send?key=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/API_KEY/send?key=true</a> using campaign API key</li>\n</ul>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the URL address of one’s iPresso. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID</code> should be replaced with the campaign ID.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>API_KEY</code> should be replaced with the campaign API key. </p>\n</blockquote>\n<p>You can send messages only to existing iPresso contacts, using contact’s push tokens array (<code>$data[‘token’][]</code>), contact’s IDs array ( <code>$data[‘contactId’][]</code>) and anonymous contacts hashes ( <code>$data[‘hash’][]</code>) . </p>\n<p>You can use brackets in campaign content. For example, to replace bracket <code>{_bracket1_}</code> you need to use <code>$data[‘content’][‘bracket1’] = ‘this is bracket content’</code>. </p>\n<p>In order to return message ID, append <code>returnId=true</code> parameter to the URL address. Examples:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true</a></li>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true</a></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","2","campaign","ID","send"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"a6fada40-364a-4e48-a270-911eef2d369b","name":"Success-By Key","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[]","value":"306157","type":"text","disabled":true},{"key":"hash[]","value":"c64vjdvntpAhkYAHoWVCUNNDJtHoB80nxoEhTmr7t0M.","type":"text","disabled":true},{"key":"token[]","value":"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R","type":"text"},{"key":"content[naglowek]","value":"Ahoj","type":"text"},{"key":"content[tekst]","value":"Przygodo","type":"text"}]},"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY/send?key=true","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","campaign","KEY","send"],"query":[{"key":"key","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"284","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 13 Oct 2017 08:14:36 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":200,\"data\":{\"token\":{\"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R\":[{\"id_contact\":null,\"id_contact_anonym\":\"zdwtdaedejrz_zpktgdzI4vNerStMXv5vCkM5Nukgj4.\",\"token\":\"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R\",\"code\":202}]}},\"message\":\"OK\"}"},{"id":"b7b221d6-de62-4352-9de9-16813cd8076d","name":"Success-By Id","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[]","value":"306157","type":"text","disabled":true},{"key":"hash[]","value":"c64vjdvntpAhkYAHoWVCUNNDJtHoB80nxoEhTmr7t0M.","type":"text","disabled":true},{"key":"token[]","value":"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R","type":"text"},{"key":"content[naglowek]","value":"Ahoj","type":"text"},{"key":"content[tekst]","value":"Przygodo","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"284","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 13 Oct 2017 08:03:36 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":200,\"data\":{\"token\":{\"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R\":[{\"id_contact\":null,\"id_contact_anonym\":\"zdwtdaedejrz_zpktgdzI4vNerStMXv5vCkM5Nukgj4.\",\"token\":\"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R\",\"code\":202}]}},\"message\":\"OK\"}"},{"id":"325154a1-16ee-4499-b729-213716d5c852","name":"Error","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[]","value":"306157","type":"text","disabled":true},{"key":"hash[]","value":"c64vjdvntpAhkYAHoWVCUNNDJtHoB80nxoEhTmr7t0M.","type":"text"},{"key":"token[]","value":"f-f5HlkgFPo:APA91bGy6U5qLTtmsHXwktjiiDTjBh_yybu5qHA6DDnEpm23UrleWKapYRKOvEAsbzLBZHwPj-KCL5hKNQ9QwxX8DobXKJK5F8AeRvQbnoI77gOR60FkM3fA5g_ufx7ymeXRZX3IAC-R","type":"text","disabled":true},{"key":"content[naglowek]","value":"Ahoj","type":"text"},{"key":"content[tekst]","value":"Przygodo","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"147","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 13 Oct 2017 08:17:32 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":400,\"data\":{\"hash\":{\"c64vjdvntpAhkYAHoWVCUNNDJtHoB80nxoEhTmr7t0M.\":{\"errorCode\":98,\"code\":403}}},\"message\":\"Bad request - See response\"}"}],"_postman_id":"2efeb6fb-7656-4a57-bea7-e1ef533cb986"},{"name":"Sending instant push (web push)","id":"ec6fb5d6-add6-4271-9329-6864e7d5630e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Ipresso-Token","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"template","value":"template_key","description":"<p>Template key</p>\n","type":"text"},{"key":"name","value":"name","description":"<p>Instant push name</p>\n","type":"text"},{"key":"description","value":"description","description":"<p>Instant push description</p>\n","type":"text"},{"key":"type","value":"webPush","description":"<p>Instant push type</p>\n","type":"text"},{"key":"wwwId","value":"1","description":"<p>Monitored site ID: the page on which the message will be sent</p>\n","type":"text"},{"key":"topic","value":"topic_key","description":"<p>Topic key. Topic includes recipients of the message. In order to send a web push to every valid token, send <strong>all</strong> value.</p>\n","type":"text"},{"key":"key","value":"instant_push_key","description":"<p>Instant push key</p>\n","type":"text"},{"key":"expirationDate","value":"YYYY-MM-DD HH:MM:SS","description":"<p>Expiration date after which the message will not be delivered to the recipient who was offline.</p>\n","type":"text"},{"key":"title","value":"title","description":"<p>Instant push title</p>\n","type":"text"},{"key":"content","value":"content","description":"<p>Instant push content</p>\n","type":"text"},{"key":"webPush[link]","value":"web push link","description":"<p>The address to which the user will be redirected after clicking the notification.</p>\n","type":"text"},{"key":"webPush[iconUrl]","value":"icon URL","description":"<p>Icon URL address</p>\n","type":"text"},{"key":"webPush[imageUrl]","value":"image URL","description":"<p>Image URL address</p>\n","type":"text"},{"key":"webPush[buttons][0][label]","value":"button name","description":"<p>Button name</p>\n","type":"text"},{"key":"webPush[buttons][0][link]","value":"button link","description":"<p>The address to which the user will be redirected after clicking the button.</p>\n","type":"text"},{"key":"webPush[buttons][0][iconUrl]","value":"button icon URL","description":"<p>Button icon URL address</p>\n","type":"text"},{"key":"webPush[buttons][0][label]","value":"button name","description":"<p>Button name</p>\n","type":"text"},{"key":"webPush[buttons][0][link]","value":"button link","description":"<p>The address to which the user will be redirected after clicking the button.</p>\n","type":"text"},{"key":"webPush[buttons][0][iconUrl]","value":"button icon URL","description":"<p>Button icon URL address</p>\n","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/instantpush","description":"<p>In order to send instant push (type: web push) via iPresso API, POST request should be sent to the URL:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/instantpush\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/instantpush</a></li>\n</ul>\n<p><code>CLIENT_PANEL_ADDRESS</code> parameter should be replaced with the iPresso URL address.</p>\n<p>If template is not used (template parameter is not sent), required parameters are: <strong>name</strong>, <strong>type</strong>, <strong>wwwId</strong>, <strong>topic</strong>, <strong>title</strong> and <strong>content</strong>.</p>\n<p>Templates can be used by sending <strong>template</strong> parameter. Filling out additional fields in the body will overwrite template fields.</p>\n<p>If button name is added, button link is required. Users will be redirected to this link after clicking the button.</p>\n<p>If all required parameters won’t be sent in the request, code 400 will be returned with a proper message indicating what is missing.</p>\n<p>The time type parameter <code>expirationDate[type]</code>, during which the message will be delivered to the recipient who is offline, can take 2 values:</p>\n<p><strong>date</strong> - specifies the expiry date of the message</p>\n<p><strong>periodTime</strong> - specifies the period of validity of the message</p>\n<p>When selecting the periodTime time interval, you should additionally pass the <strong>unit</strong> parameter specifying the hours / days units and <strong>amount</strong> with number of hours / days.</p>\n<p>Be sure to select only one of the options.</p>\n","urlObject":{"protocol":"https","path":["api","2","campaign","instantpush"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"69f5591e-e895-4f91-bbe6-a68c51252d74","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Ipresso-Token","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"template","value":"template_key","description":"Template key","type":"text"},{"key":"name","value":"name","description":"Instant push name","type":"text"},{"key":"description","value":"description","description":"Instant push description","type":"text"},{"key":"type","value":"webPush","description":"Instant push type","type":"text"},{"key":"wwwId","value":"1","description":"Monitored site ID: the page on which the message will be sent","type":"text"},{"key":"topic","value":"topic_key","description":"Topic key. Topic includes recipients of the message. In order to send a web push to every valid token, send **all** value.","type":"text"},{"key":"key","value":"instant_push_key","description":"Instant push key","type":"text"},{"key":"expirationDate[type]","value":"date","description":"Message validity type","type":"text"},{"key":"expirationDate[date]","value":"2021-11-11 00:00:00","description":"Expiration date after which the message will not be delivered to the recipient who was offline.","type":"text"},{"key":"title","value":"title","description":"Instant push title","type":"text"},{"key":"content","value":"content","description":"Instant push content","type":"text"},{"key":"webPush[link]","value":"https://www.ipresso.pl","description":"The address to which the user will be redirected after clicking the notification.","type":"text"},{"key":"webPush[iconUrl]","value":"https://global-uploads.webflow.com/5fb3a8f3ab924c7fbd6705da/5ffb553235288085e0bc9d8d_iPresso-BrandHero.png","description":"Icon URL address","type":"text"},{"key":"webPush[imageUrl]","value":"https://global-uploads.webflow.com/5fb3a8f3ab924c7fbd6705da/5ffb553235288085e0bc9d8d_iPresso-BrandHero.png","description":"Image URL address","type":"text"},{"key":"webPush[buttons][0][label]","value":"Button 1","description":"Button name","type":"text"},{"key":"webPush[buttons][0][link]","value":"https://www.ipresso.pl","description":"The address to which the user will be redirected after clicking the button.","type":"text"},{"key":"webPush[buttons][0][iconUrl]","value":"https://global-uploads.webflow.com/5fb3a8f3ab924c7fbd6705da/5ffb553235288085e0bc9d8d_iPresso-BrandHero.png","description":"Button icon URL address","type":"text"},{"key":"webPush[buttons][0][label]","value":"Button 2","description":"Button name","type":"text"},{"key":"webPush[buttons][0][link]","value":"https://www.ipresso.pl","description":"The address to which the user will be redirected after clicking the button.","type":"text"},{"key":"webPush[buttons][0][iconUrl]","value":"https://global-uploads.webflow.com/5fb3a8f3ab924c7fbd6705da/5ffb553235288085e0bc9d8d_iPresso-BrandHero.png","description":"Button icon URL address","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/instantpush"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"OK\"\n}"},{"id":"1cae1e5c-85bd-4904-b504-965aac6766d5","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Ipresso-Token","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"template","value":"template_key","description":"Template key","type":"text","disabled":true},{"key":"name","value":"name","description":"Instant push name","type":"text"},{"key":"description","value":"description","description":"Instant push description","type":"text"},{"key":"type","value":"webPush","description":"Instant push type","type":"text"},{"key":"wwwId","value":"1","description":"Monitored site ID: the page on which the message will be sent","type":"text"},{"key":"topic","value":"topic_key","description":"Topic key. Topic includes recipients of the message. In order to send a web push to every valid token, send **all** value.","type":"text"},{"key":"key","value":"instant_push_key","description":"Instant push key","type":"text"},{"key":"expirationDate[type]","value":"date","description":"Message validity type","type":"text"},{"key":"expirationDate[date]","value":"2021-11-11 00:00:00","description":"Expiration date after which the message will not be delivered to the recipient who was offline.","type":"text"},{"key":"title","value":"title","description":"Instant push title","type":"text","disabled":true},{"key":"content","value":"content","description":"Instant push content","type":"text"},{"key":"webPush[link]","value":"https://www.ipresso.pl","description":"The address to which the user will be redirected after clicking the notification.","type":"text"},{"key":"webPush[iconUrl]","value":"https://global-uploads.webflow.com/5fb3a8f3ab924c7fbd6705da/5ffb553235288085e0bc9d8d_iPresso-BrandHero.png","description":"Icon URL address","type":"text"},{"key":"webPush[imageUrl]","value":"https://global-uploads.webflow.com/5fb3a8f3ab924c7fbd6705da/5ffb553235288085e0bc9d8d_iPresso-BrandHero.png","description":"Image URL address","type":"text"},{"key":"webPush[buttons][0][label]","value":"button name","description":"Button name","type":"text","disabled":true},{"key":"webPush[buttons][0][link]","value":"button link","description":"The address to which the user will be redirected after clicking the button.","type":"text","disabled":true},{"key":"webPush[buttons][0][iconUrl]","value":"button icon URL","description":"Button icon URL address","type":"text","disabled":true},{"key":"webPush[buttons][0][label]","value":"button name","description":"Button name","type":"text","disabled":true},{"key":"webPush[buttons][0][link]","value":"button link","description":"The address to which the user will be redirected after clicking the button.","type":"text","disabled":true},{"key":"webPush[buttons][0][iconUrl]","value":"button icon URL","description":"Button icon URL address","type":"text","disabled":true}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/instantpush"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"message\": \"Bad request - Missing title\"\n}"}],"_postman_id":"ec6fb5d6-add6-4271-9329-6864e7d5630e"},{"name":"Sending instant push (mobile push)","id":"ff7e8f70-5a62-4abc-b572-b94b54d5668a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Ipresso-Token","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"template","value":"template_key","description":"<p>Template key</p>\n","type":"text"},{"key":"name","value":"name","description":"<p>Instant push name</p>\n","type":"text"},{"key":"description","value":"description","description":"<p>Instant push description</p>\n","type":"text"},{"key":"type","value":"mobilePush","description":"<p>Instant push type</p>\n","type":"text"},{"key":"appId","value":"application hash","description":"<p>Hash of the application on which the message will be sent</p>\n","type":"text"},{"key":"topic","value":"topic_key","description":"<p>Topic key. Topic includes recipients of the message. In order to send a mobile push to every valid token, send <strong>all</strong> value.</p>\n","type":"text"},{"key":"key","value":"instant_push_key","description":"<p>Instant push key</p>\n","type":"text"},{"key":"expirationDate","value":"YYYY-MM-DD HH:MM:SS","description":"<p>Expiration date after which the message will not be delivered to the recipient that was offline.</p>\n","type":"text"},{"key":"title","value":"title","description":"<p>Instant push title</p>\n","type":"text"},{"key":"content","value":"content","description":"<p>Instant push content</p>\n","type":"text"},{"key":"mobilePush[applicationActivity]","value":"application activity","description":"<p>Application activity. Required only when applicationActivity value is sent in clickAction parameter.</p>\n","type":"text"},{"key":"mobilePush[clickAction]","value":"openApplication","description":"<p>Click action. Allows you to choose one of two options: 1) <strong>openApplication</strong>, 2) <strong>applicationActivity</strong></p>\n","type":"text"},{"key":"mobilePush[additionalData]","value":"{“key”:”value”}","description":"<p>Additional data in JSON format</p>\n","type":"text"},{"key":"mobilePush[apns]","value":"{“key”:”value”}","description":"<p>Additional data in JSON format for iOS devices</p>\n","type":"text"},{"key":"expirationDate[type]","value":"date","description":"<p>Message validity type</p>\n","type":"text"},{"key":"expirationDate[date]","value":"YYYY-MM-DD HH:MM:SS","description":"<p>Expiration date after which the message will not be delivered to the recipient that was offline.</p>\n","type":"text"},{"key":"expirationDate[type]","value":"periodTime","description":"<p>Message validity interval</p>\n","type":"text"},{"key":"expirationDate[periodTime][unit]","value":"hours","description":"<p>Time unit</p>\n","type":"text"},{"key":"expirationDate[periodTime][amount]","value":"24","description":"<p>Amount of hours or days</p>\n","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/instantpush","description":"<p>In order to send instant push (type: mobile push) via iPresso API, POST request should be sent to the URL:</p>\n<ul>\n<li><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/instantpush\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/instantpush</a></li>\n</ul>\n<p><code>CLIENT_PANEL_ADDRESS</code> parameter should be replaced with the iPresso URL address.</p>\n<p>If template is not used (template parameter is not sent), required parameters are: <strong>name</strong>, <strong>type</strong>, <strong>appId</strong>, <strong>topic</strong>, <strong>title</strong> and <strong>content</strong>.</p>\n<p>Templates can be used by sending <strong>template</strong> parameter. Filling out additional fields in the body will overwrite template fields.</p>\n<p>If all required parameters won’t be sent in the request, code 400 will be returned with a proper message indicating what is missing.</p>\n<p>The time type parameter <strong>expirationDate [type]</strong>, during which the message will be delivered to the recipient who is offline, can take 2 values:</p>\n<p><strong>date</strong> - specifies the expiry date of the message</p>\n<p><strong>periodTime</strong> - specifies the period of validity of the message</p>\n<p>When selecting the periodTime time interval, you should additionally pass the <strong>unit</strong> parameter specifying the hours / days units and <strong>amount</strong> with number of hours / days.</p>\n<p>Be sure to select only one of the options.</p>\n","urlObject":{"protocol":"https","path":["api","2","campaign","instantpush"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"d8e3ec0b-b62f-4d35-9e44-c45af4c205c5","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Ipresso-Token","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"template","value":"template_key","description":"Template key","type":"text","disabled":true},{"key":"name","value":"name","description":"Instant push name","type":"text"},{"key":"description","value":"description","description":"Instant push description","type":"text"},{"key":"type","value":"mobilePush","description":"Instant push type","type":"text"},{"key":"appId","value":"application hash","description":"Hash of the application on which the message will be sent","type":"text"},{"key":"topic","value":"topic_key","description":"Topic key. Topic includes recipients of the message. In order to send a mobile push to every valid token, send **all** value.","type":"text"},{"key":"key","value":"instant_push_key","description":"Instant push key","type":"text"},{"key":"expirationDate[type]","value":"date","description":"Message validity type","type":"text"},{"key":"expirationDate[date]","value":"2021-11-11 00:00:00","description":"Expiration date after which the message will not be delivered to the recipient that was offline.","type":"text"},{"key":"title","value":"title","description":"Instant push title","type":"text"},{"key":"content","value":"content","description":"Instant push content","type":"text"},{"key":"mobilePush[applicationActivity]","value":"application activity","description":"Application activity. Required only when applicationActivity value is sent in clickAction parameter.","type":"text"},{"key":"mobilePush[clickAction]","value":"applicationActivity","description":"Click action. Allows you to choose one of two options: 1) openApplication, 2) applicationActivity","type":"text"},{"key":"mobilePush[additionalData]","value":"{“key”:”value”}","description":"Additional data in JSON format","type":"text"},{"key":"mobilePush[apns]","value":"{“key”:”value”}","description":"Additional data in JSON format for iOS devices","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/instantpush"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"OK\"\n}"},{"id":"b0d629b1-3e33-44fe-99ca-47754b738394","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Ipresso-Token","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"template","value":"template_key","description":"Template key","type":"text","disabled":true},{"key":"name","value":"name","description":"Instant push name","type":"text"},{"key":"description","value":"description","description":"Instant push description","type":"text"},{"key":"type","value":"mobilePush","description":"Instant push type","type":"text"},{"key":"appId","value":"application hash","description":"Hash of the application on which the message will be sent","type":"text"},{"key":"topic","value":"topic_key","description":"Topic key. Topic includes recipients of the message. In order to send a mobile push to every valid token, send **all** value.","type":"text"},{"key":"key","value":"instant_push_key","description":"Instant push key","type":"text"},{"key":"expirationDate[type]","value":"date","description":"Message validity type","type":"text"},{"key":"expirationDate[date]","value":"2021-11-11 00:00:00","description":"Expiration date after which the message will not be delivered to the recipient that was offline.","type":"text"},{"key":"title","value":"title","description":"Instant push title","type":"text","disabled":true},{"key":"content","value":"content","description":"Instant push content","type":"text"},{"key":"mobilePush[applicationActivity]","value":"application activity","description":"Application activity. Required only when applicationActivity value is sent in clickAction parameter.","type":"text"},{"key":"mobilePush[clickAction]","value":"applicationActivity","description":"Click action. Allows you to choose one of two options: 1) openApplication, 2) applicationActivity","type":"text"},{"key":"mobilePush[additionalData]","value":"{“key”:”value”}","description":"Additional data in JSON format","type":"text"},{"key":"mobilePush[apns]","value":"{“key”:”value”}","description":"Additional data in JSON format for iOS devices","type":"text"},{"key":"expirationDate[type]","value":"periodTime","description":"Message validity interval","type":"text","disabled":true},{"key":"expirationDate[periodTime][unit]","value":"hours","description":"Time unit","type":"text","disabled":true},{"key":"expirationDate[periodTime][amount]","value":"24","description":"Amount of hours or days","type":"text","disabled":true}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/instantpush"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"message\": \"Bad request - Missing title\"\n}"}],"_postman_id":"ff7e8f70-5a62-4abc-b572-b94b54d5668a"},{"name":"Sending WhatsApp campaign","id":"b5ad4c47-9b03-4abd-80e9-35fed1377768","request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"campaignKey","value":"API_KEY","type":"text","description":"<p>Campaign API key</p>\n"},{"key":"content[ext]","value":"DATA","type":"text","description":"<p>Variable content</p>\n"},{"key":"contactId[0]","value":"ID_CONTACT","type":"text","description":"<p>Contact ID</p>\n"},{"key":"contactId[1]","value":"ID_CONTACT","type":"text","description":"<p>ID kontaktu</p>\n","disabled":true}]},"url":"https://CLIENT_PANEL_ADRESS/api/2/campaign/whatsapp?returnId=1 ","description":"<p>In order to send Whatsapp campaign via iPresso API, POST request should be sent to the URL:</p>\n<ul>\n<li><a href=\"https://encja-uptest.ipresso.pl/api/2/campaign/whatsapp?returnId=1\">https://CLIENT_PANEL_ADRESS/api/2/campaign/whatsapp?returnId=1</a></li>\n</ul>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the iPresso URL address.</p>\n</blockquote>\n<blockquote>\n<p>The <code>returnId</code> parameter can accept the values ​​0 or 1, depending on whether we want to receive the idMessage parameter with the ID of the sent message in response or not. This value increases with each unique contact to whom the campaign was sent.</p>\n</blockquote>\n<p>The campaign can be sent to contacts based on their ipresso ID.</p>\n<p>The content can be modified using defined variables when creating a campaign. In the example, for the defined variable <code>{_ext_}</code> used in the campaign creator, the <code>DATA</code> value was passed.</p>\n","urlObject":{"protocol":"https","path":["api","2","campaign","whatsapp"],"host":["CLIENT_PANEL_ADRESS"],"query":[{"key":"returnId","value":"1 "}],"variable":[]}},"response":[{"id":"97044307-3431-4d71-806a-1bdcd22364c4","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[]","value":"306157","type":"text","disabled":true},{"key":"hash[]","value":"c64vjdvntpAhkYAHoWVCUNNDJtHoB80nxoEhTmr7t0M.","type":"text","disabled":true},{"key":"campaignKey","value":"API_KEY","type":"text"},{"key":"content[ext]","value":"DATA","type":"text"},{"key":"contactId[0]","value":"12345","type":"text"},{"key":"contactId[1]","value":"67890","type":"text"}]},"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/whatsapp?returnId=1","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","campaign","whatsapp"],"query":[{"key":"returnId","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"284","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 13 Oct 2017 08:03:36 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"234","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"contactId\": {\n            \"12345\": {\n                \"code\": 202,\n                \"idMessage\": 1\n            },\n            \"67890\": {\n                \"code\": 202,\n                \"idMessage\": 2\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"fd4dd624-4b7c-49e0-88e8-2d58d720f10f","name":"Success reuturnOd=1","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[]","value":"306157","type":"text","disabled":true},{"key":"hash[]","value":"c64vjdvntpAhkYAHoWVCUNNDJtHoB80nxoEhTmr7t0M.","type":"text","disabled":true},{"key":"campaignKey","value":"API_KEY","type":"text"},{"key":"content[ext]","value":"DATA","type":"text"},{"key":"contactId[0]","value":"12345","type":"text"},{"key":"contactId[1]","value":"67890","type":"text"}]},"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/whatsapp?returnId=0","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","campaign","whatsapp"],"query":[{"key":"returnId","value":"0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"284","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 13 Oct 2017 08:03:36 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"234","body":"{\n    \"code\": 200,\n    \"data\": {\n        \"contactId\": {\n            \"12345\": {\n                \"code\": 202\n            },\n            \"67890\": {\n                \"code\": 202\n            }\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"4dae7732-a9c1-4292-a6db-04349f2800a1","name":"Error","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId[]","value":"306157","type":"text","disabled":true},{"key":"hash[]","value":"c64vjdvntpAhkYAHoWVCUNNDJtHoB80nxoEhTmr7t0M.","type":"text","disabled":true},{"key":"campaignKey","value":"WRONG_API_KEY","type":"text"},{"key":"content[ext]","value":"DATA","type":"text"},{"key":"contactId[0]","value":"12345","type":"text"},{"key":"contactId[1]","value":"67890","type":"text"}]},"url":{"raw":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/whatsapp?returnId=1","protocol":"https","host":["CLIENT_PANEL_ADDRESS"],"path":["api","2","campaign","whatsapp"],"query":[{"key":"returnId","value":"1"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip","description":""},{"key":"Content-Length","value":"284","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 13 Oct 2017 08:03:36 GMT","description":""},{"key":"Vary","value":"Accept-Encoding","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"l00ihorbl4lbstskjv8tk92og4","key":"PHPSESSID"}],"responseTime":"234","body":"{\n    \"code\": 400,\n    \"message\": \"Invalid campaign key\"\n}"}],"_postman_id":"b5ad4c47-9b03-4abd-80e9-35fed1377768"},{"name":"Sending e-mail with attachment","id":"3c9732cb-9b08-4320-9775-754c2c069dd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso","type":"text"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9","type":"text"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email[0]","value":"EMAIL","description":"<p>E-mail address</p>\n","type":"text"},{"key":"contactId[0]","value":"ID_CONTACT","description":"<p>Contact ID number</p>\n","type":"text"},{"key":"content[HEAD]","value":"HEAD_CONTENT","description":"<p>Header content</p>\n","type":"text"},{"key":"content[TEXT]","value":"TEXT_CONTENT","description":"<p>Message content</p>\n","type":"text"},{"key":"files[0][url]","value":"https://example.com/attachment.pdf","description":"<p>Attachment URL Link</p>\n","type":"text"},{"key":"files[0][name]","value":"attachment.pdf","description":"<p>Attachment name</p>\n","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send","description":"<p>In order to send message via iPresso API, <code>POST</code> request should be sent to the URL:</p>\n<ul>\n<li><p><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send</a> using campaign ID</p>\n</li>\n<li><p><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/API_KEY/send?key=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/API_KEY/send?key=true</a> using campaign API key</p>\n</li>\n</ul>\n<p>Important : sending a campain with attachment requires prior contact to arrange shipments for attachments</p>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the URL address of one’s iPresso. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>ID</code> should be replaced with the campaign ID. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>API_KEY</code> should be replaced with the campaign API key. </p>\n</blockquote>\n<p>You can send messages only to existing iPresso contacts, using the contact’s email <code>email</code> and contact’s ID <code>contactId</code>. Only one field is required; it is not necessary to fill in both.</p>\n<p>You can use brackets in campaign content. For example, to replace brackets <code>{_bracket1_}</code> and <code>{_bracket2_}</code>, you need to use <code>[‘content’][‘bracket1’] = ‘Hi’</code> and <code>[‘content’][‘bracket2’] = ‘this is bracket content’</code>.</p>\n<p>In order to return message ID, append <code>returnId=true</code> parameter to the URL address. Examples:</p>\n<ul>\n<li><p><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?returnId=true</a></p>\n</li>\n<li><p><a href=\"https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/KEY_NAME/send?key=true&amp;returnId=true</a></p>\n</li>\n</ul>\n<p>To check the validation of external attachments, you need to add one of the two GET parameters to the URL:</p>\n<ul>\n<li><p><code>?validate_attachments=true</code></p>\n</li>\n<li><p><code>?validate_attachments=1</code></p>\n</li>\n</ul>\n<p>Examples:</p>\n<ul>\n<li><p><a href=\"https://client_panel_address/api/2/campaign/ID/send?validate_attachments=1\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?validate_attachments=1</a></p>\n</li>\n<li><p><a href=\"https://client_panel_address/api/2/campaign/ID/send?validate_attachments=1\">https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send?validate_attachments=true</a></p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","2","campaign","ID","send"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"138fe024-d93e-4c95-b3d8-d4777123f509","name":"Success","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso","type":"text"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9","type":"text"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email[0]","value":"EMAIL","description":"E-mail address","type":"text"},{"key":"contactId[0]","value":"ID_CONTACT","description":"Contact ID number","type":"text"},{"key":"content[HEAD]","value":"HEAD_CONTENT","description":"Header content","type":"text"},{"key":"content[TEXT]","value":"TEXT_CONTENT","description":"Message content","type":"text"},{"key":"files[0][url]","value":"https://example.com/attachment.pdf","description":"Attachment URL Link","type":"text"},{"key":"files[0][name]","value":"attachment.pdf","description":"Attachment name","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"code\": 200,\n  \"data\": {\n    \"email\": {\n      \"CONTACT_EMAIL\": {\n        \"code\": 202\n      }\n    }\n  },\n  \"message\": \"OK\"\n}"},{"id":"b426a71a-794d-4b6a-b78c-3078294480a8","name":"Error – Invalid attachment URL","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso","type":"text"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9","type":"text"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email[0]","value":"EMAIL","description":"E-mail address","type":"text"},{"key":"contactId[0]","value":"ID_CONTACT","description":"Contact ID number","type":"text"},{"key":"content[HEAD]","value":"HEAD_CONTENT","description":"Header content","type":"text"},{"key":"content[TEXT]","value":"TEXT_CONTENT","description":"Message content","type":"text"},{"key":"files[0][url]","value":"https://example.com/attachment.pdf","description":"Attachment URL Link","type":"text"},{"key":"files[0][name]","value":"attachment.pdf","description":"Attachment name","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"code\": 400,\n  \"data\": {\n    \"URL_ADDRESS_ATTACHMENT\": \"Unsupported scheme\"\n  },\n  \"message\": \"Bad Request\",\n  \"errorCode\": 110\n}"},{"id":"33660f1e-69e6-482c-ac0a-bdabfe4ce756","name":"Error – The sender does not support attachments","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso","type":"text"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9","type":"text"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email[0]","value":"EMAIL","description":"E-mail address","type":"text"},{"key":"contactId[0]","value":"ID_CONTACT","description":"Contact ID number","type":"text"},{"key":"content[HEAD]","value":"HEAD_CONTENT","description":"Header content","type":"text"},{"key":"content[TEXT]","value":"TEXT_CONTENT","description":"Message content","type":"text"},{"key":"files[0][url]","value":"https://example.com/attachment.pdf","description":"Attachment URL Link","type":"text"},{"key":"files[0][name]","value":"attachment.pdf","description":"Attachment name","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/ID/send"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"code\": 403,\n  \"message\": \"Forbidden\",\n  \"errorCode\": 111\n}"}],"_postman_id":"3c9732cb-9b08-4320-9775-754c2c069dd4"},{"name":"Check message status","id":"6bca4fbb-5ae5-44cc-8123-705b94c1ae34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso","type":"text"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9","type":"text"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"messageIds[0]","value":"idMessage","description":"<p>The ID of the message to check. eg. 539034</p>\n","type":"text","uuid":"acca8aa7-1a8c-46ae-834e-d86d07c13637"},{"key":"messageIds[1]","value":"idMessage","description":"<p>The ID of the message to check.</p>\n","type":"text","uuid":"b3ec2aa5-cca4-4917-84db-a9a6a90f06d6"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/TYPE/message/status","description":"<p>The <strong>CLIENT_PANEL_ADDRESS</strong> parameter should be replaced with the iPresso URL.<br />The <strong>TYPE</strong> parameter should be replaced with one of the following sending types:</p>\n<ul>\n<li><p><strong>email</strong></p>\n</li>\n<li><p><strong>sms</strong></p>\n</li>\n<li><p><strong>voice</strong></p>\n</li>\n</ul>\n<p>In the body, the <strong>idMessage</strong> parameter should be replaced with the message ID, which will be returned after executing a request to the message sending resources using the parameter <strong>returnId=true</strong>. For example:</p>\n<p><code>https://CLIENT_PANEL_ADDRESS/api/2/campaign/[Campaign_ID]/send?returnId=true</code></p>\n<p>After executing the request to check the message status, two status responses are possible:</p>\n<ul>\n<li><p><strong>delivered</strong> - confirmed delivery</p>\n</li>\n<li><p><strong>no_delivery_confirmation</strong> - no confirmed delivery (applies to all cases other than confirmed delivery, including, for example, cancellation)</p>\n</li>\n</ul>\n<p>The maximum number of messageIds in a single request is 100.</p>\n","urlObject":{"protocol":"https","path":["api","2","campaign","TYPE","message","status"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"04ada8eb-7a52-475e-b870-c037cf66259c","name":"Success Delivered","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso","type":"text"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9","type":"text"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"messageIds[0]","value":"idMessage","description":"The ID of the message to check.","type":"text","uuid":"50f22b9f-4363-47cb-ac23-8171a17eed7d"},{"key":"messageIds[1]","value":"idMessage","description":"The ID of the message to check.","type":"text","uuid":"4688001f-5ac7-461d-847e-8624d8219897"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/TYPE/message/status"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": [\n        {\n            \"messageId\": 538978,\n            \"status\": \"no_delivery_confirmation\",\n            \"campaignId\": 13005\n        },\n        {\n            \"messageId\": 539031,\n            \"status\": \"delivered\",\n            \"campaignId\": 13024\n        }\n    ],\n    \"message\": \"OK\"\n}"},{"id":"c4ab72dc-137f-4d77-8d49-22ca5652260a","name":"Error","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"iPresso","type":"text"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9","type":"text"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"messageIds[0]","value":"idMessage","description":"The ID of the message to check.","type":"text","uuid":"cae8b49c-68b4-44f6-a5a5-407a21a61920"},{"key":"messageIds[1]","value":"idMessage","description":"The ID of the message to check.","type":"text","uuid":"5b2fb697-aece-4983-943a-6cdd08314adf"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/campaign/TYPE/message/status"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": [],\n    \"message\": \"OK\"\n}"}],"_postman_id":"6bca4fbb-5ae5-44cc-8123-705b94c1ae34"}],"id":"93e3d443-fccc-8a61-495a-e5182f3a59e9","_postman_id":"93e3d443-fccc-8a61-495a-e5182f3a59e9","description":""},{"name":"Scenarios","item":[{"name":"Scenario launch","id":"7f2fd3d6-9a2c-4b29-a677-b18aeca9f391","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"data[HEAD]","value":"HEAD_CONTENT"},{"key":"data[TEXT]","type":"text","value":"TEXT_CONTENT"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/start","description":"<p>In order to launch scenario via iPresso API, <code>POST</code> request should be sent to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/start</code></p>\n<p>Launching is only possible for scenarios that allow such an action in their configuration. Before the first launch, the scenario must be activated by the client panel. After each hold of receiving contacts, the scenario can be relaunch.</p>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the URL address of one's iPresso.</p>\n<p>Parameter <code>KEY</code> should be replaced with the scenario's API key.</p>\n<p>You can use brackets in scenario campaign content. For example, to replace brackets <code>{_bracket1_}</code> and <code>{_bracket2_}</code>, you need to use <code>data[HEAD] = ‘Hi’</code>, <code>data[TEXT] = ‘this is bracket content’</code></p>\n","urlObject":{"protocol":"https","path":["api","2","scenario","KEY","start"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"cf4a7cf5-948e-40f9-8f2d-da484e5176cf","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"data[field_1]","value":"value 1","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/start"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"55","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:33:21 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\"\n}"},{"id":"02cf2eb0-01d1-45ea-9898-0793b70692d0","name":"Bad Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"data","value":"bad data"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/start"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"51","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:21:48 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":400,\"message\":\"Bad Request\",\"errorCode\":13}"},{"id":"fd8bf42b-b7b4-47bb-ae79-c918a12507c4","name":"Not Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/start"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:23:37 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":99}"}],"_postman_id":"7f2fd3d6-9a2c-4b29-a677-b18aeca9f391"},{"name":"Scenario hold","id":"adb65a2a-e248-419c-93f0-610cad9b3596","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/hold","description":"<p>In order to hold scenario via iPresso API, <code>POST</code> request should be sent to the URL: <code>https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/hold</code></p>\n<p>Action is only possible for scenarios that allow it in their configuration. After each hold of receiving contacts, the scenario can be relaunch.</p>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the URL address of one's iPresso.</p>\n<p>Parameter <code>KEY</code> should be replaced with the scenario's API key.</p>\n","urlObject":{"protocol":"https","path":["api","2","scenario","KEY","hold"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"7146ec36-6b10-4d41-b2c8-eea4788cd498","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"data[field_1]","value":"value 1","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/hold"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"55","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:33:21 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\"\n}"},{"id":"68dd5b8b-8c4e-43ff-a945-6f90e1127627","name":"Not Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/hold"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:23:37 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":99}"},{"id":"9eb1e61b-0a90-436a-8a31-09deacc4b8b4","name":"Bad Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"data","value":"bad data"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/hold"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"51","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:21:48 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":400,\"message\":\"Bad Request\",\"errorCode\":13}"}],"_postman_id":"adb65a2a-e248-419c-93f0-610cad9b3596"},{"name":"Add contacts to a scenario","id":"0c8a5b2b-ab7b-45ae-86f0-d07ba550ca5d","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT"},{"key":"contactData[ID_CONTACT][HEAD]","type":"text","value":"HEAD_CONTENT"},{"key":"contactData[ID_CONTACT][TEXT]","type":"text","value":"TEXT_CONTENT"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/contact","description":"<p>In order to add contacts to scenario via iPresso API, <code>POST</code> request should be sent to the url: <code>https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/contact</code></p>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the campaign ID.</p>\n<p>Parameter <code>KEY</code> should be replaced with scenario's API key.</p>\n<p>In the <code>contact</code> array you can provide IDs of those contacts that you want to add to the scenario.</p>\n<p>In the <code>contactData</code> array you can provide contact IDs along with additional data that will be available in the scenario.</p>\n<p>The method returns an array of contact id numbers that have been added to the scenario. It is possible that a contact will not be added due to the limit being exceeded and because it was in the scenario (one-time) or is currently in it (recurring). In this case, the returned array will be reduced by those contacts that have not been added to the algorithm again.</p>\n","urlObject":{"protocol":"https","path":["api","2","scenario","KEY","contact"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"26ece808-568c-4e2a-b7ff-5868e6eca250","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[1]","value":"ID_CONTACT","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"55","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:33:21 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": {\n        \"contact\": [\n            \"ID_CONTACT\"\n        ]\n    },\n    \"message\": \"OK\"\n}"},{"id":"c7c374f1-8d96-4831-a198-8e8dcc45476f","name":"Not Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT"},{"key":"contact[1]","value":"ID_CONTACT","type":"text"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/contact"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:23:37 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":404,\"message\":\"Not Found\",\"errorCode\":99}"},{"id":"ef756ae0-408e-42fd-aa8b-1e60aab21054","name":"Bad Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"User-Agent","value":"iPresso"},{"key":"Ipresso-Token","value":"72d5b935a85b6e7366ddd0d3b6db14c9"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contact[0]","value":"ID_CONTACT"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/scenario/KEY/contact"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"51","description":""},{"key":"Content-Type","value":"text/json;charset=UTF-8","description":""},{"key":"Date","value":"Fri, 06 Oct 2017 10:21:48 GMT","description":""},{"key":"X-Content-Type-Options","value":"nosniff","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"encja-uptest.ipresso.pl","path":"/","secure":false,"value":"5ru4jlnfi6pmao3os1q84vnc45","key":"PHPSESSID"}],"responseTime":null,"body":"{\"code\":400,\"message\":\"Bad Request\",\"errorCode\":13}"}],"_postman_id":"0c8a5b2b-ab7b-45ae-86f0-d07ba550ca5d"}],"id":"31bfbf08-d971-4e08-8d8d-b988e13ca1bf","_postman_id":"31bfbf08-d971-4e08-8d8d-b988e13ca1bf","description":""},{"name":"NPS","item":[{"name":"Save Answer","id":"cf56a8be-f413-4e35-b192-e6a56a79eea0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Ipresso-Token","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"formdata","formdata":[{"description":"<p>score</p>\n","key":"score","type":"text","value":"10"},{"description":"<p>answer content</p>\n","key":"answer","type":"text","value":"answer"},{"description":"<p>contact ID</p>\n","key":"id_contact","type":"text","value":"1"},{"description":"<p>anonymous contact ID</p>\n","key":"id_contact_anonymous","type":"text","value":"2"}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/nps/KEY/answer","description":"<p>In order to save answers in NPS survey, <code>POST</code> request should be sent to the URL:<br /><code>https://CLIENT_PANEL_ADDRESS/api/2/nps/KEY/answer</code></p>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the iPresso URL address. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>KEY</code> should be replaced with the NPS survey API key. </p>\n</blockquote>\n<p>We use the call only for one type of contact.</p>\n","urlObject":{"protocol":"https","path":["api","2","nps","KEY","answer"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"1ffc7e31-107a-4246-a65f-c931fb197799","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Ipresso-Token","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"score","value":"10","description":"Wynik","type":"text"},{"key":"answer","value":"answer","description":"Treść odpowiedzi","type":"text"},{"key":"id_contact","value":"1","description":"ID kontaktu","type":"text"},{"key":"id_contact_anonymous","value":"2","description":"ID kontaktu anonimowego","type":"text","disabled":true}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/nps/KEY/answer"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\"\n}"},{"id":"f9d0766a-c33e-4ac6-adca-ae3a541baaa0","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Ipresso-Token","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"score","value":"-1","description":"Wynik","type":"text"},{"key":"answer","value":"answer","description":"Treść odpowiedzi","type":"text"},{"key":"id_contact","value":"1","description":"ID kontaktu","type":"text"},{"key":"id_contact_anonymous","value":"2","description":"ID kontaktu anonimowego","type":"text","disabled":true}]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/nps/KEY/answer"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"message\": \"invalid nps score\"\n}"}],"_postman_id":"cf56a8be-f413-4e35-b192-e6a56a79eea0"},{"name":"Get NPS data","id":"ddd2e3d6-fdac-4a78-a451-46c47fd5831e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","description":"<p>In order to get data from NPS survey using API, <code>GET</code> request should be sent to the URL:\n<code>https://CLIENT_PANEL_ADDRESS/api/2/nps/KEY</code></p>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the iPresso URL address.</p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>KEY</code> should be replaced with the NPS survey API key.</p>\n</blockquote>\n<p>Please note that only the active survey data can be downloaded.</p>\n","urlObject":{"query":[],"variable":[]}},"response":[{"id":"f43061c9-857f-49f9-bf53-74142f5bc37c","name":"Success","originalRequest":{"method":"GET","header":[{"key":"IPRESSO_TOKEN","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"},{"key":"USER_AGENT","value":"iPresso","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/nps/KEY"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": {\n        \"welcomeScreen\": {\n            \"isVisible\": true,\n            \"title\": \"Title\",\n            \"subtitle\": \"Subtitle\",\n            \"buttonLabel\": \"Button label\",\n            \"imageUrl\": \"https://global-uploads.webflow.com/6006a52092ce666865e5bf13/6006a52092ce66f982e5c174_iPresso-BrandHero.png\",\n            \"imageAlt\": \"Alternative text\"\n        },\n        \"survey\": {\n            \"question\": \"Question\",\n            \"questionDescription\": \"Description of the question\",\n            \"scoringScaleDescription\": {\n                \"smallestValue\": \"The smallest value\",\n                \"greatestValue\": \"The greatest value\"\n            },\n            \"buttonLabel\": \"Button label\",\n            \"additionalQuestions\": [\n                {\n                    \"range\": {\n                        \"from\": 0,\n                        \"to\": 6\n                    },\n                    \"question\": \"Question 1\"\n                },\n                {\n                    \"range\": {\n                        \"from\": 7,\n                        \"to\": 8\n                    },\n                    \"question\": \"Question 2\"\n                },\n                {\n                    \"range\": {\n                        \"from\": 9,\n                        \"to\": 10\n                    },\n                    \"question\": \"Question 3\"\n                }\n            ]\n        },\n        \"thankYouScreen\": {\n            \"mainText\": \"Title\",\n            \"additionalText\": \"Subtitle\",\n            \"imageUrl\": \"https://global-uploads.webflow.com/6006a52092ce666865e5bf13/6006a52092ce66f982e5c174_iPresso-BrandHero.png\",\n            \"imageAlt\": \"Alternative text\"\n        },\n        \"appearance\": {\n            \"font\": \"Arial\",\n            \"color\": \"#e53935\",\n            \"customStyles\": \"\\n#welcomeScreenContainer {\\n  /* Welcome Screen Main Container  /\\n}\\n\\n#welcomeScreenImgBox {\\n  / Welcome Screen Image /\\n}\\n\\n#welcomeScreenTitle {\\n  / Welcome Screen Title /\\n}\\n\\n#welcomeScreenSubtitle {\\n  / Welcome Screen Subtitle /\\n}\\n\\n#welcomeScreenButtonBox button {\\n  / Welcome Screen Button /\\n}\\n\\n#surveyContainer {\\n  / Survey Main Container /\\n}\\n\\n#surveyQuestionText {\\n  / Survey Main Question /\\n}\\n\\n#questionDescriptionText {\\n  / Survey Question Description /\\n}\\n\\n#surveyScoreContainer {\\n  / Survey Score Container /\\n}\\n\\n.nps-score.buttons {\\n  / Survey Nps Score Buttons /\\n}\\n\\n#surveyDescriptionScoreBox {\\n  / Survey Scores Description*/\\n}\\n\\n#smallestValue {\\n  /* Survey Left Score Description /\\n}\\n\\n#greatestValue {\\n  / Survey Right Score Description /\\n}\\n\\n#additionalQuestion{\\n  / Survey Additional Question container*/\\n}\\n\\n#surveyAdditionalQuestionText {\\n  /* Survey Additional Question /\\n}\\n\\n#surveyButtonBox #button {\\n  / Survey Button /\\n}\\n\\n#thankYouScreenContainer {\\n  / Thank You Screen Main Container /\\n}\\n\\n#thankYouScreenImgBox {\\n / Thank You Screen Image /\\n}\\n\\n#thankYouScreenTitle {\\n  / Thank You Screen Title /\\n}\\n\\n#thankYouScreenAdditionalText {\\n  / Thank You Screen Subtitle */\\n}\\n\"\n        }\n    },\n    \"message\": \"OK\"\n}"},{"id":"0e9777bb-18dc-4958-b314-8686ae4cacbb","name":"Bad request","originalRequest":{"method":"GET","header":[{"key":"IPRESSO_TOKEN","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"},{"key":"USER_AGENT","value":"iPresso","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://CLIENT_PANEL_ADDRESS/api/2/nps/wrong_api_key"},"status":"Bad request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"message\": \"\"\n}"}],"_postman_id":"ddd2e3d6-fdac-4a78-a451-46c47fd5831e"}],"id":"75e32125-f41f-47a1-a0f5-dbeff345a19b","_postman_id":"75e32125-f41f-47a1-a0f5-dbeff345a19b","description":""},{"name":"Forms","item":[{"name":"Save Form Fill","id":"d82b9adc-70bc-4151-b53d-19282f9bd17d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Ipresso-Token","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"fields\": {\r\n    \"a_email\": \"example@example.com\",\r\n    \"a_fname\": \"Jhon\",\r\n    \"c_agreement\": true,\r\n    \"another_form_field\": \"answear example\"\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://CLIENT_PANEL_ADDRESS/api/2/form/FORM_KEY/fill","description":"<p>In order to save form fill, <code>POST</code> request should be sent to the URL:<br /><code>https://CLIENT_PANEL_ADDRESS/api/2/form/FORM_KEY/fill</code></p>\n<blockquote>\n<p>Parameter <code>CLIENT_PANEL_ADDRESS</code> should be replaced with the iPresso URL address. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>FORM_KEY</code> should be replaced with the form API key. </p>\n</blockquote>\n<p>Accounts with v1 monitoring or \"v1 + v2 transition mode\" Both the <code>pixel</code> and the <code>contactHash</code> are returned.</p>\n<p>Accounts with v2 monitoring only: Only the <code>contactHash</code> is returned.</p>\n<p>In the body of the request, include the data of the completed form:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"fields\": {\n    \"FORM_FIELD_KEY\": FORM_FIELD_FILL_VALUE\n  }\n}\n\n</code></pre>\n<blockquote>\n<p><code>FORM_FIELD_KEY</code>The API key of the form field (preview available in the iPresso panel). </p>\n</blockquote>\n<blockquote>\n<p><code>FORM_FIELD_FILL_VALUE</code> The specific value to be saved in the field. </p>\n</blockquote>\n<h3 id=\"monitoring-a-contact-monitoring-v1\"><strong>Monitoring a Contact (Monitoring v1)</strong></h3>\n<blockquote>\n<p>The ability to track a contact in the browser will only be possible after it has been tracked. </p>\n</blockquote>\n<blockquote>\n<p>To do this, display a tracking pixel to the contact in the browser (in the form of an image in the <code>IMG</code>. The pixel address is returned in the pixel field. </p>\n</blockquote>\n<blockquote>\n<p>All returned contact tracking data is immutable and can be saved to avoid the need to re-download it. Monitoring should occur whenever possible upon each login or return to the website, as the user may change browsers or devices. </p>\n</blockquote>\n<h3 id=\"monitoring-a-contact-monitoring-v1-1\"><strong>Monitoring a Contact (Monitoring v1)</strong></h3>\n<blockquote>\n<p>The ability to track a contact in the browser will only be possible after it has been monitored. </p>\n</blockquote>\n<blockquote>\n<p>To do this, use the setContactId method: <a href=\"https://js-api-doc.ipresso.pl/methods/identification/set-contact-id\">https://js-api-doc.ipresso.pl/methods/identification/set-contact-id</a> </p>\n</blockquote>\n<blockquote>\n<p>Pass the value returned in the <code>contactHash</code> field as a parameter to this method. </p>\n</blockquote>\n<blockquote>\n<p>All returned contact tracking data is immutable and can be saved to avoid the need to re-download it. Monitoring should occur whenever possible upon each login or return to the website, as the user may change browsers or devices. </p>\n</blockquote>\n<h3 id=\"file-uploads-and-identification\">File Uploads and Identification</h3>\n<ul>\n<li><strong>File Handling</strong>: If a form contains a file, the file must be uploaded to an individual resource before this request is called. The upload address is accessible in the iPresso panel under: <code>Content -&gt; Forms -&gt; Active -&gt; API call manual</code>.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","2","form","FORM_KEY","fill"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"c9650a5a-b4f0-4db7-9dc0-5f50179c537e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Ipresso-Token","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"fields\": {\r\n    \"a_email\": \"example@example.com\",\r\n    \"a_fname\": \"Jhon\",\r\n    \"c_agreement\": true,\r\n    \"another_form_field\": \"answear example\"\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://CLIENT_PANEL_ADDRESS/api/2/form/FORM_KEY/fill"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"Response v1\r\n{\r\n    \"code\": 200,\r\n    \"data\": {\r\n        \"pixel\": \"https://encja-uptest-media.ipresso.pl/systemnc/contactcookiepixel/eVZHeThoSEycTw29etkOdluYEC9XS2hG/72a62a2402830bf6885c5ecbb559938f.png\",\r\n        \"contactHash\": \"eVZHeThoSEycTw29etkOdluYEC9XS2hG\",\r\n        \"newContact\": true\r\n    },\r\n    \"message\": \"OK\"\r\n}\r\n\r\nResponse v2\r\n{\r\n    \"code\": 200,\r\n    \"data\": {\r\n        \"contactHash\": \"eVZHeThoSEycTw29etkOdluYEC9XS2hG\",\r\n        \"newContact\": true\r\n    },\r\n    \"message\": \"OK\"\r\n}"},{"id":"6ab328ad-941b-414c-acb9-235ef0bfca2d","name":"Invalid listing parameters","originalRequest":{"method":"POST","header":[{"key":"Ipresso-Token","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"fields\": {\r\n    \"a_email\": \"example@example.com\",\r\n    \"a_fname\": \"Jhon\",\r\n    \"c_agreement\": true,\r\n    \"another_form_field\": \"answear example\"\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://CLIENT_PANEL_ADDRESS/api/2/form/FORM_KEY/fill"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"code\": 403,\r\n    \"message\": \"Wrong token! Please authorize again!\"\r\n}"}],"_postman_id":"d82b9adc-70bc-4151-b53d-19282f9bd17d"}],"id":"0e9f4bef-8f96-4c7c-8776-d1c6f5a0fddd","_postman_id":"0e9f4bef-8f96-4c7c-8776-d1c6f5a0fddd","description":""},{"name":"Limits","item":[],"id":"77548344-bc52-427d-92c5-10fe23e12758","description":"<p>API requests are <strong>rate-limited</strong> within a time window. The <strong>default limit</strong> is 1000 requests per 10 seconds for whole iPresso Account. If you require different settings, please contact iPresso support.</p>\n<p>If this limit is exceeded, the <strong>main error code will be 429</strong> with a <strong>detailed error code of 122</strong>.</p>\n","_postman_id":"77548344-bc52-427d-92c5-10fe23e12758"},{"name":"Error Codes","item":[],"id":"ca39afbd-6d1d-cdde-c196-a82d07d9524a","description":"<h2 id=\"list-of-returned-codes\">List of returned codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Error code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Content of demanded document (most often returned header in web communication)</td>\n</tr>\n<tr>\n<td>201</td>\n<td>Created – sent document was saved on server</td>\n</tr>\n<tr>\n<td>203</td>\n<td>Unauthorized information – returned information does not exactly respond to original server response but was made from local or external copies</td>\n</tr>\n<tr>\n<td>204</td>\n<td>Lack of content – server served the request and doesn't need to return any content</td>\n</tr>\n<tr>\n<td>300</td>\n<td>Many possibilities – there are more than one manner of serving one request, server may give address of data which allows to choose single request from many possibilities</td>\n</tr>\n<tr>\n<td>301</td>\n<td>ermanently transferred – required supply changed its URL and in the future the supply should be sought under new address</td>\n</tr>\n<tr>\n<td>302</td>\n<td>Found – required data is temporarily available under other address and future requests should be directed to the original address</td>\n</tr>\n<tr>\n<td>303</td>\n<td>See others – response to the demand is to be found at different URL.</td>\n</tr>\n<tr>\n<td>304</td>\n<td>Not modified</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request – the request was invalid or cannot be otherwise served</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized access – demanding data that requires authorization</td>\n</tr>\n<tr>\n<td>403</td>\n<td>Forbidden – The request is understood, but access is not allowed.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not found – the URL requested is invalid or the resource requested, such as a user, does not exists</td>\n</tr>\n<tr>\n<td>405</td>\n<td>Forbidden method – method included in the request is forbidden for the selected data, the response includes list of allowed methods</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Too Many Requests – the user has sent too many requests in a given amount of time.</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal Server Error – server encountered unexpected difficulties, which make execution of the request impossible</td>\n</tr>\n<tr>\n<td>501</td>\n<td>Not implemented – server does not dispose of functionality required in the request; the server received unknown type of request</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"list-of-errors-returned-by-ipresso-api\">List of errors returned by iPresso API</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Error code</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Contact already exists</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Exceeded limit</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Lack of contacts fulfilling criteria of the search</td>\n</tr>\n<tr>\n<td>4</td>\n<td>Incorrect search criteria</td>\n</tr>\n<tr>\n<td>5</td>\n<td>Error at the removal of the category of a contact</td>\n</tr>\n<tr>\n<td>6</td>\n<td>Lack of category name</td>\n</tr>\n<tr>\n<td>7</td>\n<td>Activity without defined key</td>\n</tr>\n<tr>\n<td>8</td>\n<td>Activity without defined name</td>\n</tr>\n<tr>\n<td>9</td>\n<td>Error at the addition of activity</td>\n</tr>\n<tr>\n<td>10</td>\n<td>Lack of activity key</td>\n</tr>\n<tr>\n<td>11</td>\n<td>Lack of contacts' ID at function request</td>\n</tr>\n<tr>\n<td>12</td>\n<td>Activity does not exist</td>\n</tr>\n<tr>\n<td>13</td>\n<td>Contact does not exist</td>\n</tr>\n<tr>\n<td>14</td>\n<td>Activity parameter does not exis</td>\n</tr>\n<tr>\n<td>15</td>\n<td>Mass activity addition error</td>\n</tr>\n<tr>\n<td>16</td>\n<td>Marketing consent without name</td>\n</tr>\n<tr>\n<td>17</td>\n<td>Error at consent addition</td>\n</tr>\n<tr>\n<td>18</td>\n<td>Error at consent edition</td>\n</tr>\n<tr>\n<td>19</td>\n<td>Error at consent deletion</td>\n</tr>\n<tr>\n<td>20</td>\n<td>Contact assignment to an consent error</td>\n</tr>\n<tr>\n<td>21</td>\n<td>Consent does not exist</td>\n</tr>\n<tr>\n<td>22</td>\n<td>Attribute without defined name</td>\n</tr>\n<tr>\n<td>23</td>\n<td>Attribute without defined key</td>\n</tr>\n<tr>\n<td>24</td>\n<td>Attribute without defined type</td>\n</tr>\n<tr>\n<td>25</td>\n<td>Error at attribute addition</td>\n</tr>\n<tr>\n<td>26</td>\n<td>Category does not exist</td>\n</tr>\n<tr>\n<td>27</td>\n<td>Error at category addition</td>\n</tr>\n<tr>\n<td>28</td>\n<td>Error at assigning contact to a category</td>\n</tr>\n<tr>\n<td>29</td>\n<td>Category edition parameters error</td>\n</tr>\n<tr>\n<td>30</td>\n<td>Lack of defined category ID</td>\n</tr>\n<tr>\n<td>31</td>\n<td>Lack of defined tag name</td>\n</tr>\n<tr>\n<td>32</td>\n<td>Lack of defined tag ID</td>\n</tr>\n<tr>\n<td>33</td>\n<td>Error at tag addition</td>\n</tr>\n<tr>\n<td>34</td>\n<td>Error at tag edition</td>\n</tr>\n<tr>\n<td>35</td>\n<td>Error at tag deletion</td>\n</tr>\n<tr>\n<td>36</td>\n<td>Error at tag assignment to a contact</td>\n</tr>\n<tr>\n<td>37</td>\n<td>Tag does not exist</td>\n</tr>\n<tr>\n<td>38</td>\n<td>Error of tag edition parameter</td>\n</tr>\n<tr>\n<td>39</td>\n<td>Error at deletion, tag has a superior tag</td>\n</tr>\n<tr>\n<td>40</td>\n<td>Lack of define type name</td>\n</tr>\n<tr>\n<td>41</td>\n<td>Lack of defined type key</td>\n</tr>\n<tr>\n<td>42</td>\n<td>Error of type addition</td>\n</tr>\n<tr>\n<td>43</td>\n<td>Error of the assignment of type to a contact</td>\n</tr>\n<tr>\n<td>44</td>\n<td>Incorrect contact ID</td>\n</tr>\n<tr>\n<td>45</td>\n<td>Lack of contact ID</td>\n</tr>\n<tr>\n<td>46</td>\n<td>Error during joining of contacts</td>\n</tr>\n<tr>\n<td>47</td>\n<td>Error of the removal of connections of contacts</td>\n</tr>\n<tr>\n<td>48</td>\n<td>Error at the addition of tags to a contact</td>\n</tr>\n<tr>\n<td>49</td>\n<td>Incorrect data at the addition of tags to a contact</td>\n</tr>\n<tr>\n<td>50</td>\n<td>Category addition error</td>\n</tr>\n<tr>\n<td>51</td>\n<td>Incorrect data in relation to category addition</td>\n</tr>\n<tr>\n<td>52</td>\n<td>Consent assignment error</td>\n</tr>\n<tr>\n<td>53</td>\n<td>Incorrect data in relation to contact consent addition</td>\n</tr>\n<tr>\n<td>54</td>\n<td>Contact deletion error</td>\n</tr>\n<tr>\n<td>55</td>\n<td>Activity addition error</td>\n</tr>\n<tr>\n<td>56</td>\n<td>Incorrect data in relation to activity addition</td>\n</tr>\n<tr>\n<td>57</td>\n<td>Lack of data in relation to activity addition</td>\n</tr>\n<tr>\n<td>58</td>\n<td>Contact type does not exit</td>\n</tr>\n<tr>\n<td>59</td>\n<td>Contact edition error</td>\n</tr>\n<tr>\n<td>60</td>\n<td>Incorrect contact data</td>\n</tr>\n<tr>\n<td>61</td>\n<td>Tag deletion error</td>\n</tr>\n<tr>\n<td>62</td>\n<td>Consent deletion error</td>\n</tr>\n<tr>\n<td>63</td>\n<td>Contact has integration</td>\n</tr>\n<tr>\n<td>64</td>\n<td>Attribute with given key already exists</td>\n</tr>\n<tr>\n<td>65</td>\n<td>Incorrect type of added attribute</td>\n</tr>\n<tr>\n<td>66</td>\n<td>Lack of URL address monitored site</td>\n</tr>\n<tr>\n<td>67</td>\n<td>Incorrect URL address of monitored site</td>\n</tr>\n<tr>\n<td>68</td>\n<td>Monitored site addition error</td>\n</tr>\n<tr>\n<td>69</td>\n<td>Incorrect monitored site ID</td>\n</tr>\n<tr>\n<td>70</td>\n<td>The page number must be greater than 0</td>\n</tr>\n<tr>\n<td>71</td>\n<td>The campaign is not called by the API</td>\n</tr>\n<tr>\n<td>72</td>\n<td>Contact is not clear , at the specified e-mail address or phone number is more than 1 person</td>\n</tr>\n<tr>\n<td>73</td>\n<td>Contacts does not have consent</td>\n</tr>\n<tr>\n<td>74</td>\n<td>The campaign is not yet ready</td>\n</tr>\n<tr>\n<td>75</td>\n<td>E-mail address is not valid</td>\n</tr>\n<tr>\n<td>76</td>\n<td>Contact does not have address e-mail</td>\n</tr>\n<tr>\n<td>77</td>\n<td>Contact does not have phone number</td>\n</tr>\n<tr>\n<td>78</td>\n<td>Incorrect contact hash</td>\n</tr>\n<tr>\n<td>79</td>\n<td>Audience has more than one contact</td>\n</tr>\n<tr>\n<td>85</td>\n<td>The number of recipients exceeds the limit defined in vendor's settings</td>\n</tr>\n<tr>\n<td>87</td>\n<td>Consent has been used</td>\n</tr>\n<tr>\n<td>89</td>\n<td>Segmentation - parameter <code>LIVE_TIME</code> is empty</td>\n</tr>\n<tr>\n<td>90</td>\n<td>Segmentation - name is empty</td>\n</tr>\n<tr>\n<td>91</td>\n<td>Segmentation - adding segmentation error</td>\n</tr>\n<tr>\n<td>92</td>\n<td>Segmentation - nonactive segmentation</td>\n</tr>\n<tr>\n<td>93</td>\n<td>Segmentation - delete segmentation error</td>\n</tr>\n<tr>\n<td>94</td>\n<td>Segmentation - segmentation not found</td>\n</tr>\n<tr>\n<td>95</td>\n<td>Segmentation - incorrect value of <code>CONTACT_ORIGIN</code></td>\n</tr>\n<tr>\n<td>96</td>\n<td>Segmentation - incorrect origin type</td>\n</tr>\n<tr>\n<td>97</td>\n<td>Voucher does not exist</td>\n</tr>\n<tr>\n<td>98</td>\n<td>Error sending the campaign - no TOKEN</td>\n</tr>\n<tr>\n<td>99</td>\n<td>The scenario with the specified API key does not exist</td>\n</tr>\n<tr>\n<td>100</td>\n<td>No provider for the selected channel</td>\n</tr>\n<tr>\n<td>101</td>\n<td>Profile pages missing</td>\n</tr>\n<tr>\n<td>102</td>\n<td>Wrong attribute data</td>\n</tr>\n<tr>\n<td>103</td>\n<td>Wrong attribute option data</td>\n</tr>\n<tr>\n<td>104</td>\n<td>Attribute option key already exists</td>\n</tr>\n<tr>\n<td>105</td>\n<td>Category name already exists</td>\n</tr>\n<tr>\n<td>106</td>\n<td>External ID doesn't exist</td>\n</tr>\n<tr>\n<td>107</td>\n<td>External ID already exists</td>\n</tr>\n<tr>\n<td>108</td>\n<td>External group not exists</td>\n</tr>\n<tr>\n<td>109</td>\n<td>Mobile number is not valid</td>\n</tr>\n<tr>\n<td>110</td>\n<td>Wrong file data</td>\n</tr>\n<tr>\n<td>111</td>\n<td>Vendor doesn't support attachments in e-mails</td>\n</tr>\n<tr>\n<td>112</td>\n<td>IP address is blocked</td>\n</tr>\n<tr>\n<td>113</td>\n<td>User is blocked</td>\n</tr>\n<tr>\n<td>114</td>\n<td>Invalid JS API method key</td>\n</tr>\n<tr>\n<td>115</td>\n<td>Changing an attribute requires support contact</td>\n</tr>\n<tr>\n<td>116</td>\n<td>Contact doesn't have access to communication via Whatsapp channel</td>\n</tr>\n<tr>\n<td>117</td>\n<td>Error deleting contact categories</td>\n</tr>\n<tr>\n<td>118</td>\n<td>Incorrect data in deleting a contact category request</td>\n</tr>\n<tr>\n<td>122</td>\n<td>Too many requests in time window</td>\n</tr>\n<tr>\n<td>125</td>\n<td>Page number to high</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"7ecd05d7-446c-40e0-98e6-571edc64e1ed","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e8b21cd4-1dcb-4c06-93cd-253c2e3e3250","type":"text/javascript","exec":[""]}}],"_postman_id":"ca39afbd-6d1d-cdde-c196-a82d07d9524a"}]}