{"info":{"_postman_id":"18ddc4dd-0e6d-4880-8c2d-1d977a56af0a","name":"Interakt Track APIs","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"5841400","collectionId":"18ddc4dd-0e6d-4880-8c2d-1d977a56af0a","publishedId":"TVYQ2ZWn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-11-05T13:18:08.000Z"},"item":[{"name":"Track User","event":[{"listen":"prerequest","script":{"id":"457d3311-ab37-42f7-981e-4dd2caff6760","exec":["var date = new Date()","pm.environment.set(\"iso_timestamp\", date.toISOString());"],"type":"text/javascript"}}],"id":"7e549092-3b5c-4fcd-8d7d-fb880b275ebc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"<p>Content type will always be application/json</p>\n"},{"key":"Authorization","value":"Basic {{API_Key}}","description":"<p>Base 64 encoded key, which is visible in developer settings on interakt</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"userId\": \"12035448-36a0-3aa24\",\n    \"phoneNumber\": \"9999999999\",\n    \"countryCode\": \"+91\",\n    \"traits\": {\n        \"name\": \"John Doe\",\n        \"email\": \"johndoe@gmail.com\"\n    },\n    \"createdAt\": \"2020-11-05T13:26:52.926Z\"\n}"},"url":"https://api.interakt.ai/v1/public/track/users/","urlObject":{"protocol":"https","path":["v1","public","track","users",""],"host":["api","interakt","ai"],"query":[],"variable":[]}},"response":[{"id":"ebbb29c5-ac3f-4c5d-b049-21270effe1b5","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic WU9VUl9BUElfS0VZOg==","description":"Base64 encoded \"<API_KEY>:\"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"userId\": \"12035448-36a0-3aa24\",\n    \"phoneNumber\": \"9999999999\",\n    \"countryCode\": \"+91\",\n    \"traits\": {\n        \"name\": \"John Doe\",\n        \"email\": \"johndoe@gmail.com\"\n    },\n    \"createdAt\": \"2020-11-05T13:26:52.926Z\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.interakt.ai/v1/public/track/users/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 05 Nov 2020 13:00:44 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.8.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"57"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": true,\n    \"message\": \"Customer with e9c4d7e4-70f2-488a-b916-b9014a021a2f updated successfully\"\n}"}],"_postman_id":"7e549092-3b5c-4fcd-8d7d-fb880b275ebc"},{"name":"Track Events","event":[{"listen":"prerequest","script":{"id":"310f4a64-3483-4ebe-a70a-d7f4bde9c953","exec":["var date = new Date()","pm.environment.set(\"iso_timestamp\", date.toISOString());"],"type":"text/javascript"}}],"id":"7758133d-9025-4997-922f-36fd15895df0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text","description":"<p>Content type will always be application/json</p>\n"},{"key":"Authorization","value":"Basic {{API_Key}}","type":"text","description":"<p>Base 64 encoded key, which is visible in developer settings on interakt</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"userId\": \"12035448-36a0-3aa24\",\n    \"phoneNumber\": \"9999999999\",\n    \"countryCode\": \"+91\",\n    \"event\": \"Product Added To Cart\",\n    \"traits\": {\n        \"productName\": \"Shoes\",\n        \"quantity\": 2,\n        \"price\": 500,\n        \"currency\": \"INR\"\n    },\n    \"createdAt\": \"2020-11-05T13:26:52.926Z\"\n}"},"url":"https://api.interakt.ai/v1/public/track/events/","urlObject":{"protocol":"https","path":["v1","public","track","events",""],"host":["api","interakt","ai"],"query":[],"variable":[]}},"response":[{"id":"99bf3dd5-dae9-4739-ad2d-5e51bc075b5a","name":"Successful Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic WU9VUl9BUElfS0VZOg==","description":"Base64 encoded \"<API_KEY>:\"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"userId\": \"12035448-36a0-3aa24\",\n    \"event\": \"Product Added To Cart\",\n    \"traits\": {\n        \"productName\": \"Shoes\",\n        \"quantity\": 2,\n        \"price\": 500,\n        \"currency\": \"INR\"\n    },\n    \"createdAt\": \"2020-11-05T13:26:52.926Z\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.interakt.ai/v1/public/track/events/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 05 Nov 2020 09:59:33 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.8.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"54"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": true,\n    \"message\": \"Event created successfully\",\n    \"id\": \"730ec207-d74e-45f3-9e3c-51e5f988fc51\"\n}"}],"_postman_id":"7758133d-9025-4997-922f-36fd15895df0"}]}