Event API

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

Authorization server secret token might be provided either as query parameter or HTTP header

POST: /api/v1/s2s/event?token=$server_API_key_secret

Parameters:

  • X-Auth-Token: required

  • token: required

Payload:

{
  "event_id": "x96f60pzk1",
  "event_data": {
    ...
  },
  "page_ctx": {
    "page_title": "Luden 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": {
    ...
  }
}

Response:

{"status": "ok"}

Last updated