{ "uuid": "8df02e74-0c36-4882-8b08-6fa3491e93bb", "lastMigration": 29, "name": "Redeal Analytics API", "endpointPrefix": "api/1.0.0", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "d7e96068-953e-48f0-b19f-9f5ffb508c20", "documentation": "get events for analytics", "method": "get", "endpoint": "events", "responses": [ { "uuid": "44d00913-fe24-424e-9daf-abd8e049da29", "body": "[\n {\n \"agent\": \"Mozilla/5.0 (iPhone; CPU iPhone OS 14_4_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1\",\n \"browsertype\": \"Chrome\",\n \"channel\": \"Whatsapp\",\n \"click\": \"Minimize\",\n \"clicks\": 1,\n \"code\": \"\",\n \"company\": \"a89d82faf093c43c9c28659d\",\n \"contact\": \"MailChimp\",\n \"cost\": 1.1,\n \"costcurrency\": \"EUR\",\n \"currency\": \"EUR\",\n \"deal\": \"afe76fe60defa9000288e4ff\",\n \"deal name\": \"My deal\",\n \"delay\": 473,\n \"denyreason\": \"Deal is expired\",\n \"device\": \"a75984d7a1d1a4379\",\n \"devicetype\": \"Mobile\",\n \"email\": \"a89d82faf093c43c9c28659d\",\n \"emailaddrsha256\": \"cc63f389e0957aeacc9db39b8a0c2e7792aae3eb76af8909d30d9eab1f7309ac\",\n \"flow\": \"afe76fe60defa9000288e4ff\",\n \"flowstep\": \"FriendImpression\",\n \"flowtype\": \"Start\",\n \"impression\": \"Widget\",\n \"ip\": \"0.0.0.0\",\n \"latitude\": 51.4353,\n \"longitude\": -0.3096,\n \"optin\": \"Redeal\",\n \"os\": \"iOS\",\n \"resolution\": \"360x760\",\n \"revenue\": 10.5,\n \"role\": \"Ambassador\",\n \"session\": \"a909d7aff093c4423ccee7cc\",\n \"site\": \"a909d7aff093c4423ccee7cc\",\n \"site name\": \"My site\",\n \"timestamp\": \"2016-08-29T09:12:33.001Z\",\n \"total\": 12.6,\n \"user\": \"a909d7aff093c4423ccee7cc\",\n \"userlanguage\": \"de-DE\"\n }\n]", "latency": 0, "statusCode": 200, "label": "analytics results matching criteria", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f2fd40c1-76ea-4099-9e1f-474a7d0000f0", "body": "", "latency": 0, "statusCode": 400, "label": "bad input parameter", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "d7e96068-953e-48f0-b19f-9f5ffb508c20" } ] }