{"info":{"_postman_id":"5978ebe1-f5e8-4dcc-9d8d-46c3256758d9","name":"LayerFive Rest API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"18412992","collectionId":"5978ebe1-f5e8-4dcc-9d8d-46c3256758d9","publishedId":"UVCCdi8k","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-11-18T06:17:59.000Z"},"item":[{"name":"Request Access Token","id":"1751467b-65ed-4d48-8a17-7e78824323e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"layerfiverest@layerfive.com","type":"text"},{"key":"password","value":"Layerfive2021!","type":"text"}]},"url":"https://idl5.layerfive.com/api/get_token/","description":"<p>This endpoint will give you an access token that you will use to generate an api key.</p>\n","urlObject":{"protocol":"https","path":["api","get_token",""],"host":["idl5","layerfive","com"],"query":[],"variable":[]}},"response":[{"id":"d15ec251-c615-478a-83af-2989ef89f723","name":"Request Access Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"layerfiverest@layerfive.com","type":"text"},{"key":"password","value":"Layerfive2021!","type":"text"}]},"url":"https://idl5.layerfive.com/api/get_token/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Nov 2021 08:35:19 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.7"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"3246"}],"cookie":[],"responseTime":null,"body":"{\n    \"access\": \"dHJ1ZSwiZXhwb3J0IjpmYWxzZX0sIkZhY2Vib29rQWRzIjp7InZpZXciOnRydWUsImV4cG9ydCI6ZmFsc2V9LCJHb29nbGVUcmVuZCI6eyJ2aWV3Ijp0cnVlLCJleHBvcnQiOmZhbHNlfSwiT3JkZXJDcmVkaXQiOnsidmlldyI6dHJ1ZSwiZXhwb3J0IjpmYWxzZX0sIkNoYW5uZWxCbG9jayI6eyJ2aWV3Ijp0cnVlLCJleHBvcnQiOmZhbHNlfSwiR29vZ2xlVmlzaXRzIjp7InZpZXciOnRydWUsImV4cG9ydCI6ZmFsc2V9LCJGYWNlYm9va1RyZW5kIjp7InZpZXciOnRydWUsImV4cG9ydCI6ZmFsc2V9LCJGYWNlYm9va1Zpc2l0cyI6eyJ2aWV3Ijp0cnVlLCJleHBvcnQiOmZhbHNlfSwiTGF5ZXJmaXZlVHJlbmQiOnsidmlldyI6dHJ1ZSwiZXhwb3J0IjpmYWxzZX0sIk9yZGVyQ292ZXJhZ2VCbG9jayI6eyJ2aWV3Ijp0cnVlLCJleHBvcnQiOmZhbHNlfSwiT3JkZXJCeVNvdXJjZXNCbG9jayI6eyJ2aWV3Ijp0cnVlLCJleHBvcnQiOmZhbHNlfSwiT3JkZXJEYXlzVG9Db252QmxvY2siOnsidmlldyI6dHJ1ZSwiZXhwb3J0IjpmYWxzZX19LCJjcmVhdGUiOmZhbHNlLCJkZWxldGUiOmZhbHNlLCJleHBvcnQiOmZhbHNlLCJtb2R1bGUiOnRydWV9fSwiZmlyc3RfdGltZV9sb2dpbiI6ZmFsc2V9fQ.H3yK_fnF_QO1z31p6708c9akz5udLe6yOvO_4s0idUQ\",\n    \"is_agency\": false\n}"}],"_postman_id":"1751467b-65ed-4d48-8a17-7e78824323e9"},{"name":"Request Api Key","id":"fef74963-185b-4d5b-93c8-fe7694d35296","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://idl5.layerfive.com/api/v1/oauth/api_key","description":"<p>This endpoint will give you an api key. You need to pass that api key in an <strong>l5key</strong> header to all of our api endpoints.</p>\n","urlObject":{"protocol":"https","path":["api","v1","oauth","api_key"],"host":["idl5","layerfive","com"],"query":[],"variable":[]}},"response":[{"id":"238e3811-d0b4-437c-a6ef-8dc15d3ef184","name":"Request api key","originalRequest":{"method":"GET","header":[],"url":"https://idl5.layerfive.com/api/v1/oauth/api_key"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Nov 2021 09:54:01 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.7"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"122"}],"cookie":[],"responseTime":null,"body":"{\n    \"responseCode\": 200,\n    \"responseData\": \"MzcxKzEwMadsdvj4jKJd\"\n}"}],"_postman_id":"fef74963-185b-4d5b-93c8-fe7694d35296"},{"name":"Get ID graph","id":"d73814f5-b006-4a86-8b31-ca7efb522c95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"l5key","value":"<api_key>","type":"text"}],"url":"https://idl5.layerfive.com/api/v1/get_id_graph?child_id=<customer's email>","description":"<p>This API endpoint provides the customer id graph that includes the source from which a customer originated, along with their first and last seen dates. The child_id here refers to the customer's email. By providing the customers' email, you can track their engagement over time.</p>\n","urlObject":{"protocol":"https","path":["api","v1","get_id_graph"],"host":["idl5","layerfive","com"],"query":[{"key":"child_id","value":"<customer's email>"}],"variable":[]}},"response":[{"id":"e9ec0faf-c6ea-4f38-bb8e-52ad5e2d9d9f","name":"Get ID graph","originalRequest":{"method":"GET","header":[{"key":"l5key","value":"MzcxKzEwMadsdvj4jKJd","type":"text"}],"url":{"raw":"https://idl5.layerfive.com/api/v1/get_id_graph?child_id=test@layerfive.com","protocol":"https","host":["idl5","layerfive","com"],"path":["api","v1","get_id_graph"],"query":[{"key":"child_id","value":"test@layerfive.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Nov 2021 11:21:41 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.7"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"618"}],"cookie":[],"responseTime":null,"body":"{\n  \"l5_person_id\": {\n    \"value\": \"eb1257f6-1f33-4e27-dc-ea2ffbe\",\n    \"data\": [\n      {\n        \"user_id\": \"846e9daff37e19a56e5656c1569\",\n        \"type\": \"l5fingerprint\",\n        \"first_seen\": \"2024-08-25T10:17:48.046000\",\n        \"last_seen\": \"2024-08-25T10:17:48.403000\",\n        \"source\": [\n          \"Website:L5Tracker\"\n        ]\n      },\n      {\n        \"user_id\": \"adef0b81-9a6d-4e2d-b303-182dc40\",\n        \"type\": \"Cookie\",\n        \"first_seen\": \"2024-08-25T10:17:48.046000\",\n        \"last_seen\": \"2024-08-25T10:17:48.403000\",\n        \"source\": [\n          \"Website:L5Tracker\"\n        ]\n      },\n      {\n        \"user_id\": \"122.112.82.55\",\n        \"type\": \"ip_address\",\n        \"first_seen\": \"2024-08-25T10:17:48.046000\",\n        \"last_seen\": \"2024-08-25T10:17:48.403000\",\n        \"source\": [\n          \"Website:L5Tracker\"\n        ]\n      }\n    ]\n  }\n}"}],"_postman_id":"d73814f5-b006-4a86-8b31-ca7efb522c95"},{"name":"Get Visits","event":[{"listen":"test","script":{"id":"783f9708-bf9a-4136-bafe-4476acb3e4d0","exec":[""],"type":"text/javascript","packages":{}}}],"id":"541d4f35-0971-49aa-ab07-bca092bd5f6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"l5key","value":"<api_key>","type":"text"}],"url":"https://idl5.layerfive.com/api/v1/eventsessions?start_date=YYYY-MM-DD&end_date=YYYY-MM-DD&updated_at=YYYY-MM-DDTHH:MM:SS&page=1&limit=250","description":"<p>This API endpoint empowers you to seamlessly fetch visit data based on a designated date range and delve into specific details that pique your interest. Uncover valuable insights, like the visitor's source (media source), pivotal order details such as the unique order identifier (order ID) and the total revenue generated by a specific order, journey trajectory, geographical location, and devices utilized, etc. The beauty lies in its adaptability, allowing you to tailor the information retrieval process to meet your precise analytical needs.</p>\n<p>You can create a unique visit identifier by amalgamating <strong>‘l5_person_id’, ‘session_id’, ‘event_date’ and ‘event_type’</strong>, providing you with a comprehensive gateway to access detailed visit information. The key to precision lies in harnessing the <strong>‘updated_at’</strong> date filter, enabling you to effortlessly retrieve visit details within a specified timeframe. Whether you're interested in events occurring after or before a particular <strong>'updated_at'</strong> date, this endpoint empowers you to curate the most pertinent visit data for your in-depth analysis.</p>\n<p><strong>Provide either updated_at or start_date &amp; end_date.</strong></p>\n<p><strong>Limit param can be upto 500. By default it is 250.</strong></p>\n","urlObject":{"protocol":"https","path":["api","v1","eventsessions"],"host":["idl5","layerfive","com"],"query":[{"key":"start_date","value":"YYYY-MM-DD"},{"key":"end_date","value":"YYYY-MM-DD"},{"key":"updated_at","value":"YYYY-MM-DDTHH:MM:SS"},{"key":"page","value":"1"},{"key":"limit","value":"250"}],"variable":[]}},"response":[{"id":"826d2b9f-06a2-4ad7-baaf-ba3253715a69","name":"Get Event Sessions","originalRequest":{"method":"GET","header":[{"key":"l5key","value":"Mzc0KzE4MytwYXdhbi5rdW1hckBsYXllcmZpdmUuY29tK","type":"text"}],"url":{"raw":"https://idl5.layerfive.com/api/v1/eventsessions?start_date=2024-01-01&end_date=2024-01-03&page=1&limit=100","protocol":"https","host":["idl5","layerfive","com"],"path":["api","v1","eventsessions"],"query":[{"key":"start_date","value":"2024-01-01"},{"key":"end_date","value":"2024-01-03"},{"key":"page","value":"1"},{"key":"limit","value":"100"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 25 Jan 2024 09:42:02 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"36243"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 2,\n    \"data\": [\n        {\n            \"l5_person_id\": \"55d-4a24-8f4a-b02cf14fb51d\",\n            \"session_id\": \"ad6be-4867-9b6e-9b346359a24f\",\n            \"event_date\": \"2024-01-01T08:02:16.844000\",\n            \"event_type\": \"page_view\",\n            \"utm_campaign\": \"blog\",\n            \"utm_content\": \"website\",\n            \"media_source\": \"amplify\",\n            \"country\": \"NL\",\n            \"device_type\": \"Mobile\",\n            \"order_id\": null,\n            \"page\": \"/collection/product_1\",\n            \"company_name\": null,\n            \"company_domain\": null,\n            \"company_type\": null\n        },\n        {\n            \"l5_person_id\": \"73-4d37-acc2-926cc2b464d7\",\n            \"session_id\": \"sdsd-4796-afd2-f5ed93904d81\",\n            \"event_date\": \"2024-01-01T08:02:20.085000\",\n            \"event_type\": \"page_view\",\n            \"utm_campaign\": null,\n            \"utm_content\": null,\n            \"media_source\": \"Direct\",\n            \"country\": \"US\",\n            \"device_type\": \"Unknown\",\n            \"order_id\": null,\n            \"page\": \"/collection/category/product_1\",\n            \"company_name\": null,\n            \"company_domain\": null,\n            \"company_type\": null\n        }\n    ]\n}"}],"_postman_id":"541d4f35-0971-49aa-ab07-bca092bd5f6b"},{"name":"Get Conversion Details","id":"6b0df8c3-5d99-4b4b-9359-bec401553262","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"l5key","value":"<api_key>","type":"text"}],"url":"https://idl5.layerfive.com/api/v1/conversion/details?start_date=2024-09-08&end_date=2024-09-09&page=1&limit=2","description":"<p>This endpoint will give you the conversion details within the give date range. Provide updated_at if you need data after a single date.</p>\n<h3 id=\"params\">Params</h3>\n<ul>\n<li><p>start_date ('YYY-MM-DD')</p>\n</li>\n<li><p>end_date ('YYY-MM-DD')</p>\n</li>\n<li><p>since_date ('YYY-MM-DDTHH:MM:SS')</p>\n</li>\n<li><p>page</p>\n</li>\n<li><p>limit</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","conversion","details"],"host":["idl5","layerfive","com"],"query":[{"key":"start_date","value":"2024-09-08"},{"key":"end_date","value":"2024-09-09"},{"key":"page","value":"1"},{"key":"limit","value":"2"}],"variable":[]}},"response":[{"id":"cbd8269f-e65b-4ea0-89f2-ca2277c001a6","name":"Get Conversion Details","originalRequest":{"method":"GET","header":[{"key":"l5key","value":"MzY5KzEwMStsYWxpdEBsYXllcmZpdmUuY29tK1RydWU=:uOAsYoCa33CuoEAwr7R-xWfF3yMy9mbbj9duN_se7bg","type":"text"}],"url":{"raw":"https://idl5.layerfive.com/api/v1/conversion/details?start_date=2024-09-08&end_date=2024-09-09&page=1&limit=2","protocol":"https","host":["idl5","layerfive","com"],"path":["api","v1","conversion","details"],"query":[{"key":"start_date","value":"2024-09-08"},{"key":"end_date","value":"2024-09-09"},{"key":"page","value":"1"},{"key":"limit","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0 (Ubuntu)"},{"key":"Date","value":"Wed, 11 Sep 2024 13:21:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"844"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Accept, Authorization, Cache-Control, Content-Type, DNT, If-Modified-Since, Keep-Alive, Origin, User-Agent, X-Requested-With"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 29,\n    \"data\": [\n        {\n            \"event_date\": \"2024-09-08T00:05:24.425000\",\n            \"conv_name\": \"submit_form\",\n            \"l5_person_id\": \"7b831d01-3fe9-4bb2-b794-39408\",\n            \"email\": null,\n            \"cookie_id\": \"b81056b9-f2ba-8235-84351aca4251\",\n            \"session_id\": \"4168ebba-40ac-b2a0-f76e6a7c0216\",\n            \"media_source\": \"Direct\",\n            \"utm_campaign\": null,\n            \"utm_content\": null,\n            \"utm_term\": null,\n            \"conversion_data\": {\n                \"order_id\": \"76668\",\n                \"form_details\": \"[{'name': 's', 'value': 'components database', 'nodeName': 'INPUT', 'type': 'text'}]\"\n            }\n        },\n        {\n            \"event_date\": \"2024-09-08T10:51:13.385000\",\n            \"conv_name\": \"submit_form\",\n            \"l5_person_id\": \"1b05f483-647a-4df8-ae5e-95f5\",\n            \"email\": null,\n            \"cookie_id\": \"d69b1cab-6d61-48ed-957682e0b\",\n            \"session_id\": \"82bec25c-0462-486-3e2906e3c687\",\n            \"media_source\": \"Google Ads\",\n            \"utm_campaign\": \"global general eims en\",\n            \"utm_content\": null,\n            \"utm_term\": null,\n            \"conversion_data\": {\n                \"order_id\": \"79933\",\n                \"form_details\": \"{'email': 'test@example.com', 'name': 'test go'}\"\n            }\n        }\n    ]\n}"}],"_postman_id":"6b0df8c3-5d99-4b4b-9359-bec401553262"},{"name":"Get Customer 360 View","id":"7d12442f-0e78-4fef-8ce3-eb5123b893aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"l5key","value":"<api_key>","type":"text"}],"url":"https://idl5.layerfive.com/api/v1/customer_360/<l5_person_id>","description":"<p>This endpoint will give you a customer 360 view in terms of his/her following below details</p>\n<ul>\n<li>Identities count of that user</li>\n<li>Identities associated with the user</li>\n<li>Customer Journey</li>\n</ul>\n<h4 id=\"path-parameter\">Path Parameter</h4>\n<ul>\n<li>l5_person_id</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","customer_360","<l5_person_id>"],"host":["idl5","layerfive","com"],"query":[],"variable":[]}},"response":[{"id":"f2e67b2f-4e36-4eca-954b-e33c9670601b","name":"Get a customer 360 view","originalRequest":{"method":"GET","header":[{"key":"l5key","value":"MzcxKzEwMadsdvj4jKJd","type":"text"}],"url":"https://idl5.layerfive.com/api/v1/customer_360/parent_id"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Nov 2021 10:58:20 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.7"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"14278"}],"cookie":[],"responseTime":null,"body":"{\n  \"l5_person_id\": {\n    \"value\": \"abec371-013-4074-a3a8-d0d439\",\n    \"data\": {\n    \"identities_count\": {\n        \"total_count\": 4\n    },\n    \"identities\": [\n        {\n            \"label\": \"Cookie\",\n            \"value\": \"6ec6ddf7-c308-a239-041993\"\n        },\n        {\n            \"label\": \"Shopify\",\n            \"value\": \"63166669\"\n        },\n        {\n            \"label\": \"email\",\n            \"value\": \"test@gmail.com\"\n        },\n        {\n            \"label\": \"IP Address\",\n            \"value\": \"91.114.352.16\"\n        }\n    ],\n    \"journey\": [\n        {\n            \"id\": 114543112,\n            \"session_id\": \"71232593-5b40-53df8aa39e69\",\n            \"event_type\": \"Visit\",\n            \"event_ts\": \"2022-11-28\",\n            \"media_source\": \"Email\",\n            \"refr_source\": \"Email\",\n            \"tr_orderid\": null,\n            \"utm_campaign\": \"(11/28/22) Cyber Monday\",\n            \"utm_content\": null,\n            \"user_journey\": [\n                \"/products/black-boots\"\n            ]\n        }\n    ],\n      \"company_info\": [\n        {\n          \"ip_address\": \"38.104.144.128\",\n          \"company_name\": \"Test\",\n          \"country\": \"United States\"\n        },\n        {\n          \"ip_address\": \"49.205.128.161\",\n          \"company_name\": \"Test Daily\",\n          \"country\": \"India\"\n        }\n      ]    \n    }\n  }\n}"}],"_postman_id":"7d12442f-0e78-4fef-8ce3-eb5123b893aa"},{"name":"Get Customer 360 View (By Email)","id":"233824a0-386c-415f-ae1c-1a3351e37562","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"l5key","value":"<api_key>","type":"text"}],"url":"https://idl5.layerfive.com/api/v1/customer_360/<customer's email>","description":"<p>This endpoint will give you a customer 360 view that will include the following details</p>\n<ul>\n<li>Identities count of that user</li>\n<li>Identities associated with the user</li>\n<li>Customer Journey</li>\n</ul>\n<h4 id=\"path-parameter\">Path Parameter</h4>\n<ul>\n<li>email</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","customer_360","<customer's email>"],"host":["idl5","layerfive","com"],"query":[],"variable":[]}},"response":[{"id":"4f45c3cc-8d1d-43f3-97d5-b769fc47210a","name":"Get a customer 360 view (By Email)","originalRequest":{"method":"POST","header":[{"key":"l5key","value":"MzcxKzEwMadsdvj4jKJd","type":"text"}],"url":"https://idl5.layerfive.com/api/v1/customer_360/<email>"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"identities_count\": {\n        \"total_count\": 4\n    },\n    \"identities\": [\n        {\n            \"label\": \"Cookie\",\n            \"value\": \"6ec6ddf7-c308-a239-041993\"\n        },\n        {\n            \"label\": \"Shopify\",\n            \"value\": \"63166669\"\n        },\n        {\n            \"label\": \"email\",\n            \"value\": \"test@gmail.com\"\n        },\n        {\n            \"label\": \"IP Address\",\n            \"value\": \"91.114.352.16\"\n        }\n    ],\n    \"journey\": [\n        {\n            \"id\": 114543112,\n            \"session_id\": \"71232593-5b40-53df8aa39e69\",\n            \"event_type\": \"Visit\",\n            \"event_ts\": \"2022-11-28\",\n            \"media_source\": \"Email\",\n            \"refr_source\": \"Email\",\n            \"tr_orderid\": null,\n            \"utm_campaign\": \"(11/28/22) Cyber Monday\",\n            \"utm_content\": null,\n            \"user_journey\": [\n                \"/products/black-boots\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"233824a0-386c-415f-ae1c-1a3351e37562"},{"name":"Get Customer Journey Details","id":"b77aef7b-fc1c-4a11-bc48-400c6df50785","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"l5key","value":"<api_key>","type":"text"}],"url":"https://idl5.layerfive.com/api/v1/customer_journey_details?file_format=csv&page=1&limit=250&event_date=2024-09-01","description":"<p>This endpoint returns the customer journey details of all known individuals since the provided event_date or the last 90 days of the journey for an email provided. If the event_date parameter is provided, the API will return the customer journey details of all known individuals since the provided event_date, as well as the last 90 days' journey details for individuals who became known since the event_date. In the absence of both parameters, this API will return the customer journey data of the last 24 hours.</p>\n<p>In other words, the API returns customer journey details for two different groups of individuals, depending on the parameters provided:</p>\n<p>If an email address is provided, the API returns the last 90 days' journey details for that email address.<br />If an event_date parameter is provided, the API returns the customer journey details for all known individuals since the provided event_date, as well as the last 90 days' journey details for individuals who became known since the event_date.<br />If neither parameter is provided, the API returns the last 24 hours of customer journey data for all known individuals.</p>\n<p>Here's an example of how this API endpoint could be used:</p>\n<p>Let's say there is a marketing campaign running from July 1, 2022 to August 31, 2022. We can use the API endpoint and specify the event_date parameter as \"2022-07-01\" and the API will return the journey details for all individuals who became known on or after July 1, 2022 (includes all individuals who have become known to the system since that date, regardless of whether they were already known prior to that date or not), as well as the last 90 days' journey details for those individuals who became known since July 1, 2022 (these individuals may have started their journey before this date, but they were not known to the system until after this date). This will allow us to see the journey details for all individuals who were potentially influenced by the marketing campaign during the specified time period.</p>\n<p>Alternatively, let's say we want to retrieve journey details for a specific email address, \"<a href=\"https://mailto:example@email.com\">example@email.com</a>\". We can use the API endpoint and specify the email address parameter as \"<a href=\"https://mailto:example@email.com\">example@email.com</a>\" and the API will return the journey details for that email address for the last 90 days. This will allow us to see the journey details for a specific individual and understand their engagement with the brand over the last 90 days.</p>\n<p>Finally, if we don't specify any parameter, the API will return the journey details for all known individuals for the last 24 hours. This could be useful if we want to get a quick overview of recent customer engagement with the brand.</p>\n<h2 id=\"query-params\">QUERY PARAMS</h2>\n<ul>\n<li>event_date (format: YYYY-MM-DD)</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","customer_journey_details"],"host":["idl5","layerfive","com"],"query":[{"key":"file_format","value":"csv"},{"key":"page","value":"1"},{"key":"limit","value":"250"},{"key":"event_date","value":"2024-09-01"}],"variable":[]}},"response":[{"id":"5668c077-23d5-4bcd-9b56-333341793f22","name":"Get Customer Journey Details","originalRequest":{"method":"GET","header":[{"key":"l5key","value":"<api_key>","type":"text"}],"url":"https://idl5.layerfive.com/api/v1/customer_journey_details"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 05:24:19 GMT"},{"key":"Content-Type","value":"text/csv"},{"key":"Content-Length","value":"113897"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Disposition","value":"attachment; filename=\"customer_journey_details.csv\""},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Access-Control-Allow-Headers","value":"Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE, OPTIONS"}],"cookie":[],"responseTime":null,"body":"{\r\n  \"total\": 23,\r\n  \"data\": [\r\n    {\r\n      \"l5_person_id\": \"02e60-d641-4cd2-a458-3b5e0a5aba3d\",\r\n      \"cookie\": \"5aa74b34-492e-94ee-8f2784e932f8\",\r\n      \"event_date\": \"2024-08-24T10:10:36.038000\",\r\n      \"session_id\": \"7e28a-93b2-4667-8ef7-9ff74d5af77a\",\r\n      \"event_type\": \"page_view\",\r\n      \"num_of_pages_visited\": 1,\r\n      \"pages_visited\": [\r\n        \"/signup\"\r\n      ],\r\n      \"media_source\": \"Google\",\r\n      \"campaign\": null,\r\n      \"ad\": null,\r\n      \"content_downloaded\": \"\"\r\n    },\r\n    {\r\n      \"l5_person_id\": \"05e58be-4719-8c36-ea881e48a548\",\r\n      \"cookie\": \"38fd39c-4fcb-8f7d-e2f3edbe65a3\",\r\n      \"event_date\": \"2024-08-15T08:20:56.492000\",\r\n      \"session_id\": \"01bed031f-45e1-b284-2a07a820498e\",\r\n      \"event_type\": \"page_view\",\r\n      \"num_of_pages_visited\": 1,\r\n      \"pages_visited\": [\r\n        \"/lp/products/infrastructure-wglp\"\r\n      ],\r\n      \"media_source\": \"Google Ads\",\r\n      \"campaign\": \"EVER-GREEN_NB_SEARCH_INFRASTRUCTURE_EMEA_MENA_EN\",\r\n      \"ad\": null,\r\n      \"content_downloaded\": \"\"\r\n    }\r\n  ]\r\n}"}],"_postman_id":"b77aef7b-fc1c-4a11-bc48-400c6df50785"},{"name":"GET Known Identity Details","id":"5c9d762f-3067-4633-a7cc-a28149c48b91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[{"key":"l5key","value":"<api_key>","type":"text"}],"url":"https://idl5.layerfive.com/api/v1/known_identity_details?start_date=2023-03-21&end_date=2023-03-27&page=1&limit=250","description":"<p>This API allows users to fetch the email addresses of all known identities who became known between a specified date range. The API endpoint accepts the start date and end date parameters and returns a list of email addresses for the known identities within that date range.<br />The start_date is a required parameter while end_date is an optional parameter.<br />In the absence of the end_date, the API will return a list of email addresses for the known identities from the start_date provided by the user, till the current date.</p>\n<p>The accepted format for start_date or end_date is YYYY-MM-DD.</p>\n","urlObject":{"protocol":"https","path":["api","v1","known_identity_details"],"host":["idl5","layerfive","com"],"query":[{"key":"start_date","value":"2023-03-21"},{"key":"end_date","value":"2023-03-27"},{"key":"page","value":"1"},{"key":"limit","value":"250"}],"variable":[]}},"response":[{"id":"25360a6c-e772-43e7-becf-f7acceaf44c9","name":"GET Known Identity Details","originalRequest":{"method":"GET","header":[{"key":"l5key","value":"MzY2KzEwMStzdXNoaWxAbGF5ZXJmaXZlLmNvbStUcnVl:U9VOGwVzmbFPs8JU06oQcm0JBrM","type":"text"}],"url":{"raw":"https://idl5.layerfive.com/api/v1/known_identity_details?start_date=2023-03-21&end_date=2023-03-27","protocol":"https","host":["idl5","layerfive","com"],"path":["api","v1","known_identity_details"],"query":[{"key":"start_date","value":"2023-03-21"},{"key":"end_date","value":"2023-03-27"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 17 Aug 2023 08:21:36 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"135480"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 600,\n    \"data\": [\n        {\n            \"l5_person_id\": \"8ac19bfd-2d28-748a57359204\",\n            \"email\": \"willyw@yahoo.com\",\n            \"known_since\": \"2023-03-23T01:32:02\"\n        },\n        {\n            \"l5_person_id\": \"a64689c4-42-4ad1-8917c85ddb00\",\n            \"email\": \"stcnett@gmail.com\",\n            \"known_since\": \"2023-03-22T15:48:30\"\n        },\n        {\n            \"l5_person_id\": \"e87b0b33-sdsd-a5ee-0f5e29146b2f\",\n            \"email\": \"mer@gmail.com\",\n            \"known_since\": \"2023-03-23T02:28:20\"\n        }\n    ]\n}"}],"_postman_id":"5c9d762f-3067-4633-a7cc-a28149c48b91"},{"name":"Get Media Attribution","id":"523001ef-43f8-421c-af2b-63f0fdc36171","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"l5key","value":"<api_key>","type":"text"}],"url":"https://idl5.layerfive.com/api/v1/get_media_attribution?start_date=2023-06-01&end_date=2023-06-15&page=1&limit=250","description":"<p>This endpoint will give you the performance by media within the give date range like the number of orders and total revenue by a source.</p>\n<h3 id=\"params\">Params</h3>\n<ul>\n<li>start_date ('YYY-MM-DD')</li>\n<li>end_date ('YYY-MM-DD')</li>\n<li>page</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","get_media_attribution"],"host":["idl5","layerfive","com"],"query":[{"key":"start_date","value":"2023-06-01"},{"key":"end_date","value":"2023-06-15"},{"key":"page","value":"1"},{"key":"limit","value":"250"}],"variable":[]}},"response":[{"id":"6ab6d2b0-6bf1-4127-aeb1-69db14d3f63e","name":"Get Media Attribution","originalRequest":{"method":"GET","header":[{"key":"l5key","value":"<api_key>","type":"text"}],"url":{"raw":"https://idl5.layerfive.com/api/v1/get_media_attribution?start_date=2023-06-01&end_date=2023-06-15&page=1","protocol":"https","host":["idl5","layerfive","com"],"path":["api","v1","get_media_attribution"],"query":[{"key":"start_date","value":"2023-06-01"},{"key":"end_date","value":"2023-06-15"},{"key":"page","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 16 Jun 2023 18:09:23 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"53073"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 820,\n    \"data\": [\n        {\n            \"event_date\": \"2023-06-01\",\n            \"media_source\": \"Afterpay\",\n            \"attr_firstclick_order\": 0,\n            \"attr_firstclick_revenue\": 0,\n            \"attr_lastclick_order\": 0,\n            \"attr_lastclick_revenue\": 0,\n            \"attr_anyclick_order\": 0,\n            \"attr_anyclick_revenue\": 0,\n            \"attr_linearclick_order\": 0,\n            \"attr_linearclick_revenue\": 0,\n            \"attr_viewthrough_orders\": null,\n            \"attr_viewthrough_revenue\": null,\n            \"first_time_session\": 6,\n            \"repeat_session\": 0,\n            \"total_visits\": 6,\n            \"impressions\": null,\n            \"cost\": null,\n            \"clicks\": null,\n            \"adplatform_reported_conv\": null,\n            \"adplatform_reported_rev\": null\n        },\n        {\n            \"event_date\": \"2023-06-01\",\n            \"media_source\": \"Bing\",\n            \"attr_firstclick_order\": 0,\n            \"attr_firstclick_revenue\": 0,\n            \"attr_lastclick_order\": 3,\n            \"attr_lastclick_revenue\": 353.1,\n            \"attr_anyclick_order\": 3,\n            \"attr_anyclick_revenue\": 353.1,\n            \"attr_linearclick_order\": 1.5,\n            \"attr_linearclick_revenue\": 176.55,\n            \"attr_viewthrough_orders\": -0.01,\n            \"attr_viewthrough_revenue\": 0,\n            \"first_time_session\": 5,\n            \"repeat_session\": 15,\n            \"total_visits\": 19,\n            \"impressions\": null,\n            \"cost\": null,\n            \"clicks\": null,\n            \"adplatform_reported_conv\": null,\n            \"adplatform_reported_rev\": null\n        }\n    ]\n}"}],"_postman_id":"523001ef-43f8-421c-af2b-63f0fdc36171"},{"name":"Get Ad Attribution","id":"e6336b38-0e3c-40ab-be5c-62a0fe048b5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"l5key","value":"<api_key>","type":"text"}],"url":"https://idl5.layerfive.com/api/v1/get_ad_attribution?start_date=2023-06-01&end_date=2023-06-15&page=1&limit=250","description":"<p>This endpoint will give you the performance by ad within the give date range like the number of orders and total revenue by a source.</p>\n<h3 id=\"params\">Params</h3>\n<ul>\n<li>start_date ('YYY-MM-DD')</li>\n<li>end_date ('YYY-MM-DD')</li>\n<li>page</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","get_ad_attribution"],"host":["idl5","layerfive","com"],"query":[{"key":"start_date","value":"2023-06-01"},{"key":"end_date","value":"2023-06-15"},{"key":"page","value":"1"},{"key":"limit","value":"250"}],"variable":[]}},"response":[{"id":"2bc77874-2f3d-4c46-b63d-a80c426b3cfc","name":"Get Ad Attribution","originalRequest":{"method":"GET","header":[{"key":"l5key","value":"<api_key>","type":"text"}],"url":{"raw":"https://idl5.layerfive.com/api/v1/get_ad_attribution?start_date=2023-06-01&end_date=2023-06-15&page=1","protocol":"https","host":["idl5","layerfive","com"],"path":["api","v1","get_ad_attribution"],"query":[{"key":"start_date","value":"2023-06-01"},{"key":"end_date","value":"2023-06-15"},{"key":"page","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 16 Jun 2023 18:03:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"89639"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 500,\n    \"data\": [\n        {\n            \"event_date\": \"2023-06-01\",\n            \"media_source\": \"Afterpay\",\n            \"campaign_name\": \"abcd\",\n            \"ad_name\": \"\",\n            \"attr_firstclick_order\": 0,\n            \"attr_firstclick_revenue\": 0,\n            \"attr_lastclick_order\": 0,\n            \"attr_lastclick_revenue\": 0,\n            \"attr_anyclick_order\": 0,\n            \"attr_anyclick_revenue\": 0,\n            \"attr_linearclick_order\": 0,\n            \"attr_linearclick_revenue\": 0,\n            \"first_time_session\": 6,\n            \"repeat_session\": 0,\n            \"total_visits\": 6,\n            \"impressions\": 0,\n            \"cost\": 0,\n            \"clicks\": 0,\n            \"adplatform_reported_rev\": 0,\n            \"adplatform_reported_conv\": 0\n        },\n        {\n            \"event_date\": \"2023-06-01\",\n            \"media_source\": \"Bing\",\n            \"campaign_name\": \"\",\n            \"ad_name\": \"\",\n            \"attr_firstclick_order\": 0,\n            \"attr_firstclick_revenue\": 0,\n            \"attr_lastclick_order\": 3,\n            \"attr_lastclick_revenue\": 353.1,\n            \"attr_anyclick_order\": 3,\n            \"attr_anyclick_revenue\": 353.1,\n            \"attr_linearclick_order\": 1.5,\n            \"attr_linearclick_revenue\": 176.55,\n            \"first_time_session\": 5,\n            \"repeat_session\": 15,\n            \"total_visits\": 19,\n            \"impressions\": 0,\n            \"cost\": 0,\n            \"clicks\": 0,\n            \"adplatform_reported_rev\": 0,\n            \"adplatform_reported_conv\": 0\n        }\n    ]\n}"}],"_postman_id":"e6336b38-0e3c-40ab-be5c-62a0fe048b5f"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"31860ff7-b313-4d52-8b54-03762d4c26c2"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"5a76fe6f-05b2-446f-88a7-8ed2120e97b0"}}]}