System Events Query

Get list of system events.

# get the dashboard news items
curl -s -H "Authorization: $LIOKEY" \
  -XGET "https://api.lytics.io/api/event?query=dashboard_news" | jq '.'

# get list of all segments created in last 2 weeks
curl -s -H "Authorization: $LIOKEY" \
  -XGET "https://api.lytics.io/api/event?type=segment&start=now-2w&limit=100&verb=created" | jq '.'


# get list of all events performed by user X

# 1) first find a user id
curl -s -H "Authorization: $LIOKEY" \
  -XGET "https://api.lytics.io/api/user/[email protected]" | jq '.'

# 2) get the id for that user
curl -s -H "Authorization: $LIOKEY" \
  -XGET "https://api.lytics.io/api/event?type=user&id=USER_ID_FROM_PREVIOUS" | jq '.'


Language
Authorization
Header
Click Try It! to start a request and see the response here!