{"info":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>XONVO API is there to provide you different endpoints to add and retrieve data from the Conversational AI platform.</p>\n<h1 id=\"overview\">Overview</h1>\n<p>The API is built following the REST concepts and with the intention of being simple and easily understandable.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>Every request in the API has to have an authentication header. HTTP Basic Auth (<a href=\"https://en.wikipedia.org/wiki/Basic_access_authentication\">more info</a>) header is expected <em>Authorization: Basic</em> where credentials is username:password (note the colon) Base64 encoded</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p><code>400</code> Bad Request - in case the input is incorrect  </p>\n<p><code>404</code> The resource is not found  </p>\n<p><code>500</code> Unexpected error</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"}],"owner":"30669190","collectionId":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","publishedId":"2s9YRCVAvW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-10-22T07:20:18.000Z"},"item":[{"name":"Leads","item":[{"name":"Add a lead","id":"30bb0361-a040-4d44-87d7-93666aa30f38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"John\",\n    \"lastName\": \"Smith\",\n    \"phone\": \"+1333-111-8888\",\n    \"externalId\": \"2\",\n    \"timestamp\": \"06-23-2021 22:55:23\",\n    \"ipAddress\": \"192.168.3.2\",\n    \"email\": \"john.smith@alot.co\",\n    \"agentExternalId\": \"2\",\n    \"state\": \"WA\",\n    \"zip\": \"98121\",\n    \"jornayaLeadId\": \"095796C6-4D33-A73C-7BCE-D5563F59E778\"\n}"},"url":"{{environment}}/lead","description":"<p>Use this endpoint to add a new lead onto the platform. An HTTP response with status code 200 indicates successful add. If the lead is handled by a specific agent, then use the Agent API first and once and after that add the lead.</p>\n<table>\n    <tr>\n        <td>field</td>\n        <td>type</td>\n        <td>required</td>\n        <td>description</td>\n    </tr>\n    <tr>\n        <td>firstName</td>\n        <td>string (max 250 char)</td>\n        <td>Yes</td>\n        <td>First name of the lead</td>\n    </tr>\n    <tr>\n        <td>lastName</td>\n        <td>string (max 250 char)</td>\n        <td>Yes</td>\n        <td>Last name of the lead</td>\n    </tr>\n    <tr>\n        <td>phone</td>\n        <td>string (max 100 char)</td>\n        <td>Yes</td>\n        <td>Phone number of the lead (preferrably with country code +1)</td>\n    </tr>\n    <tr>\n        <td>state</td>\n        <td>string</td>\n        <td>Partially (either state and city or zip is required)</td>\n        <td>state name or abbreviation</td>\n    </tr>\n    <tr>\n        <td>city</td>\n        <td>string</td>\n        <td>Partially (either state and city or zip is required)</td>\n        <td>City the lead is living at</td>\n    </tr>\n    <tr>\n        <td>zip</td>\n        <td>string</td>\n        <td>Partially (either state and city or zip is required)</td>\n        <td>zip of the lead</td>\n    </tr>\n    <tr>\n        <td>timestamp</td>\n        <td>string/datetime</td>\n        <td>Yes</td>\n        <td>date the lead was acquired (format MM-dd-yyyy HH:mm:ss) </td>\n    </tr>\n    <tr>\n        <td>ipAddress</td>\n        <td>string</td>\n        <td>No</td>\n        <td>Ip address of the lead</td>\n    </tr>\n    <tr>\n        <td>sourceId</td>\n        <td>string</td>\n        <td>No</td>\n        <td>Identifier of the source of the lead</td>\n    </tr>\n    <tr>\n        <td>jornayaLeadId</td>\n        <td>string</td>\n        <td>Partially (either jornaya_lead_id or trusted_form_id is required)</td>\n        <td>Jornaya lead id</td>\n    </tr>\n    <tr>\n        <td>trustedFormId</td>\n        <td>string</td>\n        <td>Partially (either jornaya_lead_id or trusted_form_id is required)</td>\n        <td>Trusted form id</td>\n    </tr>\n    <tr>\n        <td>email</td>\n        <td>string</td>\n        <td>No</td>\n        <td>Email address of the lead</td>\n    </tr>\n    <tr>\n        <td>street</td>\n        <td>string</td>\n        <td>No</td>\n        <td>Street address of the lead</td>\n    </tr>\n    <tr>\n        <td>agentExternalId</td>\n        <td>string</td>\n        <td>No</td>\n        <td>External id of the agent added by Add an agent endpoint</td>\n    </tr>\n</table>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["lead"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[{"id":"d499b832-8612-4f98-8959-3405675be92e","name":"Add a lead","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"John\",\n    \"lastName\": \"Smith\",\n    \"phone\": \"+1333-111-8888\",\n    \"externalId\": \"2\",\n    \"timestamp\": \"06-23-2021 22:55:23\",\n    \"ipAddress\": \"192.168.3.2\",\n    \"email\": \"john.smith@alot.co\",\n    \"agentExternalId\": \"2\",\n    \"state\": \"WA\",\n    \"zip\": \"98121\",\n    \"jornayaLeadId\": \"095796C6-4D33-A73C-7BCE-D5563F59E778\"\n}"},"url":"{{environment}}/lead"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 24 Aug 2021 05:51:32 GMT"},{"key":"Content-Length","value":"34"},{"key":"Connection","value":"keep-alive"},{"key":"WWW-Authenticate","value":"Basic realm=\"ALOT-EXTERNAL\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"30bb0361-a040-4d44-87d7-93666aa30f38"},{"name":"Add an agent","id":"54eeff73-9e1c-4be5-9e31-1aa018b32b47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"John\",\n    \"lastName\": \"Agent\",\n    \"phone\": \"+13444343233\",\n    \"externalId\": \"2\"\n}"},"url":"{{environment}}/agent","description":"<p>Use this endpoint to add an agent to the platform. Agent has to be added only once.</p>\n<table>\n    <tr>\n        <td>field</td>\n        <td>type</td>\n        <td>required</td>\n        <td>description</td>\n    </tr>\n    <tr>\n        <td>firstName</td>\n        <td>string (max 250 char)</td>\n        <td>Yes</td>\n        <td>First name of the agent</td>\n    </tr>\n    <tr>\n        <td>lastName</td>\n        <td>string (max 250 char)</td>\n        <td>Yes</td>\n        <td>Last name of the agent</td>\n    </tr>\n    <tr>\n        <td>phone</td>\n        <td>string (max 100 char)</td>\n        <td>Yes</td>\n        <td>Phone number of the agent (preferrably with country code +1)</td>\n    </tr>\n    <tr>\n        <td>externalId</td>\n        <td>string</td>\n        <td>Yes)</td>\n        <td>identifier which is sent when adding leads with a reference to this agent</td>\n    </tr>\n</table>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["agent"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[{"id":"fd801f6c-517d-4a91-ac74-aae5f731386f","name":"Add an agent (required data only)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"John\",\n    \"lastName\": \"Agent\",\n    \"phone\": \"+13444343233\",\n    \"externalId\": \"2\"\n}"},"url":"{{environment}}/agent"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"54eeff73-9e1c-4be5-9e31-1aa018b32b47"},{"name":"Unsubscribe a lead","id":"10386131-575d-4cfc-a89d-5974f4bc56bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"{{environment}}/lead/unsubscribe?phone=%2B1333-111-8888","description":"<p>Use this endpoint if you need to unsubscribe a lead - to stop admin.xonvo.com platform interacting with the lead</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["lead","unsubscribe"],"host":["{{environment}}"],"query":[{"description":{"content":"<p>Phone number of the lead (when country code is added with + then it has to be url encoded)</p>\n","type":"text/plain"},"key":"phone","value":"%2B1333-111-8888"}],"variable":[]}},"response":[],"_postman_id":"10386131-575d-4cfc-a89d-5974f4bc56bd"},{"name":"Unsubscribe lead by external id","id":"4f2b77de-e8e5-4bae-9f6e-61165e49c45e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"{{environment}}/accounts/{{accountId}}/leads/{{leadExternalId}}/unsubscribe","description":"<p>Use this endpoint if you need to unsubscribe a lead - to stop alot.co platform interacting with the lead</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["accounts","{{accountId}}","leads","{{leadExternalId}}","unsubscribe"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f2b77de-e8e5-4bae-9f6e-61165e49c45e"},{"name":"Add leads (bulk)","id":"ca9a6025-92c4-48a6-a358-bf8431635a66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"leadsByAccountId\": {\n        \"18\": [\n            {\n                \"firstName\": \"John\",\n                \"lastName\": \"Smith\",\n                \"phone\": \"+1333-111-8888\",\n                \"timestamp\": \"06-23-2021 22:55:23\",\n                \"ipAddress\": \"192.168.3.2\",\n                \"email\": \"john.smith@alot.co\",\n                \"state\": \"WA\",\n                \"attributes\": {\"ABANDONED_CART_URL\": \"www.shop.com/123\", \"DISCOUNT_CODE\": \"TR44\"},\n                \"externalId\": \"EXT-32342-TR\"\n            }\n        ]\n    }\n}"},"url":"{{environment}}/leads/bulk","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["leads","bulk"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ca9a6025-92c4-48a6-a358-bf8431635a66"},{"name":"Update leads (bulk)","id":"c1ccedc0-fbe4-475d-a7ec-0e19645affec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"leadsByAccountId\": {\n        \"21\": [\n            {\n                \"firstName\": \"Janet\",\n                \"lastName\": \"John\",\n                \"phone\": \"+1333-111-8889\",\n                \"timestamp\": \"06-23-2021 22:55:23\",\n                \"ipAddress\": \"192.168.3.2\",\n                \"email\": \"john.smith@alot.co\",\n                \"state\": \"TX\",\n                \"attributes\": {\"ABANDONED_CART_URL\": \"www.shop.com/123\", \"DISCOUNT_CODE\": \"TR45\"},\n                \"externalId\": \"EXT-32342-TR\"\n            }\n        ]\n    }\n}"},"url":"{{environment}}/leads/bulk","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["leads","bulk"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1ccedc0-fbe4-475d-a7ec-0e19645affec"},{"name":"Reset a lead","id":"c71848ee-0986-48fd-bfe0-7361095a21b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"{{environment}}/accounts/{{accountId}}/leads/{{leadExternalId}}/reset","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["accounts","{{accountId}}","leads","{{leadExternalId}}","reset"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c71848ee-0986-48fd-bfe0-7361095a21b1"},{"name":"Stop a lead","id":"98f16ef4-72ac-4de2-8ba1-c100d7606f8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"{{environment}}/accounts/{{accountId}}/leads/{{leadExternalId}}/stop","description":"<p>Stops the lead from being sent any additional campaign messages in current interaction. If reset will restart the interaction.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["accounts","{{accountId}}","leads","{{leadExternalId}}","stop"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"98f16ef4-72ac-4de2-8ba1-c100d7606f8c"}],"id":"8bf4f6dc-283b-43be-b4e0-e3df2a574690","_postman_id":"8bf4f6dc-283b-43be-b4e0-e3df2a574690","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}}},{"name":"Accounts","item":[{"name":"Create an account","id":"a12c0e80-c16e-495f-aa9c-735568855e7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Acme Account\",\n    \"phoneNumber\": \"+1324353535\",\n    \"email\": \"alot@alot.co\",\n    \"description\": \"We sell sneakers and T-shirts\",\n    \"countryIso3\": \"USA\",\n    \"state\": \"WI\",\n    \"timezone\": \"US/Arizona\",\n    \"type\": \"ECOMMERCE\",\n    \"attributes\": {\"EXTERNAL_ID\": \"SHOP_ID3223\", \"PLAN_ID\": \"PL02\", \"BRAND_NAME\": \"Store brand to be sent to lead\"},\n    \"aiAssistantName\": \"Mark\",\n    \"website\": \"www.google.co\",\n    \"areaCode\": 434\n}"},"url":"{{environment}}/accounts","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["accounts"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[{"id":"e41e8193-0954-4285-8492-576b8c9cc7ee","name":"Create an account","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Acme Account\",\n    \"phoneNumber\": \"+1324353535\",\n    \"email\": \"alot@alot.co\",\n    \"description\": \"We sell sneakers and T-shirts\",\n    \"countryIso3\": \"USA\",\n    \"state\": \"WI\",\n    \"timezone\": \"US/Arizona\",\n    \"attributes\": {\"EXTERNAL_ID\": \"SHOP_ID3223\", \"PLAN_ID\": \"PL02\", \"BRAND_NAME\": \"Store brand to be sent to lead\"},\n    \"aiAssistantName\": \"Mark\",\n    \"website\": \"www.google.co\",\n    \"areaCode\": 434\n}"},"url":"{{environment}}/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 18\n}"}],"_postman_id":"a12c0e80-c16e-495f-aa9c-735568855e7b"},{"name":"Update an account","id":"d4acc94a-953a-4c6c-8861-f154db8e5faa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Acme Account\",\n    \"phoneNumber\": \"+1324353535\",\n    \"email\": \"alot@alot.co\",\n    \"description\": \"We sell sneakers and T-shirts\",\n    \"countryIso3\": \"USA\",\n    \"state\": \"WI\",\n    \"timezone\": \"US/Arizona\",\n    \"type\": \"ECOMMERCE\",\n    \"attributes\": {\"EXTERNAL_ID\": \"SHOP_ID3223\", \"PLAN_ID\": \"PL02\", \"BRAND_NAME\": \"Store brand to be sent to lead\"},\n    \"aiAssistantName\": \"Mark\"\n}"},"url":"{{environment}}/accounts/{{accountId}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["accounts","{{accountId}}"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[{"id":"241996ae-f446-4ee1-83e9-db05e356e303","name":"Create an account","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Acme Account\",\n    \"phoneNumber\": \"+1324353535\",\n    \"email\": \"alot@alot.co\",\n    \"description\": \"We sell sneakers and T-shirts\",\n    \"countryIso3\": \"USA\",\n    \"state\": \"WI\",\n    \"timezone\": \"US/Arizona\",\n    \"attributes\": {\"EXTERNAL_ID\": \"SHOP_ID3223\"}\n}"},"url":"{{environment}}/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 18\n}"}],"_postman_id":"d4acc94a-953a-4c6c-8861-f154db8e5faa"},{"name":"Inactivate an account","id":"e32552c3-6d89-41f6-9d7e-d3acfaa94acb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"{{environment}}/accounts/{{accountId}}/inactivate","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["accounts","{{accountId}}","inactivate"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e32552c3-6d89-41f6-9d7e-d3acfaa94acb"},{"name":"Pause an account","id":"5430c71e-c52d-4230-b9f1-6b38e6ddedcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"{{environment}}/accounts/{{accountId}}/pause","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["accounts","{{accountId}}","pause"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5430c71e-c52d-4230-b9f1-6b38e6ddedcf"},{"name":"Unpause an account","id":"c98e8670-d718-4526-b741-5a9dfc9917bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"{{environment}}/accounts/{{accountId}}/unpause","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["accounts","{{accountId}}","unpause"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c98e8670-d718-4526-b741-5a9dfc9917bb"}],"id":"735713b5-bd30-4e32-9200-583d4fce525c","_postman_id":"735713b5-bd30-4e32-9200-583d4fce525c","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}}},{"name":"Statistics","item":[{"name":"Get account statistics","id":"621de63c-b226-4d04-a1ec-4a6b26f8e42d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{environment}}/accounts/{{accountId}}/statistics","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["accounts","{{accountId}}","statistics"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[{"id":"d1b93f84-9ccc-4e0b-92e4-1ec96015b229","name":"Get account statistics","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{environment}}/accounts/{{accountId}}/statistics?from=2022-02-20T01:30:00.000-05:00&to=2022-10-31T01:30:00.000-05:00","host":["{{environment}}"],"path":["accounts","{{accountId}}","statistics"],"query":[{"key":"from","value":"2022-02-20T01:30:00.000-05:00"},{"key":"to","value":"2022-10-31T01:30:00.000-05:00"}]}},"code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"engagedCount\": 0,\n    \"leadCount\": 1,\n    \"unsubscribeCount\": 0,\n    \"deliveredCount\": 0,\n    \"ctr\": 3\n}"}],"_postman_id":"621de63c-b226-4d04-a1ec-4a6b26f8e42d"},{"name":"Lead statistics","id":"7c21677e-7165-477e-a8e9-c380fe4c2dc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{environment}}/accounts/{{accountId}}/leads/{{leadExternalId}}/statistics","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}},"urlObject":{"path":["accounts","{{accountId}}","leads","{{leadExternalId}}","statistics"],"host":["{{environment}}"],"query":[],"variable":[]}},"response":[{"id":"e0b002c9-14d0-42d0-a346-56b0f70c3449","name":"Lead statistics","originalRequest":{"method":"GET","header":[],"url":"{{environment}}/accounts/{{accountId}}/leads/{{leadExternalId}}/statistics"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 03 Jul 2022 15:24:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"JSESSIONID=00D371D947D9FB1076A256F35B2666CE; Path=/; HttpOnly"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"deliveredCount\": 2,\n    \"qualified\": true,\n    \"lastDeliveredTime\": \"2022-06-01T12:15:55.360Z\"\n}"}],"_postman_id":"7c21677e-7165-477e-a8e9-c380fe4c2dc0"}],"id":"9d77211c-a812-4008-8293-52bc67b98854","_postman_id":"9d77211c-a812-4008-8293-52bc67b98854","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","id":"ec3d196b-def0-42f1-95c6-27d4d928a9d1","name":"XONVO (admin.xonvo.com) External API","type":"collection"}}}],"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"8c670484-19a2-4e07-854e-987367af3f8f"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"f21223ce-c078-407e-877c-f9fe3e07d35a"}}],"variable":[{"key":"accountId","value":"21","disabled":true}]}