{"info":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","description":"<html><head></head><body><p>Customerly API allows you to integrate your platform with Customerly's suite of customer support, marketing automation, and customer satisfaction software. This document provides an overview of how to authenticate and interact with the Customerly API.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>To interact with the Customerly REST API, you must authenticate your requests using an access token.</p>\n<h2 id=\"get-access-token\">Get Access Token</h2>\n<ol>\n<li><p>Log in to Customerly.</p>\n</li>\n<li><p>Follow the Tutorial: <a href=\"https://docs.customerly.io/en/api/how-to-obtain-your-api-access-token-in-customerly\">How to Obtain Your API Access Token in Customerly</a>.</p>\n</li>\n</ol>\n<h2 id=\"using-access-token\">Using Access Token</h2>\n<p>Include the access token in the <code>Authentication</code> header of your HTTP requests.</p>\n<h1 id=\"basics\">Basics</h1>\n<p>In Customerly, it's essential to understand the distinction between Users and Leads, as they represent different types of contacts within the platform. They have specific properties and functionalities that cater to different aspects of customer management. For a complete guide on user properties, refer to the <a href=\"https://docs.customerly.io/en/contacts-lists-and-companies/a-complete-guide-about-contact-properties\">Contact Properties Documentation</a>.</p>\n<h2 id=\"contacts-visitors-leads-and-users\">Contacts: Visitors, Leads and Users</h2>\n<p>In Customerly, we provide three distinct categories to help you recognize and communicate with different individuals interacting with your platform: Visitors, Leads, and Users. Understanding these categories is essential for effective engagement and customer management.</p>\n<h3 id=\"visitors\">Visitors</h3>\n<p><strong>Visitors</strong> are individuals who visit your website without engaging with any features, such as the Live Chat widget. They are anonymous and typically lack identifiable information.</p>\n<ul>\n<li><p><strong>Example</strong>: Someone browsing your product pages without initiating a chat or signing up.</p>\n</li>\n<li><p><strong>Interaction</strong>: None with your platform's interactive features.</p>\n</li>\n<li><p><strong>Data Collected</strong>: Minimal or none.</p>\n</li>\n</ul>\n<h3 id=\"leads\">Leads</h3>\n<p><strong>Leads</strong> are individuals who have shown some level of interest or engagement, such as starting a conversation through Live Chat. Any email collected through Live Chat is considered a Lead.</p>\n<ul>\n<li><p><strong>Example</strong>: Someone who asks a question about your products via Live Chat.</p>\n</li>\n<li><p><strong>Interaction</strong>: Engaging with Live Chat or other interactive elements.</p>\n</li>\n<li><p><strong>Data Collected</strong>: Email and possibly other contact information.</p>\n</li>\n<li><p><strong>Integration</strong>: You can connect Customerly with your Facebook Ads to collect leads and initiate Funnels through tools like Zapier.</p>\n</li>\n</ul>\n<h3 id=\"summary\">Summary</h3>\n<ul>\n<li><p><strong>Visitors</strong>: Anonymous browsing without engagement.</p>\n</li>\n<li><p><strong>Leads</strong>: Initial engagement through Live Chat or similar interactions.</p>\n</li>\n<li><p><strong>Users</strong>: Registered and fully engaged individuals with detailed profiles.</p>\n</li>\n</ul>\n<p>These categories help you tailor your communication and marketing strategies, offering personalized experiences based on the individual's engagement level with your platform.</p>\n<p>For more details on how to work with Visitors, Leads, and Users in Customerly, refer to the related guides and documentation.</p>\n<h2 id=\"contact-properties\">Contact Properties</h2>\n<p>A contact property is a data point on your contact that allows you to store specific information related to that contact. These properties can be both default and customized, depending on your needs. Contact properties are essential for segmenting, filtering, and personalizing interactions with your contacts.</p>\n<h3 id=\"components-of-a-contact-property\">Components of a Contact Property</h3>\n<ul>\n<li><p><strong>Name</strong>: The identifier of the property, such as <code>phone_number</code>.</p>\n</li>\n<li><p><strong>Description</strong> (optional): An internal description to help you recognize the property.</p>\n</li>\n<li><p><strong>Value</strong>: The specific value you want to store for each contact for this property.</p>\n</li>\n<li><p><strong>Type</strong>: The type of value you will store, such as text, number, boolean, or date.</p>\n</li>\n</ul>\n<p>For example, the <code>phone_number</code> property might have a name of \"Phone Number,\" a type of \"text,\" and store individual phone numbers as values for different contacts.</p>\n<h3 id=\"further-reading\">Further Reading</h3>\n<p>Contact properties can be powerful tools in managing and understanding your customer base. For a detailed guide on how to utilize contact properties within Customerly, including creating custom properties and managing default ones, refer to:</p>\n<ul>\n<li><a href=\"https://docs.customerly.io/en/contacts-lists-and-companies/a-complete-guide-about-contact-properties\">A Complete Guide About Contact Properties</a></li>\n</ul>\n<p>This guide provides step-by-step instructions and best practices for working with contact properties in your Customerly account.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authentication","slug":"authentication"},{"content":"Basics","slug":"basics"}],"owner":"11487813","collectionId":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","publishedId":"2s9Y5Wx3QG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"2fb6fa"},"publishDate":"2023-08-24T15:44:34.000Z"},"item":[{"name":"User","item":[{"name":"Create or Update Users","id":"96e737e5-c3c4-4580-83d5-a935865a9486","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n       \"users\":[\n          {\n             \"email\":\"luke@customerly.io\",\n             \"user_id\": 40,\n             \"name\": \"Luke\",\n             \"attributes\": {\n                \"phone_number\" : \"+353939200221\",\n                \"revenues\" : 180000,\n                \"website\" : \"https://www.customerly.io\",\n                \"utm_medium\" : \"ppc\",\n                \"utm_campaign\" : \"Remarketing\",\n                \"utm_source\": \"meta\"\n             },\n             \"tags\":[\n                \"onboarding\",\n                \"remarketing\"\n             ]\n          }\n       ]\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/users","description":"<p>The Users endpoint allows you to create, update, and manage users within Customerly, along with their subscription information, custom attributes, and tags. By integrating with this endpoint, you can unlock powerful capabilities to enhance user engagement, retention, and onboarding.</p>\n<h4 id=\"benefits-of-using-users-endpoint\"><strong>Benefits of Using Users Endpoint</strong></h4>\n<ul>\n<li><p><strong>Update Subscription Information</strong>: Efficiently manage and update user subscription details, reflecting changes in plan, status, or preferences.</p>\n</li>\n<li><p><strong>Trigger Workflows and Emails</strong>: Update properties or tags to fire specific workflows or personalized email communications. This enables targeted marketing and support interactions based on user attributes or behaviors.</p>\n</li>\n<li><p><strong>Welcome Onboarding Workflow</strong>: Create a new user to automatically trigger a welcome onboarding email sequence. This fosters a positive first impression and guides the user through the initial stages of engagement with your platform.</p>\n</li>\n</ul>\n<h4 id=\"components-of-a-user-property\"><strong>Components of a User Property</strong></h4>\n<ul>\n<li><p><strong>Name</strong>: The identifier of the property, such as <code>subscription_plan</code>.</p>\n</li>\n<li><p><strong>Description</strong> (optional): An internal description to help you recognize the property.</p>\n</li>\n<li><p><strong>Value</strong>: The specific value you want to store for each user for this property, such as plan type or subscription status.</p>\n</li>\n<li><p><strong>Type</strong>: The type of value you will store, such as text, number, boolean, or date.</p>\n</li>\n</ul>\n<h4 id=\"example\"><strong>Example</strong></h4>\n<p>For example, the <code>subscription_plan</code> property might have a name of \"Subscription Plan,\" a type of \"text,\" and store individual subscription plans as values for different users.</p>\n<h3 id=\"further-reading\">Further Reading</h3>\n<p>Contact properties can be powerful tools in managing and understanding your customer base. For a detailed guide on how to utilize contact properties within Customerly, including creating custom properties and managing default ones, refer to:</p>\n<ul>\n<li><a href=\"https://docs.customerly.io/en/contacts-lists-and-companies/a-complete-guide-about-contact-properties\">A Complete Guide About Contact Properties</a></li>\n</ul>\n<p>This guide provides step-by-step instructions and best practices for working with contact properties in your Customerly account.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[{"id":"8246ee1b-4558-47ea-8ce1-c3fc80285722","name":"Create or Update User","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n       \"users\":[\n          {\n             \"email\":\"elena@customerly.io\",\n             \"user_id\": 40,\n             \"name\": \"Elena\",\n             \"attributes\": {\n                \"phone_number\" : \"+353939200221\",\n                \"revenues\" : 180000,\n                \"website\" : \"https://www.customerly.io\",\n                \"utm_medium\" : \"ppc\",\n                \"utm_campaign\" : \"Remarketing\",\n                \"utm_source\": \"meta\"\n             },\n             \"tags\":[\n                \"onboarding\",\n                \"remarketing\"\n             ]\n          }\n       ]\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 16:06:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=IMjkNS68RfEmKJKEzzByn4qd989iRa+UE2+ffXBuCgc4wlo4xox2LvtBQ9KKYVKc0gaJDUwzM6/PUmdXCqFTF9VAEnVTxY3tJIzCdPRohiUVa5oWqdee88I2ceMc; Expires=Thu, 31 Aug 2023 16:06:35 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=IMjkNS68RfEmKJKEzzByn4qd989iRa+UE2+ffXBuCgc4wlo4xox2LvtBQ9KKYVKc0gaJDUwzM6/PUmdXCqFTF9VAEnVTxY3tJIzCdPRohiUVa5oWqdee88I2ceMc; Expires=Thu, 31 Aug 2023 16:06:35 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"inserted\": 1,\n        \"not_added\": [],\n        \"errors\": []\n    }\n}"}],"_postman_id":"96e737e5-c3c4-4580-83d5-a935865a9486"},{"name":"GET Users List","id":"34c9705b-8f85-42c4-af17-9156d771fec7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.customerly.io/v1/users/list?page=0&per_page=50&sort=name&sort_direction=asc","description":"<p>Fetch all the details of a single User searching by email.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users","list"],"host":["api","customerly","io"],"query":[{"key":"page","value":"0"},{"key":"per_page","value":"50"},{"key":"sort","value":"name"},{"key":"sort_direction","value":"asc"}],"variable":[]}},"response":[{"id":"c23a5a4c-0825-4a9e-aeaf-eb9ca9bab036","name":"Users List Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.customerly.io/v1/users/list?page=0&per_page=50&sort=name&sort_direction=asc","protocol":"https","host":["api","customerly","io"],"path":["v1","users","list"],"query":[{"key":"page","value":"0"},{"key":"per_page","value":"50"},{"key":"sort","value":"name"},{"key":"sort_direction","value":"asc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 16:28:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=+I9qHcxgJETC9wv6i58/AGFgVwoYljdWLjOqakyFz/7Xtiy8prz5owpvP6q5dlqaUNgMig59YYcTb2st6TQuTa0bS6OPUfRjl8sr2uD1WvWVvPV4rAl7RRnVxRjC; Expires=Thu, 31 Aug 2023 16:28:29 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=+I9qHcxgJETC9wv6i58/AGFgVwoYljdWLjOqakyFz/7Xtiy8prz5owpvP6q5dlqaUNgMig59YYcTb2st6TQuTa0bS6OPUfRjl8sr2uD1WvWVvPV4rAl7RRnVxRjC; Expires=Thu, 31 Aug 2023 16:28:29 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"users\": [\n            {\n                \"rating\": null,\n                \"was_lead\": 0,\n                \"ip_address\": \"93.45.72.199\",\n                \"isp\": \"Fastweb\",\n                \"city\": \"Novara\",\n                \"continent\": \"Europe\",\n                \"continent_code\": \"EU\",\n                \"country\": \"Italy\",\n                \"country_code\": \"IT\",\n                \"region\": \" Novara\",\n                \"region_code\": \"NO\",\n                \"postal_code\": \"28100\",\n                \"spoken_language\": null,\n                \"latitude\": 45.4667,\n                \"longitude\": 8.5833,\n                \"timezone\": \"Europe/Rome\",\n                \"browser_language\": \"it-IT\",\n                \"browser_name\": \"Chrome\",\n                \"browser_version\": \"112.0.0.0\",\n                \"last_page_viewed\": \"https://try.customerly.io/chat/007b9e3f/1\",\n                \"last_page_viewed_at\": 1681907659,\n                \"os\": \"Macintosh\",\n                \"os_version\": \"\",\n                \"web_session\": 1,\n                \"android_app_name\": null,\n                \"android_app_version\": null,\n                \"android_device\": null,\n                \"android_last_seen_at\": null,\n                \"android_os_version\": null,\n                \"android_session\": null,\n                \"ios_app_name\": null,\n                \"ios_app_version\": null,\n                \"ios_device\": null,\n                \"ios_last_seen_at\": null,\n                \"ios_os_version\": null,\n                \"ios_session\": null,\n                \"spam\": 0,\n                \"bounce\": 0,\n                \"unsubscribe\": 0,\n                \"referrer\": null,\n                \"utm_campaign\": \"Onboarding\",\n                \"utm_content\": null,\n                \"utm_medium\": \"Try Live Chat\",\n                \"utm_source\": \"Customerly\",\n                \"utm_term\": null,\n                \"nps_vote\": null,\n                \"picture_background\": \"cfef9a\",\n                \"picture_gravatar\": 0,\n                \"picture_gravatar_last_update\": 0,\n                \"picture_initials\": \"C\",\n                \"first_seen_at\": 1681907658,\n                \"last_activity\": 1681907659,\n                \"last_update\": \"2023-04-19 12:34:19\",\n                \"attributes\": {\n                    \"employees\": \"10\",\n                    \"interest\": \"inbox\",\n                    \"phone\": \"+1 203-203-2033\",\n                    \"revenues\": \"540000\",\n                    \"website\": \"www.company.com\"\n                },\n                \"crmhero_user_id\": 29136875,\n                \"app_id\": \"007b9e3f\",\n                \"email\": \"curious@company.com\",\n                \"user_id\": null,\n                \"facebook_profile_id\": null,\n                \"name\": \"Curious\",\n                \"is_user\": 1,\n                \"is_name_autogenerated\": 0\n            },\n            {\n                \"rating\": null,\n                \"was_lead\": 0,\n                \"ip_address\": null,\n                \"isp\": null,\n                \"city\": null,\n                \"continent\": null,\n                \"continent_code\": null,\n                \"country\": null,\n                \"country_code\": null,\n                \"region\": null,\n                \"region_code\": null,\n                \"postal_code\": null,\n                \"spoken_language\": null,\n                \"latitude\": null,\n                \"longitude\": null,\n                \"timezone\": null,\n                \"browser_language\": null,\n                \"browser_name\": null,\n                \"browser_version\": null,\n                \"last_page_viewed\": null,\n                \"last_page_viewed_at\": null,\n                \"os\": null,\n                \"os_version\": null,\n                \"web_session\": null,\n                \"android_app_name\": null,\n                \"android_app_version\": null,\n                \"android_device\": null,\n                \"android_last_seen_at\": null,\n                \"android_os_version\": null,\n                \"android_session\": null,\n                \"ios_app_name\": null,\n                \"ios_app_version\": null,\n                \"ios_device\": null,\n                \"ios_last_seen_at\": null,\n                \"ios_os_version\": null,\n                \"ios_session\": null,\n                \"spam\": 0,\n                \"bounce\": 0,\n                \"unsubscribe\": 1,\n                \"referrer\": null,\n                \"utm_campaign\": \"Remarketing\",\n                \"utm_content\": null,\n                \"utm_medium\": \"ppc\",\n                \"utm_source\": \"meta\",\n                \"utm_term\": null,\n                \"nps_vote\": null,\n                \"picture_background\": \"af8b7c\",\n                \"picture_gravatar\": 0,\n                \"picture_gravatar_last_update\": 0,\n                \"picture_initials\": \"E\",\n                \"first_seen_at\": 1692894190,\n                \"last_activity\": null,\n                \"last_update\": \"2023-08-24 16:23:14\",\n                \"attributes\": {\n                    \"phone_number\": \"+353939200221\",\n                    \"revenues\": \"180000\",\n                    \"website\": \"https://www.customerly.io\"\n                },\n                \"crmhero_user_id\": 29911301,\n                \"app_id\": \"007b9e3f\",\n                \"email\": \"elena@customerly.io\",\n                \"user_id\": \"40\",\n                \"facebook_profile_id\": null,\n                \"name\": \"Elena\",\n                \"is_user\": 1,\n                \"is_name_autogenerated\": 0\n            }\n        ],\n        \"results\": {\n            \"total\": 2,\n            \"matched\": 2,\n            \"bounces\": 0,\n            \"unsubscribes\": 0\n        }\n    }\n}"}],"_postman_id":"34c9705b-8f85-42c4-af17-9156d771fec7"},{"name":"GET User details by Email","id":"47254ba2-1aff-4752-8028-11295f9552e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.customerly.io/v1/users?email=luke@customerly.io","description":"<p>Fetch all the details of a single User searching by email.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users"],"host":["api","customerly","io"],"query":[{"key":"email","value":"luke@customerly.io"}],"variable":[]}},"response":[{"id":"fb4cf8d8-61fe-483a-9b4c-9e8a6782d2f7","name":"GET User details Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.customerly.io/v1/users?email=elena@customerly.io","protocol":"https","host":["api","customerly","io"],"path":["v1","users"],"query":[{"key":"email","value":"elena@customerly.io"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 16:25:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=IQJwRyGLwdH0z0BiJ69ZFNRFL0dynTTQMdYQAUOHd9hZroPSwqkip3SsdeT1FzsPaxB+8ojNnM8coJQsPAesRNFrZxrGzVU6WIoAXkQVIbi1J+fNM9wnPgzeWYtp; Expires=Thu, 31 Aug 2023 16:25:57 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=IQJwRyGLwdH0z0BiJ69ZFNRFL0dynTTQMdYQAUOHd9hZroPSwqkip3SsdeT1FzsPaxB+8ojNnM8coJQsPAesRNFrZxrGzVU6WIoAXkQVIbi1J+fNM9wnPgzeWYtp; Expires=Thu, 31 Aug 2023 16:25:57 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"crmhero_user_id\": 29911301,\n        \"app_id\": \"007b9e3f\",\n        \"user_id\": \"40\",\n        \"email\": \"elena@customerly.io\",\n        \"name\": \"Elena\",\n        \"is_user\": 1,\n        \"last_page_viewed\": null,\n        \"last_page_viewed_at\": null,\n        \"ip_address\": null,\n        \"timezone\": null,\n        \"latitude\": null,\n        \"longitude\": null,\n        \"city\": null,\n        \"postal_code\": null,\n        \"region\": null,\n        \"region_code\": null,\n        \"country\": null,\n        \"country_code\": null,\n        \"continent\": null,\n        \"continent_code\": null,\n        \"isp\": null,\n        \"browser_name\": null,\n        \"browser_version\": null,\n        \"browser_language\": null,\n        \"spoken_language\": null,\n        \"os\": null,\n        \"os_version\": null,\n        \"web_session\": null,\n        \"first_seen_at\": 1692894190,\n        \"android_app_name\": null,\n        \"android_app_version\": null,\n        \"android_device\": null,\n        \"android_os_version\": null,\n        \"android_session\": null,\n        \"android_last_seen_at\": null,\n        \"ios_app_name\": null,\n        \"ios_app_version\": null,\n        \"ios_device\": null,\n        \"ios_os_version\": null,\n        \"ios_session\": null,\n        \"ios_last_seen_at\": null,\n        \"picture_initials\": \"E\",\n        \"picture_background\": \"af8b7c\",\n        \"picture_gravatar\": 0,\n        \"picture_gravatar_last_update\": 0,\n        \"bounce\": 0,\n        \"unsubscribe\": 1,\n        \"spam\": 0,\n        \"last_activity\": null,\n        \"facebook_profile_id\": null,\n        \"utm_campaign\": \"Remarketing\",\n        \"utm_medium\": \"ppc\",\n        \"utm_source\": \"meta\",\n        \"utm_term\": null,\n        \"utm_content\": null,\n        \"referrer\": null,\n        \"is_name_autogenerated\": 0,\n        \"rating\": null,\n        \"last_update\": \"2023-08-24 16:23:14\",\n        \"was_lead\": 0,\n        \"nps_vote\": null,\n        \"attributes\": {\n            \"phone_number\": \"+353939200221\",\n            \"revenues\": \"180000\",\n            \"website\": \"https://www.customerly.io\"\n        },\n        \"user_segments\": [],\n        \"user_tags\": [\n            \"onboarding\",\n            \"remarketing\"\n        ],\n        \"user_events\": [],\n        \"user_notes\": [],\n        \"companies\": [\n            {\n                \"internal_company_id\": 1293944,\n                \"app_id\": \"007b9e3f\",\n                \"company_id\": \"a912c92\",\n                \"name\": \"Company\",\n                \"created_at\": 1664921391,\n                \"last_seen_at\": 1681907658,\n                \"attributes\": {\n                    \"address\": \"Ground Floor, 71 Lower Baggot Street\",\n                    \"admin_url\": \"https://www.company.com/admin/companyID\",\n                    \"city\": \"Dublin\",\n                    \"domain\": \"company.com\",\n                    \"employees\": \"10\",\n                    \"last_payment_amount\": \"1188\",\n                    \"phone\": \"21312312\",\n                    \"sub_amount\": \"1188\",\n                    \"sub_currency\": \"EUR\",\n                    \"sub_name\": \"Pro\",\n                    \"sub_period\": \"Yearly\",\n                    \"sub_state\": \"Active\",\n                    \"total_revenues\": \"5940\"\n                }\n            }\n        ],\n        \"n_open_conversations\": 0\n    }\n}"}],"_postman_id":"47254ba2-1aff-4752-8028-11295f9552e6"},{"name":"GET User details by ID","id":"c444946b-91e2-4538-8aae-5b521a614589","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.customerly.io/v1/users?user_id=40","description":"<p>Fetch all the details of a single User searching by user_id.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users"],"host":["api","customerly","io"],"query":[{"description":{"content":"<p>Your user Id </p>\n","type":"text/plain"},"key":"user_id","value":"40"}],"variable":[]}},"response":[{"id":"87fe1764-61ab-4447-a881-d099151090da","name":"GET User details by ID","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.customerly.io/v1/users?user_id=40","protocol":"https","host":["api","customerly","io"],"path":["v1","users"],"query":[{"key":"user_id","value":"40","description":"Your user Id "}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 16:25:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=arFWPKBPu77LL6TreE2N275z1xLU2vpM54O4cZwGPsAkRWRFGZtxs/9/pZ8UTyBB1TsJPefW1ijKXuyHoBMXC6NAIqWl+XS5+DCg51MPThrgjvjVqtCSRv+ypSIb; Expires=Thu, 31 Aug 2023 16:25:25 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=arFWPKBPu77LL6TreE2N275z1xLU2vpM54O4cZwGPsAkRWRFGZtxs/9/pZ8UTyBB1TsJPefW1ijKXuyHoBMXC6NAIqWl+XS5+DCg51MPThrgjvjVqtCSRv+ypSIb; Expires=Thu, 31 Aug 2023 16:25:25 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"crmhero_user_id\": 29911301,\n        \"app_id\": \"007b9e3f\",\n        \"user_id\": \"40\",\n        \"email\": \"elena@customerly.io\",\n        \"name\": \"Elena\",\n        \"is_user\": 1,\n        \"last_page_viewed\": null,\n        \"last_page_viewed_at\": null,\n        \"ip_address\": null,\n        \"timezone\": null,\n        \"latitude\": null,\n        \"longitude\": null,\n        \"city\": null,\n        \"postal_code\": null,\n        \"region\": null,\n        \"region_code\": null,\n        \"country\": null,\n        \"country_code\": null,\n        \"continent\": null,\n        \"continent_code\": null,\n        \"isp\": null,\n        \"browser_name\": null,\n        \"browser_version\": null,\n        \"browser_language\": null,\n        \"spoken_language\": null,\n        \"os\": null,\n        \"os_version\": null,\n        \"web_session\": null,\n        \"first_seen_at\": 1692894190,\n        \"android_app_name\": null,\n        \"android_app_version\": null,\n        \"android_device\": null,\n        \"android_os_version\": null,\n        \"android_session\": null,\n        \"android_last_seen_at\": null,\n        \"ios_app_name\": null,\n        \"ios_app_version\": null,\n        \"ios_device\": null,\n        \"ios_os_version\": null,\n        \"ios_session\": null,\n        \"ios_last_seen_at\": null,\n        \"picture_initials\": \"E\",\n        \"picture_background\": \"af8b7c\",\n        \"picture_gravatar\": 0,\n        \"picture_gravatar_last_update\": 0,\n        \"bounce\": 0,\n        \"unsubscribe\": 1,\n        \"spam\": 0,\n        \"last_activity\": null,\n        \"facebook_profile_id\": null,\n        \"utm_campaign\": \"Remarketing\",\n        \"utm_medium\": \"ppc\",\n        \"utm_source\": \"meta\",\n        \"utm_term\": null,\n        \"utm_content\": null,\n        \"referrer\": null,\n        \"is_name_autogenerated\": 0,\n        \"rating\": null,\n        \"last_update\": \"2023-08-24 16:23:14\",\n        \"was_lead\": 0,\n        \"nps_vote\": null,\n        \"attributes\": {\n            \"phone_number\": \"+353939200221\",\n            \"revenues\": \"180000\",\n            \"website\": \"https://www.customerly.io\"\n        },\n        \"user_segments\": [],\n        \"user_tags\": [\n            \"onboarding\",\n            \"remarketing\"\n        ],\n        \"user_events\": [],\n        \"user_notes\": [],\n        \"companies\": [\n            {\n                \"internal_company_id\": 1293944,\n                \"app_id\": \"007b9e3f\",\n                \"company_id\": \"a912c92\",\n                \"name\": \"Company\",\n                \"created_at\": 1664921391,\n                \"last_seen_at\": 1681907658,\n                \"attributes\": {\n                    \"address\": \"Ground Floor, 71 Lower Baggot Street\",\n                    \"admin_url\": \"https://www.company.com/admin/companyID\",\n                    \"city\": \"Dublin\",\n                    \"domain\": \"company.com\",\n                    \"employees\": \"10\",\n                    \"last_payment_amount\": \"1188\",\n                    \"phone\": \"21312312\",\n                    \"sub_amount\": \"1188\",\n                    \"sub_currency\": \"EUR\",\n                    \"sub_name\": \"Pro\",\n                    \"sub_period\": \"Yearly\",\n                    \"sub_state\": \"Active\",\n                    \"total_revenues\": \"5940\"\n                }\n            }\n        ],\n        \"n_open_conversations\": 0\n    }\n}"}],"_postman_id":"c444946b-91e2-4538-8aae-5b521a614589"},{"name":"Delete User by Email","id":"3df1b211-fe5b-451e-8812-9a44eaf90cd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.customerly.io/v1/users?email=luke@customerly.io","description":"<p>This endpoint allows you to permanently delete a contact from Customerly based on the email.</p>\n<p><strong>⚠️ This action is irreversible, so it should be used with caution</strong>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users"],"host":["api","customerly","io"],"query":[{"key":"email","value":"luke@customerly.io"}],"variable":[]}},"response":[{"id":"5c8dafd7-769b-4167-92ee-d1a692246113","name":"Delete User by Email","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.customerly.io/v1/users?email=elena@customerly.io","protocol":"https","host":["api","customerly","io"],"path":["v1","users"],"query":[{"key":"email","value":"elena@customerly.io"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 16:22:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=psoY7K51ErQr2p1hs62gqHvnQw9LA84IMqb0iHGihoJA6PIJofo4zWXivnOPeUar7EvnRVjbjE1tZZ/ZdihrT4/cfLU5TL72SRqS2FqLNphvv+dqxaizFcV3QBEJ; Expires=Thu, 31 Aug 2023 16:22:39 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=psoY7K51ErQr2p1hs62gqHvnQw9LA84IMqb0iHGihoJA6PIJofo4zWXivnOPeUar7EvnRVjbjE1tZZ/ZdihrT4/cfLU5TL72SRqS2FqLNphvv+dqxaizFcV3QBEJ; Expires=Thu, 31 Aug 2023 16:22:39 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {}\n}"}],"_postman_id":"3df1b211-fe5b-451e-8812-9a44eaf90cd7"},{"name":"Delete User by ID","id":"a468f7e2-53f7-45fa-b040-54213635ec1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.customerly.io/v1/users?user_id=40","description":"<p>This endpoint allows you to permanently delete a contact from Customerly based on the unique user_id.</p>\n<p><strong>⚠️ This action is irreversible, so it should be used with caution</strong>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users"],"host":["api","customerly","io"],"query":[{"key":"user_id","value":"40"}],"variable":[]}},"response":[{"id":"53cec05e-80f9-4740-ba94-f93a73a8d082","name":"Delete User by ID","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.customerly.io/v1/users?user_id=40","protocol":"https","host":["api","customerly","io"],"path":["v1","users"],"query":[{"key":"user_id","value":"40"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 16:22:58 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=PSq/DDjyIwXcnjH2NSuD1ZtY18G268UBInde+8Ox4klHhCJbtFUe1Jtxn2QDf2NRj00F8v20G/x+AAzfRc2QYxzCdeac1en/gnpWLDI1SrGXOnUyHI9uO1USuiFS; Expires=Thu, 31 Aug 2023 16:22:58 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=PSq/DDjyIwXcnjH2NSuD1ZtY18G268UBInde+8Ox4klHhCJbtFUe1Jtxn2QDf2NRj00F8v20G/x+AAzfRc2QYxzCdeac1en/gnpWLDI1SrGXOnUyHI9uO1USuiFS; Expires=Thu, 31 Aug 2023 16:22:58 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {}\n}"}],"_postman_id":"a468f7e2-53f7-45fa-b040-54213635ec1c"},{"name":"Unsubscribe User","id":"af8bfb20-b964-40c8-b543-8fd573cb5e9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/users/unsubscribe/40","description":"<p>The Set User as Unsubscribed endpoint allows you to update a specific user's unsubscribe attribute to 1, thereby preventing further email communications from marketing campaigns.</p>\n<p>However, this will not affect email communications related to support.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users","unsubscribe","40"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[{"id":"95ea2ec9-72e1-42a9-b560-d0d6d12405e0","name":"Create or Update User Copy","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/users/unsubscribe/40"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 16:23:14 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=E3I4nIOkPrgoCTnzi4M9g5h+d4eSPfcMYQ14dSDmAw9UIo9+JYIYeKAA7/yPVIAUPpKfu74tRwcUWr5DFyP7ZpcmvU6//rkZo94V87yAFB2QqJ7Nj2h1OdjcGIKD; Expires=Thu, 31 Aug 2023 16:23:14 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=E3I4nIOkPrgoCTnzi4M9g5h+d4eSPfcMYQ14dSDmAw9UIo9+JYIYeKAA7/yPVIAUPpKfu74tRwcUWr5DFyP7ZpcmvU6//rkZo94V87yAFB2QqJ7Nj2h1OdjcGIKD; Expires=Thu, 31 Aug 2023 16:23:14 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {}\n}"}],"_postman_id":"af8bfb20-b964-40c8-b543-8fd573cb5e9c"},{"name":"Add User to Company","id":"67f9de53-7496-476e-aea0-4ed005323e28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"company_id\":\"a912c92\",\n    \"email\": \"luke@customerly.io\",\n    \"company_attributes\":\n        {\n            \"phone\": \"21312312\"\n            }\n}"},"url":"https://api.customerly.io/v1/users/add-to-company","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users","add-to-company"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[{"id":"7ef264ff-f85f-498a-a819-8436837a4c60","name":"Add User to Company","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"company_id\":\"a912c92\",\"email\": \"elena@customerly.io\",\"company_attributes\":{\"phone\": \"21312312\"}}"},"url":"https://api.customerly.io/v1/users/add-to-company"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 16:25:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=Oe39G8XeJ6doA9sPA34Wxv0NYwWJvQVOMQIbMT5wf9BOETyAIj7Te6Xe5wU2k4VIv+GTl9144aDG+5ryr0NYRN6WRBKBLdeTz36zZJUEXXQ4q35Ple7J7ztizyLC; Expires=Thu, 31 Aug 2023 16:25:12 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=Oe39G8XeJ6doA9sPA34Wxv0NYwWJvQVOMQIbMT5wf9BOETyAIj7Te6Xe5wU2k4VIv+GTl9144aDG+5ryr0NYRN6WRBKBLdeTz36zZJUEXXQ4q35Ple7J7ztizyLC; Expires=Thu, 31 Aug 2023 16:25:12 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {}\n}"}],"_postman_id":"67f9de53-7496-476e-aea0-4ed005323e28"},{"name":"Update or Add Attributes","id":"c240193c-f1e3-4cbe-bdca-618bf004386f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {  \n        \"attributes\": {\n            \"phone\": \"+353 (8) 303938222\"\n        }\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/users/add-attributes/40","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users","add-attributes","40"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"c240193c-f1e3-4cbe-bdca-618bf004386f"},{"name":"Update or Add Company Attributes","id":"c6e01d07-07dd-4a53-a40a-3df507460ae5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {  \n        \"company_name\": \"Customerly\",\n        \"attributes\": {\n            \"sub_name\": \"Pro\",\n            \"sub_state\" : \"Trial\",\n            \"total_revenues\": 1020002\n        }\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/company/add-attributes/a912c92","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","company","add-attributes","a912c92"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6e01d07-07dd-4a53-a40a-3df507460ae5"}],"id":"6021692a-4b99-455a-b5c7-c4b30f8a3062","description":"<p><strong>Users</strong> are registered individuals on your platform, identifiable by user IDs, emails, and other data. They have specific profiles with detailed information.</p>\n<ul>\n<li><p><strong>Example</strong>: A registered customer with a user account on your platform.</p>\n</li>\n<li><p><strong>Interaction</strong>: Full engagement with your platform, including purchases and account management.</p>\n</li>\n<li><p><strong>Data Collected</strong>: User ID, email, name, preferences, and other personalized data.</p>\n</li>\n<li><p><strong>Integration</strong>: To collect user session data and enable auto-login within Live Chat, you can follow <a href=\"https://docs.customerly.io/en/api/how-to-collect-user-s-session-data-and-auto-login-within-your-live-chat\">this article</a>.</p>\n</li>\n</ul>\n","_postman_id":"6021692a-4b99-455a-b5c7-c4b30f8a3062","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}}},{"name":"Lead","item":[{"name":"GET Lead details by Email","id":"ae9080e8-bdca-4826-acab-190f98322a45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.customerly.io/v1/leads?email=luke@customerly.io","description":"<p>Fetch all the details of a single User searching by email.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","leads"],"host":["api","customerly","io"],"query":[{"key":"email","value":"luke@customerly.io"}],"variable":[]}},"response":[{"id":"0017c6d6-ca49-4422-9a98-4873c1b4a4d3","name":"GET Lead details by Email","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.customerly.io/v1/leads?email=luke@customerly.io","protocol":"https","host":["api","customerly","io"],"path":["v1","leads"],"query":[{"key":"email","value":"luke@customerly.io"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 16:55:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=ixJ2BN3JXVnPhq0zN0dyqTdeOtPseJMo186Xhf9pdTVbjDZUoV5O3zq1TNQjSCn/C4+Pkyo77vkQhCmtZaeshnQShDfUfZ+SKoeeHYzIRvb6HBXGCGaLTgeFMJmA; Expires=Thu, 31 Aug 2023 16:55:38 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=ixJ2BN3JXVnPhq0zN0dyqTdeOtPseJMo186Xhf9pdTVbjDZUoV5O3zq1TNQjSCn/C4+Pkyo77vkQhCmtZaeshnQShDfUfZ+SKoeeHYzIRvb6HBXGCGaLTgeFMJmA; Expires=Thu, 31 Aug 2023 16:55:38 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"crmhero_user_id\": 29911435,\n        \"app_id\": \"007b9e3f\",\n        \"user_id\": null,\n        \"email\": \"luke@customerly.io\",\n        \"name\": \"Luke\",\n        \"is_user\": 0,\n        \"last_page_viewed\": null,\n        \"last_page_viewed_at\": null,\n        \"ip_address\": null,\n        \"timezone\": null,\n        \"latitude\": null,\n        \"longitude\": null,\n        \"city\": null,\n        \"postal_code\": null,\n        \"region\": null,\n        \"region_code\": null,\n        \"country\": null,\n        \"country_code\": null,\n        \"continent\": null,\n        \"continent_code\": null,\n        \"isp\": null,\n        \"browser_name\": null,\n        \"browser_version\": null,\n        \"browser_language\": null,\n        \"spoken_language\": null,\n        \"os\": null,\n        \"os_version\": null,\n        \"web_session\": null,\n        \"first_seen_at\": 1692896128,\n        \"android_app_name\": null,\n        \"android_app_version\": null,\n        \"android_device\": null,\n        \"android_os_version\": null,\n        \"android_session\": null,\n        \"android_last_seen_at\": null,\n        \"ios_app_name\": null,\n        \"ios_app_version\": null,\n        \"ios_device\": null,\n        \"ios_os_version\": null,\n        \"ios_session\": null,\n        \"ios_last_seen_at\": null,\n        \"picture_initials\": \"L\",\n        \"picture_background\": \"ab734d\",\n        \"picture_gravatar\": 0,\n        \"picture_gravatar_last_update\": 0,\n        \"bounce\": 0,\n        \"unsubscribe\": 0,\n        \"spam\": 0,\n        \"last_activity\": null,\n        \"facebook_profile_id\": null,\n        \"utm_campaign\": \"Remarketing\",\n        \"utm_medium\": \"ppc\",\n        \"utm_source\": \"meta\",\n        \"utm_term\": null,\n        \"utm_content\": null,\n        \"referrer\": null,\n        \"is_name_autogenerated\": 0,\n        \"rating\": null,\n        \"last_update\": \"2023-08-24 16:55:28\",\n        \"was_lead\": 1,\n        \"nps_vote\": null,\n        \"attributes\": {\n            \"phone_number\": \"+353939200221\",\n            \"revenues\": \"180000\",\n            \"website\": \"https://www.customerly.io\"\n        },\n        \"user_segments\": [],\n        \"user_tags\": [\n            \"onboarding\",\n            \"remarketing\"\n        ],\n        \"user_events\": [],\n        \"user_notes\": [],\n        \"companies\": [],\n        \"n_open_conversations\": 0,\n        \"base\": {\n            \"tags\": [\n                \"ciao\",\n                \"onboarding\",\n                \"remarketing\",\n                \"tools\"\n            ],\n            \"states\": {\n                \"1\": {\n                    \"app_state_id\": 683755,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"1\",\n                    \"state_name\": \"1\",\n                    \"description\": \"\",\n                    \"created_at\": 1633091373,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 1,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"1\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"account_type\": {\n                    \"app_state_id\": 6084,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Account type\",\n                    \"state_name\": \"account_type\",\n                    \"description\": \"\",\n                    \"created_at\": 1561536850,\n                    \"state_cast\": 2,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 2,\n                    \"id\": \"account_type\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"address\": {\n                    \"app_state_id\": 10126,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Address\",\n                    \"state_name\": \"address\",\n                    \"description\": \"What is your city?2452\",\n                    \"created_at\": 1585927547,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"What is your city?2452\",\n                    \"cast\": 0,\n                    \"id\": \"address\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"android_app_name\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Android app name\",\n                    \"state_name\": \"android_app_name\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Android app name of the last android session\",\n                    \"cast\": 0,\n                    \"id\": \"android_app_name\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"android_app_version\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Android app version\",\n                    \"state_name\": \"android_app_version\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Android app version of the last android session\",\n                    \"cast\": 0,\n                    \"id\": \"android_app_version\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"android_device\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Android device\",\n                    \"state_name\": \"android_device\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Android device of the last android session\",\n                    \"cast\": 0,\n                    \"id\": \"android_device\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"android_last_seen_at\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Android last seen at\",\n                    \"state_name\": \"android_last_seen_at\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 2,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Android last seen date/time on an android session\",\n                    \"cast\": 2,\n                    \"id\": \"android_last_seen_at\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"android_os_version\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Android version\",\n                    \"state_name\": \"android_os_version\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Android OS version of the last android session\",\n                    \"cast\": 0,\n                    \"id\": \"android_os_version\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"android_session\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Android session count\",\n                    \"state_name\": \"android_session\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Android session count\",\n                    \"cast\": 0,\n                    \"id\": \"android_session\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"annual_revenue\": {\n                    \"app_state_id\": 711111,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"annual_revenue\",\n                    \"state_name\": \"annual_revenue\",\n                    \"description\": \"\",\n                    \"created_at\": 1676989935,\n                    \"state_cast\": 1,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 1,\n                    \"id\": \"annual_revenue\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"app_id\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"app_id\",\n                    \"state_name\": \"app_id\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"app_id\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"attribute_name_example_1\": {\n                    \"app_state_id\": 710598,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"attribute_name_example_1\",\n                    \"state_name\": \"attribute_name_example_1\",\n                    \"description\": \"\",\n                    \"created_at\": 1675937113,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"attribute_name_example_1\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"attribute_name_example_2\": {\n                    \"app_state_id\": 710599,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"attribute_name_example_2\",\n                    \"state_name\": \"attribute_name_example_2\",\n                    \"description\": \"\",\n                    \"created_at\": 1675937113,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"attribute_name_example_2\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"attribute_name_example_3\": {\n                    \"app_state_id\": 710600,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"attribute_name_example_3\",\n                    \"state_name\": \"attribute_name_example_3\",\n                    \"description\": \"\",\n                    \"created_at\": 1675937113,\n                    \"state_cast\": 1,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 1,\n                    \"id\": \"attribute_name_example_3\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"attribute_name_example_4\": {\n                    \"app_state_id\": 710601,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"attribute_name_example_4\",\n                    \"state_name\": \"attribute_name_example_4\",\n                    \"description\": \"\",\n                    \"created_at\": 1675937113,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"attribute_name_example_4\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"billing_address\": {\n                    \"app_state_id\": 702276,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"billing_address\",\n                    \"state_name\": \"billing_address\",\n                    \"description\": \"\",\n                    \"created_at\": 1661971093,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"billing_address\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"blog_url\": {\n                    \"app_state_id\": 711109,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"blog_url\",\n                    \"state_name\": \"blog_url\",\n                    \"description\": \"\",\n                    \"created_at\": 1676989935,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"blog_url\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"browser_language\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Browser Language\",\n                    \"state_name\": \"browser_language\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Browser Language of the last desktop session\",\n                    \"cast\": 0,\n                    \"id\": \"browser_language\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"browser_name\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Browser name\",\n                    \"state_name\": \"browser_name\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Browser name of the last desktop session\",\n                    \"cast\": 0,\n                    \"id\": \"browser_name\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"browser_version\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Browser Version\",\n                    \"state_name\": \"browser_version\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Browser Version of the last desktop session\",\n                    \"cast\": 0,\n                    \"id\": \"browser_version\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"ciao\": {\n                    \"app_state_id\": 686728,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"ciao\",\n                    \"state_name\": \"ciao\",\n                    \"description\": \"\",\n                    \"created_at\": 1655213940,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"ciao\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"city\": {\n                    \"app_state_id\": 15126,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"City\",\n                    \"state_name\": \"city\",\n                    \"description\": \"What is your city?2\",\n                    \"created_at\": 1609945587,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"What is your city?2\",\n                    \"cast\": 0,\n                    \"id\": \"city\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"company_name\": {\n                    \"app_state_id\": 711108,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"company_name\",\n                    \"state_name\": \"company_name\",\n                    \"description\": \"\",\n                    \"created_at\": 1676989935,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"company_name\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"continent\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Continent\",\n                    \"state_name\": \"continent\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Continent detected from the IP of the last session\",\n                    \"cast\": 0,\n                    \"id\": \"continent\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"country\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Country\",\n                    \"state_name\": \"country\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Country detected from the IP of the last session\",\n                    \"cast\": 0,\n                    \"id\": \"country\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"course\": {\n                    \"app_state_id\": 7442,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Course\",\n                    \"state_name\": \"course\",\n                    \"description\": \"232323323\",\n                    \"created_at\": 1569425857,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"232323323\",\n                    \"cast\": 0,\n                    \"id\": \"course\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"data_compleanno\": {\n                    \"app_state_id\": 686313,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"data compleanno\",\n                    \"state_name\": \"data_compleanno\",\n                    \"description\": \"233323\",\n                    \"created_at\": 1650494992,\n                    \"state_cast\": 2,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"233323\",\n                    \"cast\": 2,\n                    \"id\": \"data_compleanno\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"email\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Email\",\n                    \"state_name\": \"email\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"The email address\",\n                    \"cast\": 0,\n                    \"id\": \"email\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"employees\": {\n                    \"app_state_id\": 15712,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Employees\",\n                    \"state_name\": \"employees\",\n                    \"description\": \"How many company employees do you have?\",\n                    \"created_at\": 1614010458,\n                    \"state_cast\": 1,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"How many company employees do you have?\",\n                    \"cast\": 1,\n                    \"id\": \"employees\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"euid\": {\n                    \"app_state_id\": 701148,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"euid\",\n                    \"state_name\": \"euid\",\n                    \"description\": \"\",\n                    \"created_at\": 1658411361,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"euid\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"facebook\": {\n                    \"app_state_id\": 710535,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"facebook\",\n                    \"state_name\": \"facebook\",\n                    \"description\": \"\",\n                    \"created_at\": 1675872605,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"facebook\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"facebook_profile_id\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Facebook profile ID\",\n                    \"state_name\": \"facebook_profile_id\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Facebook profile ID\",\n                    \"cast\": 0,\n                    \"id\": \"facebook_profile_id\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"first_name\": {\n                    \"app_state_id\": 710530,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"first_name\",\n                    \"state_name\": \"first_name\",\n                    \"description\": \"\",\n                    \"created_at\": 1675872605,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"first_name\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"first_seen_at\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"First seen at\",\n                    \"state_name\": \"first_seen_at\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 2,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"First seen date/time of the contact\",\n                    \"cast\": 2,\n                    \"id\": \"first_seen_at\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"form_name\": {\n                    \"app_state_id\": 705774,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"form_name\",\n                    \"state_name\": \"form_name\",\n                    \"description\": \"\",\n                    \"created_at\": 1667758020,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"form_name\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"form_url\": {\n                    \"app_state_id\": 705775,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"form_url\",\n                    \"state_name\": \"form_url\",\n                    \"description\": \"\",\n                    \"created_at\": 1667758444,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"form_url\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"gclid\": {\n                    \"app_state_id\": 12329,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Gclid\",\n                    \"state_name\": \"gclid\",\n                    \"description\": \"\",\n                    \"created_at\": 1594392345,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"gclid\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"github\": {\n                    \"app_state_id\": 710534,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"github\",\n                    \"state_name\": \"github\",\n                    \"description\": \"\",\n                    \"created_at\": 1675872605,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"github\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"industry\": {\n                    \"app_state_id\": 711110,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"industry\",\n                    \"state_name\": \"industry\",\n                    \"description\": \"\",\n                    \"created_at\": 1676989935,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"industry\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"interest\": {\n                    \"app_state_id\": 7585,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Interest\",\n                    \"state_name\": \"interest\",\n                    \"description\": \"Which course are you interested in?\",\n                    \"created_at\": 1570032495,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"Which course are you interested in?\",\n                    \"cast\": 0,\n                    \"id\": \"interest\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"ios_app_name\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"iOS app name\",\n                    \"state_name\": \"ios_app_name\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"iOS app name of the last iOS session\",\n                    \"cast\": 0,\n                    \"id\": \"ios_app_name\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"ios_app_version\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"iOS app version\",\n                    \"state_name\": \"ios_app_version\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"iOS app version of the last iOS session\",\n                    \"cast\": 0,\n                    \"id\": \"ios_app_version\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"ios_device\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"iOS device\",\n                    \"state_name\": \"ios_device\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"iOS device of the last iOS session\",\n                    \"cast\": 0,\n                    \"id\": \"ios_device\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"ios_last_seen_at\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"iOS last session at\",\n                    \"state_name\": \"ios_last_seen_at\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 2,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"iOS last seen date/time on an iOS session\",\n                    \"cast\": 2,\n                    \"id\": \"ios_last_seen_at\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"ios_os_version\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"iOS version\",\n                    \"state_name\": \"ios_os_version\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"iOS OS version of the last iOS session\",\n                    \"cast\": 0,\n                    \"id\": \"ios_os_version\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"ios_session\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"iOS session count\",\n                    \"state_name\": \"ios_session\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"iOS session count\",\n                    \"cast\": 0,\n                    \"id\": \"ios_session\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"ip_address\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"IP address\",\n                    \"state_name\": \"ip_address\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"IP address of the last session\",\n                    \"cast\": 0,\n                    \"id\": \"ip_address\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"ipaddress\": {\n                    \"app_state_id\": 705768,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"ipaddress\",\n                    \"state_name\": \"ipaddress\",\n                    \"description\": \"\",\n                    \"created_at\": 1667757078,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"ipaddress\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"isp\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"ISP\",\n                    \"state_name\": \"isp\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"ISP detected from the IP of the last session\",\n                    \"cast\": 0,\n                    \"id\": \"isp\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"last_activity\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Last activity at\",\n                    \"state_name\": \"last_activity\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 2,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Last activity date/time\",\n                    \"cast\": 2,\n                    \"id\": \"last_activity\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"last_name\": {\n                    \"app_state_id\": 10125,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Last name\",\n                    \"state_name\": \"last_name\",\n                    \"description\": \"Boh something here\",\n                    \"created_at\": 1585927547,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"Boh something here\",\n                    \"cast\": 0,\n                    \"id\": \"last_name\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"last_page_viewed\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Last page viewed\",\n                    \"state_name\": \"last_page_viewed\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Last page viewed url\",\n                    \"cast\": 0,\n                    \"id\": \"last_page_viewed\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"last_page_viewed_at\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Last page viewed at\",\n                    \"state_name\": \"last_page_viewed_at\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 2,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Last page viewed date/time\",\n                    \"cast\": 2,\n                    \"id\": \"last_page_viewed_at\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"last_update\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"last_update\",\n                    \"state_name\": \"last_update\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"last_update\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"latest_funding_round_date\": {\n                    \"app_state_id\": 711113,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"latest_funding_round_date\",\n                    \"state_name\": \"latest_funding_round_date\",\n                    \"description\": \"\",\n                    \"created_at\": 1676989935,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"latest_funding_round_date\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"license_expire_at\": {\n                    \"app_state_id\": 6086,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"License expire at\",\n                    \"state_name\": \"license_expire_at\",\n                    \"description\": \"\",\n                    \"created_at\": 1561536850,\n                    \"state_cast\": 2,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 2,\n                    \"id\": \"license_expire_at\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"linkedin\": {\n                    \"app_state_id\": 710531,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"linkedin\",\n                    \"state_name\": \"linkedin\",\n                    \"description\": \"\",\n                    \"created_at\": 1675872605,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"linkedin\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"list\": {\n                    \"app_state_id\": 10124,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"List\",\n                    \"state_name\": \"list\",\n                    \"description\": \"\",\n                    \"created_at\": 1585927056,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"list\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"m\": {\n                    \"app_state_id\": 684249,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"M\",\n                    \"state_name\": \"m\",\n                    \"description\": \"\",\n                    \"created_at\": 1634216567,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"m\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"marketing\": {\n                    \"app_state_id\": 11586,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Marketing\",\n                    \"state_name\": \"marketing\",\n                    \"description\": \"Ci permetti?\",\n                    \"created_at\": 1591712076,\n                    \"state_cast\": 3,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"Ci permetti?\",\n                    \"cast\": 3,\n                    \"id\": \"marketing\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"my_attribute\": {\n                    \"app_state_id\": 13124,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"My attribute\",\n                    \"state_name\": \"my_attribute\",\n                    \"description\": \"\",\n                    \"created_at\": 1598866899,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"my_attribute\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"name\": {\n                    \"app_state_id\": 15711,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Name\",\n                    \"state_name\": \"name\",\n                    \"description\": \"How can we call you?\",\n                    \"created_at\": 1614009254,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"How can we call you?\",\n                    \"cast\": 0,\n                    \"id\": \"name\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"netflix\": {\n                    \"app_state_id\": 686312,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"netflix\",\n                    \"state_name\": \"netflix\",\n                    \"description\": \"\",\n                    \"created_at\": 1650494959,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"getting cooler\",\n                    \"cast\": 0,\n                    \"id\": \"netflix\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"nps_vote\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"NPS vote\",\n                    \"state_name\": \"nps_vote\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 1,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Last NPS vote\",\n                    \"cast\": 1,\n                    \"id\": \"nps_vote\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"os\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"OS\",\n                    \"state_name\": \"os\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Desktop OS of the last desktop session\",\n                    \"cast\": 0,\n                    \"id\": \"os\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"os_version\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"OS version\",\n                    \"state_name\": \"os_version\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Desktop OS version of the last desktop session\",\n                    \"cast\": 0,\n                    \"id\": \"os_version\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"phone\": {\n                    \"app_state_id\": 7469,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Phone\",\n                    \"state_name\": \"phone\",\n                    \"description\": \"What's the best way to reach out?\",\n                    \"created_at\": 1569510867,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"What's the best way to reach out?\",\n                    \"cast\": 0,\n                    \"id\": \"phone\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"phone_number\": {\n                    \"app_state_id\": 702275,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"phone_number\",\n                    \"state_name\": \"phone_number\",\n                    \"description\": \"\",\n                    \"created_at\": 1661971089,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"phone_number\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"plan\": {\n                    \"app_state_id\": 701234,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"plan\",\n                    \"state_name\": \"plan\",\n                    \"description\": \"\",\n                    \"created_at\": 1659001398,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"plan\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"plan_type\": {\n                    \"app_state_id\": 6085,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Plan type\",\n                    \"state_name\": \"plan_type\",\n                    \"description\": \"\",\n                    \"created_at\": 1561536850,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"plan_type\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"postal_code\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"ZIP code\",\n                    \"state_name\": \"postal_code\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"ZIP code detected from the IP of the last session\",\n                    \"cast\": 0,\n                    \"id\": \"postal_code\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"preview\": {\n                    \"app_state_id\": 705772,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"preview\",\n                    \"state_name\": \"preview\",\n                    \"description\": \"\",\n                    \"created_at\": 1667758020,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"preview\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"preview_id\": {\n                    \"app_state_id\": 705770,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"preview_id\",\n                    \"state_name\": \"preview_id\",\n                    \"description\": \"\",\n                    \"created_at\": 1667758020,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"preview_id\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"preview_nonce\": {\n                    \"app_state_id\": 705771,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"preview_nonce\",\n                    \"state_name\": \"preview_nonce\",\n                    \"description\": \"\",\n                    \"created_at\": 1667758020,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"preview_nonce\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"priority\": {\n                    \"app_state_id\": 700992,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"priority\",\n                    \"state_name\": \"priority\",\n                    \"description\": \"\",\n                    \"created_at\": 1656927435,\n                    \"state_cast\": 1,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 1,\n                    \"id\": \"priority\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"rating\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Rating\",\n                    \"state_name\": \"rating\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 1,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Rating\",\n                    \"cast\": 1,\n                    \"id\": \"rating\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"ref\": {\n                    \"app_state_id\": 705776,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"ref\",\n                    \"state_name\": \"ref\",\n                    \"description\": \"\",\n                    \"created_at\": 1667759813,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"ref\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"referrer\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Referrer\",\n                    \"state_name\": \"referrer\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Referrer\",\n                    \"cast\": 0,\n                    \"id\": \"referrer\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"region\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Region\",\n                    \"state_name\": \"region\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Region detected from the IP of the last session\",\n                    \"cast\": 0,\n                    \"id\": \"region\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"region_code\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Region code\",\n                    \"state_name\": \"region_code\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Region code detected from the IP of the last session\",\n                    \"cast\": 0,\n                    \"id\": \"region_code\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"revenues\": {\n                    \"app_state_id\": 704085,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"revenues\",\n                    \"state_name\": \"revenues\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921392,\n                    \"state_cast\": 1,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 1,\n                    \"id\": \"revenues\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"spoken_language\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Spoken Language\",\n                    \"state_name\": \"spoken_language\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Spoken Language manually set for the contact\",\n                    \"cast\": 0,\n                    \"id\": \"spoken_language\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"stato_ticket\": {\n                    \"app_state_id\": 709388,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Stato Ticket\",\n                    \"state_name\": \"stato_ticket\",\n                    \"description\": \"\",\n                    \"created_at\": 1674138550,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"stato_ticket\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"store\": {\n                    \"app_state_id\": 701235,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"store\",\n                    \"state_name\": \"store\",\n                    \"description\": \"\",\n                    \"created_at\": 1659001398,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"store\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"store_url\": {\n                    \"app_state_id\": 701236,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"store_url\",\n                    \"state_name\": \"store_url\",\n                    \"description\": \"\",\n                    \"created_at\": 1659001399,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"store_url\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"task\": {\n                    \"app_state_id\": 709389,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Task\",\n                    \"state_name\": \"task\",\n                    \"description\": \"\",\n                    \"created_at\": 1674138564,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"task\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"test\": {\n                    \"app_state_id\": 685222,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Test\",\n                    \"state_name\": \"test\",\n                    \"description\": \"\",\n                    \"created_at\": 1640273629,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"test\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"test_attribute\": {\n                    \"app_state_id\": 685449,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Test attribute\",\n                    \"state_name\": \"test_attribute\",\n                    \"description\": \"Test_attribute\",\n                    \"created_at\": 1642851218,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"Test_attribute\",\n                    \"cast\": 0,\n                    \"id\": \"test_attribute\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"test_attribute_2\": {\n                    \"app_state_id\": 685450,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Test attribute 2\",\n                    \"state_name\": \"test_attribute_2\",\n                    \"description\": \"Test_attribute_2\",\n                    \"created_at\": 1642852411,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"Test_attribute_2\",\n                    \"cast\": 0,\n                    \"id\": \"test_attribute_2\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"test_attribute_3\": {\n                    \"app_state_id\": 685455,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Test attribute 3\",\n                    \"state_name\": \"test_attribute_3\",\n                    \"description\": \"Test_attribute_3\",\n                    \"created_at\": 1642854649,\n                    \"state_cast\": 3,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"Test_attribute_3\",\n                    \"cast\": 3,\n                    \"id\": \"test_attribute_3\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"test_attribute_4\": {\n                    \"app_state_id\": 685496,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Test attribute 4\",\n                    \"state_name\": \"test_attribute_4\",\n                    \"description\": \"Test_attribute_4\",\n                    \"created_at\": 1643060576,\n                    \"state_cast\": 2,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"Test_attribute_4\",\n                    \"cast\": 2,\n                    \"id\": \"test_attribute_4\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"test_attribute_date\": {\n                    \"app_state_id\": 685451,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"test attribute date\",\n                    \"state_name\": \"test_attribute_date\",\n                    \"description\": \"Test_attribute_date\",\n                    \"created_at\": 1642852440,\n                    \"state_cast\": 2,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"Test_attribute_date\",\n                    \"cast\": 2,\n                    \"id\": \"test_attribute_date\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"test_date\": {\n                    \"app_state_id\": 685452,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"test date\",\n                    \"state_name\": \"test_date\",\n                    \"description\": \"Test_date\",\n                    \"created_at\": 1642852521,\n                    \"state_cast\": 2,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"Test_date\",\n                    \"cast\": 2,\n                    \"id\": \"test_date\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"test_property\": {\n                    \"app_state_id\": 685453,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"test property\",\n                    \"state_name\": \"test_property\",\n                    \"description\": \"Test_property\",\n                    \"created_at\": 1642852766,\n                    \"state_cast\": 1,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"Test_property\",\n                    \"cast\": 1,\n                    \"id\": \"test_property\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"test_string\": {\n                    \"app_state_id\": 3509,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"test_string\",\n                    \"state_name\": \"test_string\",\n                    \"description\": \"test_string\",\n                    \"created_at\": 1538064722,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"test_string\",\n                    \"cast\": 0,\n                    \"id\": \"test_string\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"timezone\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Time zone\",\n                    \"state_name\": \"timezone\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Time zone detected from the IP of the last session\",\n                    \"cast\": 0,\n                    \"id\": \"timezone\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"title\": {\n                    \"app_state_id\": 710532,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"title\",\n                    \"state_name\": \"title\",\n                    \"description\": \"\",\n                    \"created_at\": 1675872605,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"title\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"total_funding\": {\n                    \"app_state_id\": 711112,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"total_funding\",\n                    \"state_name\": \"total_funding\",\n                    \"description\": \"\",\n                    \"created_at\": 1676989935,\n                    \"state_cast\": 1,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 1,\n                    \"id\": \"total_funding\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"twitter\": {\n                    \"app_state_id\": 710533,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"twitter\",\n                    \"state_name\": \"twitter\",\n                    \"description\": \"\",\n                    \"created_at\": 1675872605,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"twitter\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"user_id\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Contact ID\",\n                    \"state_name\": \"user_id\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"The identifier of the contact\",\n                    \"cast\": 0,\n                    \"id\": \"user_id\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"user_type\": {\n                    \"app_state_id\": 702085,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"user_type\",\n                    \"state_name\": \"user_type\",\n                    \"description\": \"\",\n                    \"created_at\": 1661783779,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"user_type\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"username\": {\n                    \"app_state_id\": 689,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Username\",\n                    \"state_name\": \"username\",\n                    \"description\": \"Username\",\n                    \"created_at\": 1426334565,\n                    \"state_cast\": 1,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 1,\n                    \"editable\": 1,\n                    \"displayable_description\": \"Username\",\n                    \"cast\": 1,\n                    \"id\": \"username\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"utm_campaign\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"UTM campaign\",\n                    \"state_name\": \"utm_campaign\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"UTM campaign\",\n                    \"cast\": 0,\n                    \"id\": \"utm_campaign\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"utm_content\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"UTM content\",\n                    \"state_name\": \"utm_content\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"UTM content\",\n                    \"cast\": 0,\n                    \"id\": \"utm_content\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"utm_medium\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"UTM medium\",\n                    \"state_name\": \"utm_medium\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"UTM medium\",\n                    \"cast\": 0,\n                    \"id\": \"utm_medium\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"utm_souce\": {\n                    \"app_state_id\": 705773,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"utm_souce\",\n                    \"state_name\": \"utm_souce\",\n                    \"description\": \"\",\n                    \"created_at\": 1667758020,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"utm_souce\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"utm_source\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"UTM source\",\n                    \"state_name\": \"utm_source\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"UTM source\",\n                    \"cast\": 0,\n                    \"id\": \"utm_source\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"utm_term\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"UTM term\",\n                    \"state_name\": \"utm_term\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"UTM term\",\n                    \"cast\": 0,\n                    \"id\": \"utm_term\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"was_lead\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"was_lead\",\n                    \"state_name\": \"was_lead\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 3,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"\",\n                    \"cast\": 3,\n                    \"id\": \"was_lead\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"web_session\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Session count\",\n                    \"state_name\": \"web_session\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 1,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Desktop session count\",\n                    \"cast\": 1,\n                    \"id\": \"web_session\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                },\n                \"website\": {\n                    \"app_state_id\": 704084,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"website\",\n                    \"state_name\": \"website\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921392,\n                    \"state_cast\": 0,\n                    \"state_subject\": 0,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"website\",\n                    \"type\": \"state\",\n                    \"hidden\": 0\n                }\n            },\n            \"company_states\": {\n                \"1\": {\n                    \"app_state_id\": 683739,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"company\",\n                    \"state_name\": \"1\",\n                    \"description\": \"\",\n                    \"created_at\": 1632904869,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"asdasd\",\n                    \"cast\": 0,\n                    \"id\": \"1\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"address\": {\n                    \"app_state_id\": 704072,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"address\",\n                    \"state_name\": \"address\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921391,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"address\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"admin_url\": {\n                    \"app_state_id\": 704075,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"admin_url\",\n                    \"state_name\": \"admin_url\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921391,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"admin_url\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"city\": {\n                    \"app_state_id\": 704073,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"city\",\n                    \"state_name\": \"city\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921391,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"city\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"company_id\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Company ID\",\n                    \"state_name\": \"company_id\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"The identifier of the company\",\n                    \"cast\": 0,\n                    \"id\": \"company_id\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"company_size\": {\n                    \"app_state_id\": 6090,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Company size\",\n                    \"state_name\": \"company_size\",\n                    \"description\": \"\",\n                    \"created_at\": 1561538169,\n                    \"state_cast\": 1,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 1,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 1,\n                    \"id\": \"company_size\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"created_at\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Created at\",\n                    \"state_name\": \"created_at\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 2,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Company creation date/time\",\n                    \"cast\": 2,\n                    \"id\": \"created_at\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"domain\": {\n                    \"app_state_id\": 704083,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"domain\",\n                    \"state_name\": \"domain\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921392,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"domain\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"employees\": {\n                    \"app_state_id\": 704074,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"employees\",\n                    \"state_name\": \"employees\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921391,\n                    \"state_cast\": 1,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 1,\n                    \"id\": \"employees\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"integration_status\": {\n                    \"app_state_id\": 504,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Integration status\",\n                    \"state_name\": \"integration_status\",\n                    \"description\": \"\",\n                    \"created_at\": 1426334565,\n                    \"state_cast\": 3,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 3,\n                    \"id\": \"integration_status\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"last_payment_amount\": {\n                    \"app_state_id\": 704081,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"last_payment_amount\",\n                    \"state_name\": \"last_payment_amount\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921391,\n                    \"state_cast\": 1,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 1,\n                    \"id\": \"last_payment_amount\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"last_seen_at\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Last seen at\",\n                    \"state_name\": \"last_seen_at\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 2,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"Company last seen date/time\",\n                    \"cast\": 2,\n                    \"id\": \"last_seen_at\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"license_expire_at\": {\n                    \"app_state_id\": 6089,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"License expire at\",\n                    \"state_name\": \"license_expire_at\",\n                    \"description\": \"\",\n                    \"created_at\": 1561538169,\n                    \"state_cast\": 2,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 2,\n                    \"id\": \"license_expire_at\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"name\": {\n                    \"app_state_id\": null,\n                    \"app_id\": null,\n                    \"state_displayable_name\": \"Name\",\n                    \"state_name\": \"name\",\n                    \"description\": \"\",\n                    \"created_at\": null,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 0,\n                    \"displayable_description\": \"The name of the company\",\n                    \"cast\": 0,\n                    \"id\": \"name\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"phone\": {\n                    \"app_state_id\": 710529,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"phone\",\n                    \"state_name\": \"phone\",\n                    \"description\": \"\",\n                    \"created_at\": 1675871189,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"phone\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"plan\": {\n                    \"app_state_id\": 15599,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Plan\",\n                    \"state_name\": \"plan\",\n                    \"description\": \"\",\n                    \"created_at\": 1613131747,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"plan\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"plan_type\": {\n                    \"app_state_id\": 704579,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"plan_type\",\n                    \"state_name\": \"plan_type\",\n                    \"description\": \"\",\n                    \"created_at\": 1665779267,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"plan_type\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"sub_amount\": {\n                    \"app_state_id\": 704079,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"sub_amount\",\n                    \"state_name\": \"sub_amount\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921391,\n                    \"state_cast\": 1,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 1,\n                    \"id\": \"sub_amount\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"sub_currency\": {\n                    \"app_state_id\": 704080,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"sub_currency\",\n                    \"state_name\": \"sub_currency\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921391,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"sub_currency\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"sub_name\": {\n                    \"app_state_id\": 704076,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"sub_name\",\n                    \"state_name\": \"sub_name\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921391,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"sub_name\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"sub_period\": {\n                    \"app_state_id\": 704077,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"sub_period\",\n                    \"state_name\": \"sub_period\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921391,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"sub_period\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"sub_state\": {\n                    \"app_state_id\": 704078,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"sub_state\",\n                    \"state_name\": \"sub_state\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921391,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 0,\n                    \"id\": \"sub_state\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"test_attribute1\": {\n                    \"app_state_id\": 685456,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Test attribute1\",\n                    \"state_name\": \"test_attribute1\",\n                    \"description\": \"Test_attribute1\",\n                    \"created_at\": 1642856075,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"Test_attribute1\",\n                    \"cast\": 0,\n                    \"id\": \"test_attribute1\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"test_attribute_4\": {\n                    \"app_state_id\": 685457,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"Test attribute 4\",\n                    \"state_name\": \"test_attribute_4\",\n                    \"description\": \"Test_attribute_4\",\n                    \"created_at\": 1642856285,\n                    \"state_cast\": 0,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"Test_attribute_4\",\n                    \"cast\": 0,\n                    \"id\": \"test_attribute_4\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                },\n                \"total_revenues\": {\n                    \"app_state_id\": 704082,\n                    \"app_id\": \"007b9e3f\",\n                    \"state_displayable_name\": \"total_revenues\",\n                    \"state_name\": \"total_revenues\",\n                    \"description\": \"\",\n                    \"created_at\": 1664921391,\n                    \"state_cast\": 1,\n                    \"state_subject\": 1,\n                    \"options\": null,\n                    \"archived\": 0,\n                    \"editable\": 1,\n                    \"displayable_description\": \"\",\n                    \"cast\": 1,\n                    \"id\": \"total_revenues\",\n                    \"type\": \"company_state\",\n                    \"hidden\": 0\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"ae9080e8-bdca-4826-acab-190f98322a45"},{"name":"GET Leads List","id":"cdb33002-4f43-4cd9-966d-a1bc5d312ad5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.customerly.io/v1/leads/list?page=0&per_page=50&sort=name&sort_direction=asc","description":"<p>Fetch all the details of a single User searching by email.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","leads","list"],"host":["api","customerly","io"],"query":[{"key":"page","value":"0"},{"key":"per_page","value":"50"},{"key":"sort","value":"name"},{"key":"sort_direction","value":"asc"}],"variable":[]}},"response":[{"id":"275b979c-6277-4682-962b-c4651a93f853","name":"Leads List Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.customerly.io/v1/leads/list?page=0&per_page=50&sort=name&sort_direction=asc","protocol":"https","host":["api","customerly","io"],"path":["v1","leads","list"],"query":[{"key":"page","value":"0"},{"key":"per_page","value":"50"},{"key":"sort","value":"name"},{"key":"sort_direction","value":"asc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 16:56:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=m5mxjjTRhiec27RUuLGEyvLUnTwuUstWo1Q5p7LJupWbnwJgvM6CHFo0vv2Chw0OR7hOQwX93skmaHn163H+XEYNBpl4m5mGk01fUpADtYJb1I9/iDLt+72yZtQ6; Expires=Thu, 31 Aug 2023 16:56:15 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=m5mxjjTRhiec27RUuLGEyvLUnTwuUstWo1Q5p7LJupWbnwJgvM6CHFo0vv2Chw0OR7hOQwX93skmaHn163H+XEYNBpl4m5mGk01fUpADtYJb1I9/iDLt+72yZtQ6; Expires=Thu, 31 Aug 2023 16:56:15 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"results\": {\n            \"total\": 1,\n            \"matched\": 1,\n            \"bounces\": 0,\n            \"unsubscribes\": 0\n        },\n        \"leads\": [\n            {\n                \"rating\": null,\n                \"was_lead\": 1,\n                \"ip_address\": null,\n                \"isp\": null,\n                \"city\": null,\n                \"continent\": null,\n                \"continent_code\": null,\n                \"country\": null,\n                \"country_code\": null,\n                \"region\": null,\n                \"region_code\": null,\n                \"postal_code\": null,\n                \"spoken_language\": null,\n                \"latitude\": null,\n                \"longitude\": null,\n                \"timezone\": null,\n                \"browser_language\": null,\n                \"browser_name\": null,\n                \"browser_version\": null,\n                \"last_page_viewed\": null,\n                \"last_page_viewed_at\": null,\n                \"os\": null,\n                \"os_version\": null,\n                \"web_session\": null,\n                \"android_app_name\": null,\n                \"android_app_version\": null,\n                \"android_device\": null,\n                \"android_last_seen_at\": null,\n                \"android_os_version\": null,\n                \"android_session\": null,\n                \"ios_app_name\": null,\n                \"ios_app_version\": null,\n                \"ios_device\": null,\n                \"ios_last_seen_at\": null,\n                \"ios_os_version\": null,\n                \"ios_session\": null,\n                \"spam\": 0,\n                \"bounce\": 0,\n                \"unsubscribe\": 0,\n                \"referrer\": null,\n                \"utm_campaign\": \"Remarketing\",\n                \"utm_content\": null,\n                \"utm_medium\": \"ppc\",\n                \"utm_source\": \"meta\",\n                \"utm_term\": null,\n                \"nps_vote\": null,\n                \"picture_background\": \"ab734d\",\n                \"picture_gravatar\": 0,\n                \"picture_gravatar_last_update\": 0,\n                \"picture_initials\": \"L\",\n                \"first_seen_at\": 1692896128,\n                \"last_activity\": null,\n                \"last_update\": \"2023-08-24 16:55:28\",\n                \"attributes\": {\n                    \"phone_number\": \"+353939200221\",\n                    \"revenues\": \"180000\",\n                    \"website\": \"https://www.customerly.io\"\n                },\n                \"crmhero_user_id\": 29911435,\n                \"app_id\": \"007b9e3f\",\n                \"email\": \"luke@customerly.io\",\n                \"user_id\": null,\n                \"facebook_profile_id\": null,\n                \"name\": \"Luke\",\n                \"is_user\": 0,\n                \"is_name_autogenerated\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"cdb33002-4f43-4cd9-966d-a1bc5d312ad5"},{"name":"Create or Update Leads","id":"95ed176c-6727-46b2-be20-bf41ccf609f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n       \"leads\":[\n          {\n             \"email\":\"luke@customerly.io\",\n             \"name\": \"Luke\",\n             \"attributes\": {\n                \"phone_number\" : \"+353939200221\",\n                \"revenues\" : 180000,\n                \"website\" : \"https://www.customerly.io\",\n                \"utm_medium\" : \"ppc\",\n                \"utm_campaign\" : \"Remarketing\",\n                \"utm_source\": \"meta\"\n             },\n             \"tags\":[\n                \"onboarding\",\n                \"remarketing\"\n             ]\n          }\n       ]\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/leads","description":"<p>The Leads endpoint allows you to create or update leads within Customerly, along with any custom attributes and tags. This integration is particularly beneficial for lead generation campaigns, enabling you to pass leads to Customerly seamlessly and trigger personalized email sequences and workflows.</p>\n<h4 id=\"benefits-of-using-leads-endpoint\"><strong>Benefits of Using Leads Endpoint</strong></h4>\n<ul>\n<li><p><strong>Lead Integration</strong>: Easily pass leads from your platform to Customerly, ensuring that all relevant data is captured and managed efficiently.</p>\n</li>\n<li><p><strong>Email Sequences</strong>: Fire automated email sequences tailored to the lead's attributes, enhancing engagement and conversion.</p>\n</li>\n<li><p><strong>Workflow Automation</strong>: Trigger specific workflows based on lead attributes, facilitating targeted marketing and sales efforts.</p>\n</li>\n<li><p><strong>Dynamic Property Management</strong>: Whenever a new property (or attribute) is passed to this endpoint, it will be registered as a new property in Customerly, allowing for dynamic data handling.</p>\n</li>\n</ul>\n<h4 id=\"components-of-a-lead-property\"><strong>Components of a Lead Property</strong></h4>\n<ul>\n<li><p><strong>Name</strong>: The identifier of the property, such as <code>phone_number</code>.</p>\n</li>\n<li><p><strong>Description</strong> (optional): An internal description to help you recognize the property.</p>\n</li>\n<li><p><strong>Value</strong>: The specific value you want to store for each lead for this property.</p>\n</li>\n<li><p><strong>Type</strong>: The type of value you will store, such as text, number, boolean, or date.</p>\n</li>\n</ul>\n<h4 id=\"example\"><strong>Example</strong></h4>\n<p>For example, the <code>phone_number</code> property might have a name of \"Phone Number,\" a type of \"text,\" and store individual phone numbers as values for different leads.</p>\n<h3 id=\"further-reading\">Further Reading</h3>\n<p>Contact properties can be powerful tools in managing and understanding your customer base. For a detailed guide on how to utilize contact properties within Customerly, including creating custom properties and managing default ones, refer to:</p>\n<ul>\n<li><a href=\"https://docs.customerly.io/en/contacts-lists-and-companies/a-complete-guide-about-contact-properties\">A Complete Guide About Contact Properties</a></li>\n</ul>\n<p>This guide provides step-by-step instructions and best practices for working with contact properties in your Customerly account.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","leads"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[{"id":"24df85c3-ece3-48bb-971b-7f7ad1fc4a0d","name":"Create or Update Lead","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n       \"leads\":[\n          {\n             \"email\":\"luke@customerly.io\",\n             \"name\": \"Luke\",\n             \"attributes\": {\n                \"phone_number\" : \"+353939200221\",\n                \"revenues\" : 180000,\n                \"website\" : \"https://www.customerly.io\",\n                \"utm_medium\" : \"ppc\",\n                \"utm_campaign\" : \"Remarketing\",\n                \"utm_source\": \"meta\"\n             },\n             \"tags\":[\n                \"onboarding\",\n                \"remarketing\"\n             ]\n          }\n       ]\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/leads"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 16:33:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=KyTLfklRpBLIPBYpcmeurgapNBS080LXFDgkomazhbTr0lnAUlJKNq4FeNBuEE+IlleNyeMqFIVIH/6sr8F4xS9NUmVL/K/3JogXFSJRCDp3JDjl9SXhAHO90S+M; Expires=Thu, 31 Aug 2023 16:33:32 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=KyTLfklRpBLIPBYpcmeurgapNBS080LXFDgkomazhbTr0lnAUlJKNq4FeNBuEE+IlleNyeMqFIVIH/6sr8F4xS9NUmVL/K/3JogXFSJRCDp3JDjl9SXhAHO90S+M; Expires=Thu, 31 Aug 2023 16:33:32 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"inserted\": 1,\n        \"not_added\": [],\n        \"errors\": []\n    }\n}"}],"_postman_id":"95ed176c-6727-46b2-be20-bf41ccf609f9"},{"name":"Delete Lead by Email","id":"0a78e466-65d9-4346-b575-77215a050692","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.customerly.io/v1/leads?email=luke@customerly.io","description":"<p>This endpoint allows you to permanently delete a contact from Customerly based on the email.</p>\n<p><strong>⚠️ This action is irreversible, so it should be used with caution</strong>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","leads"],"host":["api","customerly","io"],"query":[{"key":"email","value":"luke@customerly.io"}],"variable":[]}},"response":[{"id":"aeb6b7fe-0161-4c38-9f5e-e841043a0deb","name":"Delete User by Email","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.customerly.io/v1/users?email=elena@customerly.io","protocol":"https","host":["api","customerly","io"],"path":["v1","users"],"query":[{"key":"email","value":"elena@customerly.io"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 16:22:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=psoY7K51ErQr2p1hs62gqHvnQw9LA84IMqb0iHGihoJA6PIJofo4zWXivnOPeUar7EvnRVjbjE1tZZ/ZdihrT4/cfLU5TL72SRqS2FqLNphvv+dqxaizFcV3QBEJ; Expires=Thu, 31 Aug 2023 16:22:39 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=psoY7K51ErQr2p1hs62gqHvnQw9LA84IMqb0iHGihoJA6PIJofo4zWXivnOPeUar7EvnRVjbjE1tZZ/ZdihrT4/cfLU5TL72SRqS2FqLNphvv+dqxaizFcV3QBEJ; Expires=Thu, 31 Aug 2023 16:22:39 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {}\n}"}],"_postman_id":"0a78e466-65d9-4346-b575-77215a050692"}],"id":"c3100ddf-d5ad-4397-be44-3f8bdb9b3e07","description":"<p><strong>Leads</strong> are individuals who initiate a conversation through Live Chat on your platform or submit a form on your landing page. Unlike registered users, leads may not have comprehensive profiles but are identifiable by their interactions and contact details, such as email addresses.</p>\n<p><strong>Example</strong>: Someone who starts a conversation on your website via the Live Chat widget.</p>\n<p><strong>Interaction</strong>: Engagement through Live Chat, often an entry point into your sales or support funnel.</p>\n<p><strong>Data Collected</strong>: Email, name (if provided), and the conversation history.</p>\n<p><strong>Integration Opportunities with Customerly's Leads REST API</strong>:</p>\n<ul>\n<li><p><strong>Collect Leads Through Live Chat</strong>: Every email collected through the live chat can be seamlessly integrated as a Lead within Customerly.</p>\n</li>\n<li><p><strong>Facebook Ads Connection</strong>: You can connect your Facebook Ads to Customerly, enabling lead collection directly from advertising campaigns.</p>\n</li>\n<li><p><strong>Automate Funnels</strong>: Utilize Zapier to create automated funnels that guide leads through specific pathways, enhancing lead nurturing and conversion.</p>\n</li>\n<li><p><strong>Trigger Email Sequences</strong>: Implement personalized email sequences for leads based on their attributes or interactions.</p>\n</li>\n</ul>\n<p><strong>Benefits of Using the Leads REST API</strong>:</p>\n<ul>\n<li><p><strong>Unified Lead Management</strong>: Consolidate leads from different sources, including Live Chat and Facebook Ads, into a single platform.</p>\n</li>\n<li><p><strong>Automated Engagement</strong>: Create tailored email sequences and workflows to engage leads at the right time with the right message.</p>\n</li>\n<li><p><strong>Enhanced Conversion</strong>: By understanding and interacting with leads effectively, you can increase conversion rates and move leads further down the sales funnel.</p>\n</li>\n</ul>\n","_postman_id":"c3100ddf-d5ad-4397-be44-3f8bdb9b3e07","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}}},{"name":"Tags","item":[{"name":"Get Tags List","id":"d478fe0e-fc69-48b5-a405-cc8e2d948ce3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/tags","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","tags"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[{"id":"c762fbf4-0f2a-4863-8ec9-4938f58ae39f","name":"Tags List","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 16:51:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"close"},{"key":"Set-Cookie","value":"AWSALB=MMd5roGmrFrPin/8KOY71ia4dEoVg2MhdBao1Go6YIueTR0+8zz+0KAKQTh2/0QMojkV2mG46dJ7s3GdudsJv5G5+hrt8zCpYVWW6mToXXdA7MhrRwiX0w/kC/a2; Expires=Thu, 31 Aug 2023 16:51:35 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=MMd5roGmrFrPin/8KOY71ia4dEoVg2MhdBao1Go6YIueTR0+8zz+0KAKQTh2/0QMojkV2mG46dJ7s3GdudsJv5G5+hrt8zCpYVWW6mToXXdA7MhrRwiX0w/kC/a2; Expires=Thu, 31 Aug 2023 16:51:35 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        \"ciao\",\n        \"onboarding\",\n        \"remarketing\",\n        \"tools\"\n    ]\n}"}],"_postman_id":"d478fe0e-fc69-48b5-a405-cc8e2d948ce3"},{"name":"Add Tags to List of Users or Leads","id":"998678f0-6e15-4d67-ab51-4928d0453252","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n   \"tag\":\"onboarding\",\n   \"untag\":false,\n   \"users\":[\n      {\n         \"user_id\":1\n      },\n      {\n         \"user_id\":2\n      },\n      {\n         \"email\":\"luke@customerly.io\"\n      }\n   ],\n   \"leads\":[\n      {\n         \"email\":\"luke@customerly.io\"\n      }\n   ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/tags","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","tags"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"998678f0-6e15-4d67-ab51-4928d0453252"}],"id":"601fd97e-d4b0-47dc-b355-e84c231f6cd5","description":"<p>Tags play a crucial role in categorizing, filtering, and targeting specific segments within your contact base. They enable a more personalized and efficient approach to email marketing automation, allowing you to align your communication with specific attributes or behaviors.</p>\n<h4 id=\"what-is-a-tag\"><strong>What is a Tag?</strong></h4>\n<p>Tags are labels or identifiers used to categorize something or someone within Customerly. Unlike properties, which consist of a name and value, tags are simple descriptors.</p>\n<ul>\n<li><strong>Example</strong>: If you have identified users as happy customers through a survey, you can assign the tag \"happycustomers\" to them. This allows for targeted communication with this segment in the future.</li>\n</ul>\n<h4 id=\"how-can-you-tag-a-contact\"><strong>How Can You Tag a Contact?</strong></h4>\n<p>You can assign tags to your contacts in several ways:</p>\n<ul>\n<li><p><strong>Manually</strong>: Add tags directly in the contact details within Customerly Inboxes or CRM.</p>\n</li>\n<li><p><strong>Workflows</strong>: Utilize workflows to automatically tag contacts based on specific interactions or behaviors.</p>\n</li>\n<li><p><strong>Zapier</strong>: Integrate with Zapier to tag contacts from external sources or triggers.</p>\n</li>\n<li><p><strong>API</strong>: Use Customerly's API to programmatically assign tags based on custom logic or integration with other platforms.</p>\n</li>\n</ul>\n<h4 id=\"how-is-a-tag-different-from-a-property\"><strong>How is a Tag Different from a Property?</strong></h4>\n<p>While tags are simple labels, properties consist of a property name and a value, functioning as added attributes for contacts.</p>\n<ul>\n<li><p><strong>Tags</strong>: Used for categorization, such as \"happycustomers.\"</p>\n</li>\n<li><p><strong>Properties</strong>: Include detailed attributes that can be updated, such as \"birthday,\" \"name,\" or \"country.\"</p>\n</li>\n</ul>\n<h4 id=\"why-use-tags-in-customerly\"><strong>Why Use Tags in Customerly?</strong></h4>\n<ul>\n<li><p><strong>Segmentation</strong>: Easily segment contacts based on specific tags, enabling targeted marketing campaigns.</p>\n</li>\n<li><p><strong>Personalization</strong>: Utilize tags to personalize communication and enhance engagement.</p>\n</li>\n<li><p><strong>Automation</strong>: Incorporate tags within automated workflows to trigger specific actions or sequences.</p>\n</li>\n</ul>\n","_postman_id":"601fd97e-d4b0-47dc-b355-e84c231f6cd5","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}}},{"name":"Messages","item":[{"name":"Send Message from User","id":"6ffc8164-dfbf-4e19-bf99-c4e47d258a35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {  \n       \"from\":{  \n             \"type\":\"user\",\n             \"email\":\"luke@customerly.io\"\n       },\n       \"to\":{\n            \"type\" : \"admin\",\n            \"id\": 3\n       },\n       \"channel\": \"email\",\n       \"content\":\"Hi there, I'm interested in your magic product. Could you help me?\",\n       \"attachments\":[  \n                {\n                    \"filename\": \"Name Attachment\",\n                    \"base64\" : \"base64 raw data\"\n                }\n       ]\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/messages","description":"<p>This request enables the creation of a new conversation within Customerly from a user to an admin (or teammate). It's particularly useful for automating support requests, allowing users to initiate conversations that land directly in the support inbox.</p>\n<h4 id=\"use-case\"><strong>Use Case</strong>:</h4>\n<p>This request facilitates automated support interactions, allowing users to send direct inquiries, product interests, or assistance requests to admins or support teammates. It ensures that support queries are routed efficiently and handled promptly.</p>\n<h4 id=\"benefits\"><strong>Benefits</strong>:</h4>\n<ul>\n<li><p><strong>User Engagement</strong>: Provides users with a seamless channel to inquire or seek support, enhancing user satisfaction.</p>\n</li>\n<li><p><strong>Support Efficiency</strong>: Automates the support request process, routing conversations directly to the responsible admin or teammate.</p>\n</li>\n<li><p><strong>Flexibility</strong>: Allows for the inclusion of attachments and personalized content, catering to diverse support needs.</p>\n</li>\n<li><p><strong>Rapid Response</strong>: Ensures immediate notification of errors or payment failures, allowing for swift resolution</p>\n</li>\n<li><p><strong>User Assurance</strong>: Provides users with a direct channel to seek help, enhancing trust and satisfaction.</p>\n</li>\n</ul>\n<p><strong>What is Channel?</strong></p>\n<p>The channel by defaul is messenger, but if you want to force it to email, you can do it so by adding channel email.</p>\n<h3 id=\"what-is-the-admin\"><strong>What is the Admin?</strong></h3>\n<p>In Customerly, an \"admin\" refers to a specific account that represents a teammate. Admins are typically responsible for managing various aspects of the platform, including customer support, handling inquiries, resolving issues, and more.</p>\n<h4 id=\"finding-the-admins-id\"><strong>Finding the Admin's ID</strong>:</h4>\n<p>The admin's ID is a unique identifier used to represent a specific teammate within Customerly. You can find the ID of an admin by following these steps:</p>\n<ol>\n<li><p><strong>Log in to Customerly</strong>: Ensure you are logged in to your Customerly account.</p>\n</li>\n<li><p><strong>Navigate to Teammates Page</strong>: Go to the Teammates page by clicking on the following link: <a href=\"https://app.customerly.io/projects/default/settings/workspace/teammates\">Teammates Page</a>.</p>\n</li>\n<li><p><strong>Locate the Teammates Table</strong>: On the Teammates page, you will find a table listing all your teammates.</p>\n</li>\n<li><p><strong>Find the Admin's ID</strong>: Look for the specific admin whose ID you need, and you will find the ID listed under the Teammates table.</p>\n</li>\n</ol>\n<h4 id=\"further-considerations\"><strong>Further Considerations</strong>:</h4>\n<ul>\n<li><p>Ensure that the <code>base64</code> field contains properly base64-encoded data for the attachment.</p>\n</li>\n<li><p>The <code>type</code> fields for both sender and recipient should match the respective roles within your system (e.g., \"user\" for end-users, \"admin\" for administrators or support teammates).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","messages"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[{"id":"d1d461b6-6ad4-4329-bd00-8e420b8b2bf0","name":"Message Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {  \n       \"from\":{  \n             \"type\":\"user\",\n             \"email\":\"luke@customerly.io\"\n       },\n       \"to\":{\n            \"type\" : \"admin\",\n            \"id\": 3\n       },\n       \"channel\": \"email\",\n       \"content\":\"Hi there, I'm interested in your magic product. Could you help me?\",\n       \"attachments\":[  \n                {\n                    \"filename\": \"Name Attachment\",\n                    \"base64\" : \"base64 raw data\"\n                }\n       ]\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 17:04:01 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=IAzOQ2IubWlVH3T91uEZj14z61vkqPt3KbZmyCra3CnTQY+fYGyuf+LNvyJdALh0SieTPEFUkmmgxxYtWxuLCN3prZ1Ig2th/6tvFwZCUFthGPGxl0qRu5Eyn1Hd; Expires=Thu, 31 Aug 2023 17:04:01 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=IAzOQ2IubWlVH3T91uEZj14z61vkqPt3KbZmyCra3CnTQY+fYGyuf+LNvyJdALh0SieTPEFUkmmgxxYtWxuLCN3prZ1Ig2th/6tvFwZCUFthGPGxl0qRu5Eyn1Hd; Expires=Thu, 31 Aug 2023 17:04:01 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"timestamp\": 1692896641\n    }\n}"}],"_postman_id":"6ffc8164-dfbf-4e19-bf99-c4e47d258a35"},{"name":"Send Message to User","id":"1d2e1602-cdbc-485e-a162-8d31e0efca46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {  \n       \"from\":{  \n             \"type\" : \"admin\",\n            \"id\": 3\n       },\n       \"to\":{\n            \"type\":\"user\",\n             \"email\":\"luke@customerly.io\"\n       },\n       \"channel\": \"email\",\n       \"content\":\"Hi Luke, we wanted to notify you that your account has been activated\",\n       \"attachments\":[  \n                {\n                    \"filename\": \"Name Attachment\",\n                    \"base64\" : \"base64 raw data\"\n                }\n       ]\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/messages","description":"<p>This request allows you to create a new conversation within Customerly from an admin to a user. It includes the message content, sender and recipient details, and optional attachments.</p>\n<h4 id=\"use-case\"><strong>Use Case</strong>:</h4>\n<p>This request is particularly useful when you want to create automated notifications or support interactions from an admin to a user. For example, notifying a user that their account has been activated or sending personalized communication with relevant attachments.  </p>\n<p><strong>What is Channel?</strong></p>\n<p>The channel by defaul is messenger, but if you want to force it to email, you can do it so by adding channel email.</p>\n<h3 id=\"what-is-the-admin\"><strong>What is the Admin?</strong></h3>\n<p>In Customerly, an \"admin\" refers to a specific account that represents a teammate. Admins are typically responsible for managing various aspects of the platform, including customer support, handling inquiries, resolving issues, and more.</p>\n<h4 id=\"finding-the-admins-id\"><strong>Finding the Admin's ID</strong>:</h4>\n<p>The admin's ID is a unique identifier used to represent a specific teammate within Customerly. You can find the ID of an admin by following these steps:</p>\n<ol>\n<li><p><strong>Log in to Customerly</strong>: Ensure you are logged in to your Customerly account.</p>\n</li>\n<li><p><strong>Navigate to Teammates Page</strong>: Go to the Teammates page by clicking on the following link: <a href=\"https://app.customerly.io/projects/default/settings/workspace/teammates\">Teammates Page</a>.</p>\n</li>\n<li><p><strong>Locate the Teammates Table</strong>: On the Teammates page, you will find a table listing all your teammates.</p>\n</li>\n<li><p><strong>Find the Admin's ID</strong>: Look for the specific admin whose ID you need, and you will find the ID listed under the Teammates table.</p>\n</li>\n</ol>\n<h4 id=\"further-considerations\"><strong>Further Considerations</strong>:</h4>\n<ul>\n<li><p>Ensure that the <code>base64</code> field contains properly base64-encoded data for the attachment.</p>\n</li>\n<li><p>The <code>type</code> fields for both sender and recipient should match the respective roles within your system (e.g., \"admin\" for administrators, \"user\" for end-users).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","messages"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[{"id":"89019aed-73be-4e96-8994-3c696b5ecbfb","name":"Message Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {  \n       \"from\":{  \n             \"type\" : \"admin\",\n            \"id\": 3\n       },\n       \"to\":{\n            \"type\":\"user\",\n             \"email\":\"luke@customerly.io\"\n       },\n      \"channel\": \"email\",\n       \"content\":\"Hi Luke, we wanted to notify you that your account has been activated\",\n       \"attachments\":[  \n                {\n                    \"filename\": \"Name Attachment\",\n                    \"base64\" : \"base64 raw data\"\n                }\n       ]\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 17:05:31 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=5/1BoevKMbUd/R9zJVY3ZqcMQkMYkxoh9Nt/W2QJhj6e0KIT3N9R7pWZZ+SjtmL00U7mFkdInGaEEjExf3ofSb9ADt8HNhuoZQBnYv8v2sTd8CsaHWS5fck+Aky1; Expires=Thu, 31 Aug 2023 17:05:31 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=5/1BoevKMbUd/R9zJVY3ZqcMQkMYkxoh9Nt/W2QJhj6e0KIT3N9R7pWZZ+SjtmL00U7mFkdInGaEEjExf3ofSb9ADt8HNhuoZQBnYv8v2sTd8CsaHWS5fck+Aky1; Expires=Thu, 31 Aug 2023 17:05:31 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"conversation\": {\n            \"conversation_id\": 52105261,\n            \"conversation_group_id\": null,\n            \"app_id\": \"007b9e3f\",\n            \"assigner_id\": 3,\n            \"assigner_type\": 0,\n            \"user_id\": 29911301,\n            \"is_open\": 1,\n            \"is_listed\": 1,\n            \"tag\": 0,\n            \"last_message_writer\": 3,\n            \"last_message_writer_type\": 0,\n            \"last_message_is_note\": 0,\n            \"last_message_date\": 1692896731,\n            \"last_message_abstract\": \"Hi Luke, we wanted to notify you that your account has been activated\",\n            \"last_note_writer\": null,\n            \"last_note_date\": null,\n            \"last_note_abstract\": null,\n            \"last_message_discarded\": 0,\n            \"last_date\": 1692896731,\n            \"contains_attachments\": 1,\n            \"sent_at\": 1692896731,\n            \"seen_at\": null,\n            \"replied_at\": null,\n            \"clicked_at\": null,\n            \"unique_identifier\": null,\n            \"unread\": 1,\n            \"last_message_in_app\": 1,\n            \"first_reply_time\": 1692896731,\n            \"first_reply_account\": 3,\n            \"is_direct\": 1,\n            \"is_facebook\": 0,\n            \"opened_from_page\": \"\",\n            \"conversation_url\": \"https://app.customerly.io/projects/007b9e3f/conversations/0/3/52105261\",\n            \"sent_at_h\": 1692896400,\n            \"user\": {\n                \"user_id\": 29911301,\n                \"name\": \"Luke\",\n                \"email\": \"luke@customerly.io\"\n            },\n            \"online\": 0,\n            \"assigner\": {\n                \"type\": 0,\n                \"id\": 3,\n                \"name\": \"Luca Micheli\"\n            },\n            \"last_message\": null,\n            \"last_note\": null\n        },\n        \"conversation_message_id\": 79749968,\n        \"timestamp\": 1692896731\n    }\n}"}],"_postman_id":"1d2e1602-cdbc-485e-a162-8d31e0efca46"}],"id":"ae8f8690-a2a6-42b4-869a-d224856fcca2","description":"<p>The <code>/message</code> endpoint in Customerly allows you to create a new conversation with a message, either from an <code>account_id</code> to a <code>user_id</code> or vice versa. This endpoint provides a robust solution for automating communication and support interactions within your platform.</p>\n<h4 id=\"key-features\"><strong>Key Features</strong>:</h4>\n<ul>\n<li><p><strong>Create Conversations</strong>: Initiate new conversations between accounts and users, seamlessly bridging communication within your platform.</p>\n</li>\n<li><p><strong>Automate Support Requests</strong>: Generate support requests from users programmatically, directly from your backend, facilitating quick responses and issue resolution.</p>\n</li>\n<li><p><strong>Flexible Targeting</strong>: Send messages to specific user IDs or account IDs, ensuring that the communication reaches the intended recipient.</p>\n</li>\n</ul>\n<h4 id=\"use-cases\"><strong>Use Cases</strong>:</h4>\n<ul>\n<li><p><strong>Automated Support Tickets</strong>: Automatically create support tickets from users, triggering specific workflows or alerting support staff.</p>\n</li>\n<li><p><strong>Personalized Communication</strong>: Send targeted messages to users or accounts based on specific events, behaviors, or attributes.</p>\n</li>\n<li><p><strong>Integration with Other Systems</strong>: Leverage the <code>/message</code> endpoint to integrate with other systems, such as CRM or helpdesk solutions, creating a unified communication experience.</p>\n</li>\n</ul>\n","_postman_id":"ae8f8690-a2a6-42b4-869a-d224856fcca2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}}},{"name":"Knowledgebase","item":[{"name":"Collection","item":[{"name":"Get All Collections","id":"4ede3d54-a84d-4817-af9d-49768595ee86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.customerly.io/v1/knowledge/collections","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","knowledge","collections"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[{"id":"6d8f0b38-7ab7-483d-8e60-d7227020d385","name":"Collections List Response","originalRequest":{"method":"GET","header":[],"url":"https://api.customerly.io/v1/knowledge/collections"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 17:18:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=07QlhyhnwEl/jkEFvHTRYYXggv0ujgtLdhS2xzVdfMbFqCkj0OlTBvz40A32oQuspfg3uZMHMP6Uuwl75cdfKntuV03E8pPjFhZAEm8zbxImOvhbqGJ4OyOI/Kkd; Expires=Thu, 31 Aug 2023 17:18:13 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=07QlhyhnwEl/jkEFvHTRYYXggv0ujgtLdhS2xzVdfMbFqCkj0OlTBvz40A32oQuspfg3uZMHMP6Uuwl75cdfKntuV03E8pPjFhZAEm8zbxImOvhbqGJ4OyOI/Kkd; Expires=Thu, 31 Aug 2023 17:18:13 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"knowledge_base_collection_id\": 4517,\n            \"app_id\": \"007b9e3f\",\n            \"icon\": \"adventures\",\n            \"slug\": \"getting-started\",\n            \"title\": \"Getting Started\",\n            \"description\": \"Getting Started with Customerly \",\n            \"sort\": 0,\n            \"locale\": \"en\"\n        },\n        {\n            \"knowledge_base_collection_id\": 6050,\n            \"app_id\": \"007b9e3f\",\n            \"icon\": \"3_star_hotel\",\n            \"slug\": \"how-to-create-a-collection-in-customerly\",\n            \"title\": \"How to create a collection in Customerly\",\n            \"description\": \"This is how I create a collection and I don't know what to write here, bye\",\n            \"sort\": 1,\n            \"locale\": \"en\"\n        }\n    ]\n}"}],"_postman_id":"4ede3d54-a84d-4817-af9d-49768595ee86"},{"name":"Get Collection Details and Articles","id":"3591bed7-d32a-404a-8df4-89b5baa57b50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.customerly.io/v1/knowledge/collections/{knowledge_base_collection_id}?with_articles=true","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","knowledge","collections","{knowledge_base_collection_id}"],"host":["api","customerly","io"],"query":[{"key":"with_articles","value":"true"}],"variable":[]}},"response":[{"id":"9167ec04-28d1-499c-90c0-da5a8ea12719","name":"Collections List Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.customerly.io/v1/knowledge/collections/6050?with_articles=true","protocol":"https","host":["api","customerly","io"],"path":["v1","knowledge","collections","6050"],"query":[{"key":"with_articles","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 17:19:58 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=pZ4CmxurPTtRpQqfiv/PL1RnTZ3mLdXRfOvibQUc5uVgC6wVx2Ileiu2wDFyZPkBrQPUqnPd3/csW5DX6P5Hzf3TUsT07qWrkfbeTl7TftIzBc/i5r+O74cQ3S1z; Expires=Thu, 31 Aug 2023 17:19:58 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=pZ4CmxurPTtRpQqfiv/PL1RnTZ3mLdXRfOvibQUc5uVgC6wVx2Ileiu2wDFyZPkBrQPUqnPd3/csW5DX6P5Hzf3TUsT07qWrkfbeTl7TftIzBc/i5r+O74cQ3S1z; Expires=Thu, 31 Aug 2023 17:19:58 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"knowledge_base_collection_id\": 6050,\n        \"app_id\": \"007b9e3f\",\n        \"icon\": \"3_star_hotel\",\n        \"slug\": \"how-to-create-a-collection-in-customerly\",\n        \"title\": \"How to create a collection in Customerly\",\n        \"description\": \"This is how I create a collection and I don't know what to write here, bye\",\n        \"sort\": 1,\n        \"locale\": \"en\",\n        \"articles\": [\n            {\n                \"knowledge_base_article_id\": 17468,\n                \"app_id\": \"007b9e3f\",\n                \"knowledge_base_collection_id\": 6050,\n                \"slug\": \"article-title-in-english\",\n                \"title\": \"Article title in English\",\n                \"description\": \"Test description\",\n                \"body\": \"<p>This is a test body article, I don't know what to write, sincerely.</p><p><strong>I'm doing this for test</strong>, this is not bold.</p>\",\n                \"status\": 0,\n                \"num_visits\": 0,\n                \"num_negative_reactions\": 0,\n                \"num_neutral_reactions\": 0,\n                \"num_positive_reactions\": 0,\n                \"written_by\": 2,\n                \"created_at\": 1681388417,\n                \"updated_at\": 1681388417,\n                \"sort\": 0,\n                \"body_plain_lower\": \"this is a test body article, i don't know what to write, sincerely.i'm doing this for test, this is not bold.\",\n                \"title_lower\": \"article title in english\",\n                \"description_lower\": \"test description\",\n                \"ai_enabled\": 1,\n                \"ai_relevant_fields_last_update_at\": 0,\n                \"ai_last_train_at\": -1,\n                \"keywords\": [\n                    \"dontknow\",\n                    \"keyword\"\n                ]\n            }\n        ]\n    }\n}"}],"_postman_id":"3591bed7-d32a-404a-8df4-89b5baa57b50"},{"name":"Create Collection","id":"c98e1727-f2af-4683-9ba6-289c814c3505","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"title\": \"Required title\",\n  \"icon\": \"Required icon\",\n  \"slug\": \"Required slug\",\n  \"description\": \"Optional description\",\n  \"locale\": \"Locale in format iso 639-1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/knowledge/collections","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","knowledge","collections"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"c98e1727-f2af-4683-9ba6-289c814c3505"},{"name":"Update Collection","id":"7c341b7c-0c23-4dfa-8657-8638444ba166","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"title\": \"Required title\",\n  \"icon\": \"Required icon\",\n  \"slug\": \"Required slug\",\n  \"description\": \"Optional description\",\n  \"locale\": \"Locale in format iso 639-1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/knowledge/collections/{knowledge_base_collection_id}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","knowledge","collections","{knowledge_base_collection_id}"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c341b7c-0c23-4dfa-8657-8638444ba166"},{"name":"Delete Collection","id":"366d1922-f701-4c28-8ed5-dd2475784c09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n  \"knowledge_base_collection_id\": 12345\n}","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/knowledge/collections","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","knowledge","collections"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"366d1922-f701-4c28-8ed5-dd2475784c09"}],"id":"8930fc34-fd42-4eb4-9854-31d965572756","_postman_id":"8930fc34-fd42-4eb4-9854-31d965572756","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}}},{"name":"Article","item":[{"name":"Create Article","id":"088c9166-4754-40a5-8a85-4f66ae5621ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \n        \"knowledge_base_collection_id\": 6050,\n        \"title\": \"REST API Test Article\",\n        \"body\": \"This is a long HTML body which I can send to Customerly for creating great help center\",\n        \"status\": 0,//1 live, 0 draft\n        \"written_by\": 2,//The account_id of the writer of this article\n        \"slug\": \"article-slug-from-api\",\n        \"description\": \"This is a test Help Center article created by REST API\"\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/knowledge/articles/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","knowledge","articles",""],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[{"id":"60cc4f5b-0ee2-4c5f-a324-ff90af8c29e0","name":"Create Article Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \n        \"knowledge_base_collection_id\": 6050,\n        \"title\": \"REST API Test Article\",\n        \"body\": \"This is a long HTML body which I can send to Customerly for creating great help center\",\n        \"status\": 0,//1 live, 0 draft\n        \"written_by\": 2,//The account_id of the writer of this article\n        \"slug\": \"article-slug-from-api\",\n        \"description\": \"This is a test Help Center article created by REST API\"\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/knowledge/articles/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 17:27:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=eYR2jTJ6riwZhU4BrlslwX9xu9sq/6bc0pXdN9TcEbur+n+2n8ktDnCfirFtD+IKX4q+zEoktViZLZQIvGloPh6U37JqIodGRqgs82HfAjetHiglzweyYGOoj3nr; Expires=Thu, 31 Aug 2023 17:27:53 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=eYR2jTJ6riwZhU4BrlslwX9xu9sq/6bc0pXdN9TcEbur+n+2n8ktDnCfirFtD+IKX4q+zEoktViZLZQIvGloPh6U37JqIodGRqgs82HfAjetHiglzweyYGOoj3nr; Expires=Thu, 31 Aug 2023 17:27:53 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"knowledge_base_article_id\": 19986,\n        \"app_id\": \"007b9e3f\",\n        \"knowledge_base_collection_id\": 6050,\n        \"slug\": \"article-slug-from-api\",\n        \"title\": \"REST API Test Article\",\n        \"description\": \"This is a test Help Center article created by REST API\",\n        \"body\": \"This is a long HTML body which I can send to Customerly for creating great help center\",\n        \"status\": 0,\n        \"num_visits\": 0,\n        \"num_negative_reactions\": 0,\n        \"num_neutral_reactions\": 0,\n        \"num_positive_reactions\": 0,\n        \"written_by\": 2,\n        \"created_at\": 1692898073,\n        \"updated_at\": 1692898073,\n        \"sort\": 1,\n        \"body_plain_lower\": \"this is a long html body which i can send to customerly for creating great help center\",\n        \"title_lower\": \"rest api test article\",\n        \"description_lower\": \"this is a test help center article created by rest api\",\n        \"ai_enabled\": 1,\n        \"ai_relevant_fields_last_update_at\": 1692898073,\n        \"ai_last_train_at\": -1,\n        \"keywords\": []\n    }\n}"}],"_postman_id":"088c9166-4754-40a5-8a85-4f66ae5621ff"},{"name":"Update Article","id":"48ed5b51-be66-4ba2-a20a-80191acced32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \n        \"knowledge_base_collection_id\": 6050,\n        \"title\": \"REST API Test Article\",\n        \"body\": \"This is a long HTML body which I can send to Customerly for creating great help center\",\n        \"status\": 0,//1 live, 0 draft\n        \"written_by\": 2,//The account_id of the writer of this article\n        \"slug\": \"article-slug-from-api\",\n        \"description\": \"This is a test Help Center article created by REST API\"\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/knowledge/articles/{knowledge_base_article_id}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","knowledge","articles","{knowledge_base_article_id}"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[{"id":"ded4b888-f430-4d8a-a826-84f3d25044e0","name":"Create Article Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \n        \"knowledge_base_collection_id\": 6050,\n        \"knowledge_base_article_id\": 1,\n        \"title\": \"REST API Test Article\",\n        \"body\": \"This is a long HTML body which I can send to Customerly for creating great help center\",\n        \"status\": 0,//1 live, 0 draft\n        \"written_by\": 2,//The account_id of the writer of this article\n        \"slug\": \"article-slug-from-api\",\n        \"description\": \"This is a test Help Center article created by REST API\"\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/knowledge/articles/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 17:27:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=eYR2jTJ6riwZhU4BrlslwX9xu9sq/6bc0pXdN9TcEbur+n+2n8ktDnCfirFtD+IKX4q+zEoktViZLZQIvGloPh6U37JqIodGRqgs82HfAjetHiglzweyYGOoj3nr; Expires=Thu, 31 Aug 2023 17:27:53 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=eYR2jTJ6riwZhU4BrlslwX9xu9sq/6bc0pXdN9TcEbur+n+2n8ktDnCfirFtD+IKX4q+zEoktViZLZQIvGloPh6U37JqIodGRqgs82HfAjetHiglzweyYGOoj3nr; Expires=Thu, 31 Aug 2023 17:27:53 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"knowledge_base_article_id\": 19986,\n        \"app_id\": \"007b9e3f\",\n        \"knowledge_base_collection_id\": 6050,\n        \"slug\": \"article-slug-from-api\",\n        \"title\": \"REST API Test Article\",\n        \"description\": \"This is a test Help Center article created by REST API\",\n        \"body\": \"This is a long HTML body which I can send to Customerly for creating great help center\",\n        \"status\": 0,\n        \"num_visits\": 0,\n        \"num_negative_reactions\": 0,\n        \"num_neutral_reactions\": 0,\n        \"num_positive_reactions\": 0,\n        \"written_by\": 2,\n        \"created_at\": 1692898073,\n        \"updated_at\": 1692898073,\n        \"sort\": 1,\n        \"body_plain_lower\": \"this is a long html body which i can send to customerly for creating great help center\",\n        \"title_lower\": \"rest api test article\",\n        \"description_lower\": \"this is a test help center article created by rest api\",\n        \"ai_enabled\": 1,\n        \"ai_relevant_fields_last_update_at\": 1692898073,\n        \"ai_last_train_at\": -1,\n        \"keywords\": []\n    }\n}"}],"_postman_id":"48ed5b51-be66-4ba2-a20a-80191acced32"},{"name":"Delete Article","id":"cfe3d057-55d3-4be5-91b8-db82f7474f12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{  \n        \"knowledge_base_collection_id\": \"6050\",\n        \"title\": \"REST API Test Article\",\n        \"body\": \"This is a long HTML body which I can send to Customerly for creating great help center\",\n        \"status\": 0,//1 live, 0 draft\n        \"written_by\": 2,//The account_id of the writer of this article\n        \"slug\": \"article-slug-from-api\",\n        \"description\": \"This is a test Help Center article created by REST API\"\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/knowledge/articles/19986","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","knowledge","articles","19986"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[{"id":"aab0a077-31cf-485f-b5fa-fbbe188c3eff","name":"Create Article Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \n        \"knowledge_base_collection_id\": \"6050\",\n        \"title\": \"REST API Test Article\",\n        \"body\": \"This is a long HTML body which I can send to Customerly for creating great help center\",\n        \"status\": 0,//1 live, 0 draft\n        \"written_by\": 2,//The account_id of the writer of this article\n        \"slug\": \"article-slug-from-api\",\n        \"description\": \"This is a test Help Center article created by REST API\"\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.customerly.io/v1/knowledge/articles/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 17:27:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=eYR2jTJ6riwZhU4BrlslwX9xu9sq/6bc0pXdN9TcEbur+n+2n8ktDnCfirFtD+IKX4q+zEoktViZLZQIvGloPh6U37JqIodGRqgs82HfAjetHiglzweyYGOoj3nr; Expires=Thu, 31 Aug 2023 17:27:53 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=eYR2jTJ6riwZhU4BrlslwX9xu9sq/6bc0pXdN9TcEbur+n+2n8ktDnCfirFtD+IKX4q+zEoktViZLZQIvGloPh6U37JqIodGRqgs82HfAjetHiglzweyYGOoj3nr; Expires=Thu, 31 Aug 2023 17:27:53 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"knowledge_base_article_id\": 19986,\n        \"app_id\": \"007b9e3f\",\n        \"knowledge_base_collection_id\": 6050,\n        \"slug\": \"article-slug-from-api\",\n        \"title\": \"REST API Test Article\",\n        \"description\": \"This is a test Help Center article created by REST API\",\n        \"body\": \"This is a long HTML body which I can send to Customerly for creating great help center\",\n        \"status\": 0,\n        \"num_visits\": 0,\n        \"num_negative_reactions\": 0,\n        \"num_neutral_reactions\": 0,\n        \"num_positive_reactions\": 0,\n        \"written_by\": 2,\n        \"created_at\": 1692898073,\n        \"updated_at\": 1692898073,\n        \"sort\": 1,\n        \"body_plain_lower\": \"this is a long html body which i can send to customerly for creating great help center\",\n        \"title_lower\": \"rest api test article\",\n        \"description_lower\": \"this is a test help center article created by rest api\",\n        \"ai_enabled\": 1,\n        \"ai_relevant_fields_last_update_at\": 1692898073,\n        \"ai_last_train_at\": -1,\n        \"keywords\": []\n    }\n}"}],"_postman_id":"cfe3d057-55d3-4be5-91b8-db82f7474f12"},{"name":"Get Article by ID","id":"8e4eb999-07de-48e7-bd96-f41bd8a3313e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.customerly.io/v1/knowledge/articles/17468","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","knowledge","articles","17468"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e4eb999-07de-48e7-bd96-f41bd8a3313e"},{"name":"Get Articles by Collection ID","id":"23b2c63d-7116-4606-a7f0-0b281dcf8dfe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.customerly.io/v1/knowledge/articles/?knowledge_base_collection_id=6050&page=0&per_page=10","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","knowledge","articles",""],"host":["api","customerly","io"],"query":[{"key":"knowledge_base_collection_id","value":"6050"},{"key":"page","value":"0"},{"key":"per_page","value":"10"}],"variable":[]}},"response":[{"id":"c956bb2b-3227-4d8f-88a5-55af41dfc3af","name":"Get Article List Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.customerly.io/v1/knowledge/articles/?knowledge_base_collection_id=6050&page=0&per_page=10","protocol":"https","host":["api","customerly","io"],"path":["v1","knowledge","articles",""],"query":[{"key":"knowledge_base_collection_id","value":"6050"},{"key":"page","value":"0"},{"key":"per_page","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Aug 2023 17:22:14 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=Hhxd9TI0dkmITIS22e06ha7Kij8dSHG0AowM1rpQmUh+nNrOuymb5AxT1bytc25rtRtSK4NsHc/NkkvCyyi3F5lvM051+zBWZYHYWxp8DgAjQ2KuUc6TIr56Wgm/; Expires=Thu, 31 Aug 2023 17:22:14 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=Hhxd9TI0dkmITIS22e06ha7Kij8dSHG0AowM1rpQmUh+nNrOuymb5AxT1bytc25rtRtSK4NsHc/NkkvCyyi3F5lvM051+zBWZYHYWxp8DgAjQ2KuUc6TIr56Wgm/; Expires=Thu, 31 Aug 2023 17:22:14 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE"},{"key":"Access-Control-Allow-Headers","value":"content-type, authentication"},{"key":"Cache-Control","value":"no-cache, private"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"knowledge_base_article_id\": 17468,\n            \"app_id\": \"007b9e3f\",\n            \"knowledge_base_collection_id\": 6050,\n            \"slug\": \"article-title-in-english\",\n            \"title\": \"Article title in English\",\n            \"description\": \"Test description\",\n            \"body\": \"<p>This is a test body article, I don't know what to write, sincerely.</p><p><strong>I'm doing this for test</strong>, this is not bold.</p>\",\n            \"status\": 0,\n            \"num_visits\": 0,\n            \"num_negative_reactions\": 0,\n            \"num_neutral_reactions\": 0,\n            \"num_positive_reactions\": 0,\n            \"written_by\": 2,\n            \"created_at\": 1681388417,\n            \"updated_at\": 1681388417,\n            \"sort\": 0,\n            \"body_plain_lower\": \"this is a test body article, i don't know what to write, sincerely.i'm doing this for test, this is not bold.\",\n            \"title_lower\": \"article title in english\",\n            \"description_lower\": \"test description\",\n            \"ai_enabled\": 1,\n            \"ai_relevant_fields_last_update_at\": 0,\n            \"ai_last_train_at\": -1,\n            \"keywords\": [\n                \"dontknow\",\n                \"keyword\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"23b2c63d-7116-4606-a7f0-0b281dcf8dfe"}],"id":"0abe45e5-5592-4956-873c-5b37fb1fc12c","_postman_id":"0abe45e5-5592-4956-873c-5b37fb1fc12c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}}},{"name":"Get All Writers","id":"a82e1a28-35c1-4554-a669-69a9429df1ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.customerly.io/v1/knowledge/writers","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","knowledge","writers"],"host":["api","customerly","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"a82e1a28-35c1-4554-a669-69a9429df1ea"}],"id":"6fe3dd9f-8435-420b-a452-8dbb88e2daa2","description":"<p>The Knowledgebase API in Customerly empowers you to manage your help center content programmatically. It allows seamless integration of existing knowledgebase collections and articles, enabling you to add, edit, and import content directly into Customerly.</p>\n<h4 id=\"key-features\"><strong>Key Features</strong>:</h4>\n<ul>\n<li><p><strong>Add Collections and Articles</strong>: Create new collections and articles, organizing content according to your needs.</p>\n</li>\n<li><p><strong>Edit Existing Content</strong>: Modify existing collections and articles, updating information, and maintaining relevance.</p>\n</li>\n<li><p><strong>Import Existing Help Center</strong>: Migrate content from any existing help center into Customerly with ease.</p>\n</li>\n<li><p><strong>Integration with Conversational AI</strong>: Leverage Customerly's <a href=\"https://customerly.io/conversational-ai\">Conversational AI capabilities</a> to enhance user interactions and support.</p>\n</li>\n</ul>\n<h4 id=\"benefits\"><strong>Benefits</strong>:</h4>\n<ul>\n<li><p><strong>Automated Content Management</strong>: Handle collections and articles programmatically, saving time and resources.</p>\n</li>\n<li><p><strong>Enhanced User Experience</strong>: Benefit from Customerly's Conversational AI, providing dynamic and personalized support to users.</p>\n</li>\n<li><p><strong>Content Flexibility</strong>: Customize and organize your help center content to match your brand and user needs.</p>\n</li>\n<li><p><strong>Easy Migration</strong>: Import existing help center content into Customerly, leveraging advanced features without losing valuable information.</p>\n</li>\n</ul>\n<h4 id=\"use-cases\"><strong>Use Cases</strong>:</h4>\n<ul>\n<li><p><strong>Importing Legacy Help Center</strong>: If you have an existing help center, use the Knowledgebase Collection API to import all collections and articles into Customerly.</p>\n</li>\n<li><p><strong>Automated Content Updates</strong>: Keep your help center up-to-date by automating content additions and edits.</p>\n</li>\n<li><p><strong>AI-Enhanced Support</strong>: Utilize Customerly's Conversational AI to provide intelligent and context-aware support, improving user engagement and satisfaction.</p>\n</li>\n</ul>\n<h4 id=\"example-actions\"><strong>Example Actions</strong>:</h4>\n<ul>\n<li><p><strong>Create a New Collection</strong>: Define categories and sections to organize articles.</p>\n</li>\n<li><p><strong>Add an Article</strong>: Insert detailed articles, guides, and FAQs to assist users.</p>\n</li>\n<li><p><strong>Edit an Article</strong>: Update existing articles with new information or corrections.</p>\n</li>\n<li><p><strong>Import an Existing Help Center</strong>: Migrate all content from another platform to Customerly, maintaining structure and content integrity.</p>\n</li>\n</ul>\n<h4 id=\"explore-more\"><strong>Explore More</strong>:</h4>\n<ul>\n<li><strong>Conversational AI</strong>: Learn more about how Customerly's Conversational AI can transform your support experience <a href=\"https://customerly.io/conversational-ai\">here</a>.</li>\n</ul>\n","_postman_id":"6fe3dd9f-8435-420b-a452-8dbb88e2daa2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","id":"fb48c8d4-9898-4238-9a6d-6584dabd4d11","name":"Customerly Public REST API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"fc71954d-547b-4cb9-a83d-ad1a0553a4bd","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"34d14aaa-53db-4ddf-9eac-00012d0a9820","type":"text/javascript","requests":{},"exec":[""]}}]}