Event API

EventNative has API for direct event collection. You can use it for sending events directly from apps or backends.

post
S2S event

https://instance.com/api/v1/s2s/event?token=5f15eba2-db58-11ea-87d0-0242ac130003
Authorization server secret token might be provided either as query parameter (token) or HTTP header (X-Auth-Token).
Request
Response
Request
Headers
X-Auth-Token
optional
string
server secret token
Query Parameters
token
optional
string
server secret token
Response
200: OK
{"status": "ok"}

The body is any JSON object.

Body
{
"event_id": "x96f60pzk1",
"event_data": {
...
},
"page_ctx": {
"page_title": "EventNative Demo",
"referer": "",
"url": "http://track-demo.ksense"
},
"device_ctx": {
"ip": "10.10.10.10",
"user_agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36",
},
"user": {
...
}
}

Geo resolving will be from device_ctx.ip field. If you do it on your side put resolving geo to device_ctx.location JSON node than geo resolving will be skipped.

User-agent resolving will be from device_ctx.user_agent field. If you do it on your side put resolving user agent to device_ctx.parsed_ua JSON node than user agent resolving will be skipped.

Configuration of Authorization