Event API

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

post
S2S event

/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": {
...
}
}

For Geo or User-Agent resolving you should configure an enrichment rule. Read more about enrichment rules.

Configuration of Authorization