{"info":{"_postman_id":"ed67bbb0-d1bd-4b42-b465-2c18a837b7e3","name":"Lytics API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Get Admins","id":"773542d5-a3e7-40d9-aed4-3b57950c85e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{api_token}}","type":"text"}],"url":"https://api.lytics.io/api/user/<EMAIL ADDRESS>"},"response":[],"_postman_id":"773542d5-a3e7-40d9-aed4-3b57950c85e1"},{"name":"Create Admin","id":"20e5455b-5b2e-4230-8252-891d657109e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{api_token}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\" : \"<EMAIL ADDRESS\"\n    , \"name\":\"<NAME>\"\n    , \"roles\": [\"<ROLES>\",\"<ROLES>\",\"<ROLES>\"]\n}"},"url":"https://api.lytics.io/api/user"},"response":[],"_postman_id":"20e5455b-5b2e-4230-8252-891d657109e5"},{"name":"Update Admin","id":"787fc164-ed72-4aec-864c-8c688abbcc2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{api_token}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"roles\": [\"<ROLES>\",\"<ROLES>\",\"<ROLES>\"]\n}"},"url":"https://api.lytics.io/api/user/<EMAIL ADDRESS>"},"response":[],"_postman_id":"787fc164-ed72-4aec-864c-8c688abbcc2a"},{"name":"Get System Events","id":"40e6b0f1-effe-4b1e-862b-23f3cbac0dd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{api_token}}","type":"text"}],"url":{"raw":"https://api.lytics.io/api/event?","protocol":"https","host":["api","lytics","io"],"path":["api","event"],"query":[{"key":"type","value":"","disabled":true},{"key":"id","value":"","disabled":true},{"key":"verb","value":"","disabled":true},{"key":"limit","value":"10","type":"text","disabled":true},{"key":"before","value":"now-3d","type":"text","disabled":true}]}},"response":[],"_postman_id":"40e6b0f1-effe-4b1e-862b-23f3cbac0dd4"},{"name":"Get Entity","id":"6488eff3-84f6-47fc-9611-a25ad3558395","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{api_token}}","type":"text"}],"url":{"raw":"https://api.lytics.io/api/entity/<TABLE>/<IDENTIFIER>/<IDENTIFIER VALUE>?","protocol":"https","host":["api","lytics","io"],"path":["api","entity","<TABLE>","<IDENTIFIER>","<IDENTIFIER VALUE>"],"query":[{"key":"fields","value":"location","type":"text","disabled":true}]}},"response":[],"_postman_id":"6488eff3-84f6-47fc-9611-a25ad3558395"},{"name":"Get Metric","id":"3ec6bfc8-af63-4709-9902-f2fdf36af44e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{api_token}}","type":"text"}],"url":{"raw":"https://api.lytics.io/api/metric?","protocol":"https","host":["api","lytics","io"],"path":["api","metric"],"query":[{"key":"aggregation","value":"sum","disabled":true},{"key":"dimension","value":"stream","disabled":true},{"key":"dimension_id","value":"default","disabled":true},{"key":"dimension_type","value":"size","disabled":true}]}},"response":[],"_postman_id":"3ec6bfc8-af63-4709-9902-f2fdf36af44e"},{"name":"Recommend","id":"b1b3b919-236f-48ba-8f6c-6c016fa9f781","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{api_token}}","type":"text"}],"url":"https://api.lytics.io/api/content/recommend/<TABLE>/<IDENTIFIER>/<IDENTIFIER VALUE>"},"response":[],"_postman_id":"b1b3b919-236f-48ba-8f6c-6c016fa9f781"},{"name":"Post Event","id":"ebdf5a63-27e8-423e-9cc3-09b195d9a0f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/javascript","type":"text"},{"key":"Authorization","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"Your event\": \"goes here\"\n}"},"url":"https://api.lytics.io/collect/json/default"},"response":[],"_postman_id":"ebdf5a63-27e8-423e-9cc3-09b195d9a0f4"},{"name":"Get Segment","id":"f66777b0-782d-40f4-8b93-fdc2fd3e2e14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{api_token}}","type":"text"}],"url":"https://api.lytics.io/api/segment/<SEGMENT ID>"},"response":[],"_postman_id":"f66777b0-782d-40f4-8b93-fdc2fd3e2e14"},{"name":"Create Segment","id":"edf89180-af1a-4550-8485-04d1cbc3a815","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{api_token}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\":\"Most Active Users\",\n    \"segment_ql\": \"FILTER AND (visitct > 5,lastvisit_ts >= \\\"now-30d\\\", score_momentum >  10)\",\n    \"slug_name\":\"our_test_activelist\",\n    \"is_public\": true,\n    \"description\":\"a description of what this is for\",\n    \"tags\":[\"email_personalization\",\"product\"]\n}"},"url":"https://api.lytics.io/api/segment"},"response":[],"_postman_id":"edf89180-af1a-4550-8485-04d1cbc3a815"},{"name":"Get Segment Size","id":"6456b6ba-387d-4fdc-9399-6ecc516d4027","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{api_token}}","type":"text"}],"url":"https://api.lytics.io/api/segment/<SEGMENT ID>/size"},"response":[],"_postman_id":"6456b6ba-387d-4fdc-9399-6ecc516d4027"},{"name":"Get Segment Members","id":"80938c4b-5e22-42f1-bffb-5bd0acb2e0ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{api_token}}","type":"text"}],"url":{"raw":"https://api.lytics.io/api/segment/<SEGMENT ID>/scan?","protocol":"https","host":["api","lytics","io"],"path":["api","segment","<SEGMENT ID>","scan"],"query":[{"key":"start","value":"","type":"text","disabled":true}]}},"response":[],"_postman_id":"80938c4b-5e22-42f1-bffb-5bd0acb2e0ff"},{"name":"Get Subscriptions","id":"2c8e524c-95ff-43cb-a7b0-7b27501e7f23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{api_token}}","type":"text"}],"url":"https://api.lytics.io/api/subscription"},"response":[],"_postman_id":"2c8e524c-95ff-43cb-a7b0-7b27501e7f23"},{"name":"Create Webhook Subscription","id":"6aead6dd-1dba-4500-956b-12bf261984bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\": \"<YOUR URL>\"\n    , \"segment_ids\": [\"<SEGMENT IDS TO EXPORT>\"]\n    , \"withbackfill\": false\n    , \"channel\" : \"webhook\"\n    , \"name\" : \"<EXPORT NAME>\"\n    , \"description\": \"<What is this subscription for?>\"\n}"},"url":"https://api.lytics.io/api/subscription"},"response":[],"_postman_id":"6aead6dd-1dba-4500-956b-12bf261984bf"}]}