{"_id":"5920784231039a0f0008e5bc","__v":4,"githubsync":"","parentDoc":null,"project":"5668fab608f90021008e882f","user":"5668fa9755e4b32100935d41","category":{"_id":"569742f459a6692d003fad8f","pages":["56974f48d231880d00676e6a","56975101d231880d00676e6c","5697511369393517000c82c8","5697512159a6692d003fada0","569752668560a60d00e2c268","569752898560a60d00e2c26b","569752add231880d00676e70","569752bd8400d52d00dd56ab","569752c769393517000c82cc","56e9cf33fae86b0e00e5394f","56e9cfe2af392b170035f68f"],"project":"5668fab608f90021008e882f","version":"5668fab608f90021008e8832","__v":11,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-01-14T06:40:52.350Z","from_sync":false,"order":1,"slug":"api-integration-rest-api","title":"REST API (For App/Backend)"},"version":{"_id":"5668fab608f90021008e8832","__v":19,"project":"5668fab608f90021008e882f","createdAt":"2015-12-10T04:08:22.769Z","releaseDate":"2015-12-10T04:08:22.769Z","categories":["5668fab708f90021008e8833","569740f124490c3700170a64","569742b58560a60d00e2c25d","569742bd0b09a41900b2446c","569742cd69393517000c82b3","569742f459a6692d003fad8f","569743020b09a41900b2446d","5697430b69393517000c82b5","56a17776470ae00d00c30642","56a2c48a831e2a0d0069b1ad","56b535757bccae0d00e9a1cd","56e1ff6aa49fdc0e005746b5","57e1c88115bf6522002a5e4e","57fa65275ba65a17008b988f","57fbeea34002550e004c032e","58474584889b6c2d00fb86e9","58475dcc64157f0f002f1907","587e7b5158666c2700965d4e","58a349fc30852819007ba083"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.18.0","version":"1.18"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-05-20T17:09:22.117Z","link_external":false,"link_url":"https://documenter.getpostman.com/view/2166502/liftigniter/7TFGvSV#5de5e059-de7e-409e-88eb-964ac338d364","sync_unique":"","hidden":false,"api":{"method":"post","results":{"codes":[{"code":"{\n    \"status\": \"OK: 2 activities successfully recorded.\",\n    \"statusCode\": 200\n}","language":"json","status":200,"name":""},{"name":"","code":"{\n    \"status\": \"Bad Request: Request body must contain valid JSON.\",\n    \"statusCode\": 400\n}\n","language":"json","status":400}]},"settings":"59207748be16890f00ef1ebb","examples":{"codes":[{"name":"cURL successful","code":"curl -H \"Content-Type: application/json\" -H \"x-api-key: YOUR_API_KEY\" -d '{\n  \"activities\" : [\n    {\n      \"timestamp\" : 1400464843310,\n      \"type\" : \"pageview\",\n      \"url\" : \"http://www.dummydomain.com/a-beautiful-sea.html\",\n      \"userId\" : \"de305d54-75b4-431b-adb2-eb6b9e546013\",\n      \"referrer\" : \"http://www.dummydomain.com/holiday-resorts.html\"\n    },\n    {\n      \"timestamp\" : 1400464843314,\n      \"type\" : \"widget_shown\",\n      \"url\" : \"http://www.dummydomain.com/a-nice-beach.html\",\n      \"userId\" : \"de305d54-75b4-431b-adb2-eb6b9e546013\",\n      \"browsingHistory\" : [\"http://www.dummydomain.com/nice-fruits.html\", \"http://www.dummydomain.com/holiday-resorts.html\",\"http://www.dummydomain.com/a-beautiful-sea.html\",\"http://www.dummydomain.com/a-nice-beach.html\"],\n      \"source\" : \"LI\",\n      \"widgetName\" : \"right-rail\",\n      \"referrer\" : \"http://www.dummydomain.com/a-beautiful-sea.html\",\n      \"visibleItems\" : [\"http://www.dummydomain.com/hot-balloon.html\", \"http://www.dummydomain.com/cute-ketchup.html\"]\n    }    \n  ]\n}' https://query.petametrics.com/v2/activity | python -mjson.tool","language":"curl"}]},"auth":"required","params":[{"_id":"5920761e31039a0f0008e5ba","ref":"","in":"header","required":false,"desc":"API key that identifies your organization (note that you can use EITHER this OR the apiKey parameter in the body).","default":"","type":"string","name":"x-api-key"},{"_id":"59207a9142500c1900996a93","ref":"","in":"body","required":false,"desc":"Array, each of whose objects is a JSON for activity, as described in the documentation for the single activity endpoint (excluding apiKey).","default":"","type":"array_object","name":"activities"}],"url":"/activity"},"isReference":true,"order":4,"body":"You can use this endpoint to send multiple activities together. For each individual activity, you should format it like the JSON body of the [/activity (single activity) endpoint](doc:activity) (excluding the apiKey field).","excerpt":"**There are lots of optional parameters, scroll down to documentations for further details on each parameter.**","slug":"activity-1","type":"link","title":"/activity (multiple activities)"}

/activity (multiple activities)

**There are lots of optional parameters, scroll down to documentations for further details on each parameter.**