---
title: "System Events"
description: "<p>Get internal Lytics system events. These events</p><p>are generally related to internal changes to state of</p><p>an account.   Common changes are CRUD Operations (Create,</p><p>Update, Delete) of *Account*, *Admin User*, etc.</p>"
url: "https://www.contentstack.com/docs/developers/apis/lytics-api/v1/system-events"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-11-05"
---

# System Events

Get internal Lytics system events. These events

are generally related to internal changes to state of

an account. Common changes are CRUD Operations (Create,

Update, Delete) of \*Account\*, \*Admin User\*, etc.

## System Events Query

### System Events Query

**GET** `/api/event`

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/user.email@yourdomain.com" | 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 '.'

\`\`

#### Query Parameters

- **account_id** (optional)
  Your Lytics account ID.
- **before** (optional)
  Start fetching items with dates older than: "now-3d" (now-2h, now-1w, "2016-03-03"). Date math, or absolute date.
- **after** (optional)
  Start fetching items with dates after: "now-3d" (now-2h, now-1w, "2016-03-03"). Date math, or absolute date.
- **limit** (optional)
  Should segments this user is member of be included?
- **verb** (optional)
  Verb (created, updated, deleted, status, clustered)
- **type** (optional)
  Type of Object (entity, segment, work, account, user)
- **id** (optional)
  Id of Object (entity, segment, work, account, user)

#### Headers

- **Authorization** (optional)

#### Sample Response

```json
{
  "data": [
    {
      "id": "13564999017e8b0e9994ff16411fd19b",
      "ts": "1465584982676",
      "priority": 2,
      "subject_type": "topic-document",
      "subject_id": "-1894399319812759219",
      "verb": "created",
      "account_id": "1234abcdefgh"
    },
    {
      "id": "c57172d7d22e1c7ac4c80ce713e6e7cb",
      "ts": "1465844458666",
      "priority": 2,
      "subject_type": "entity",
      "subject_id": "user/email/a.user@gmail.com",
      "verb": "clustered",
      "related": [
        {
          "type": "segment",
          "id": "791734b084019d99c82a475264464304"
        }
      ],
      "account_id": "1234abcdefgh",
      "context": {
        "in": "2016-06-13T18:58:29Z"
      }
    }
  ],
  "message": "success",
  "status": 200
}
```

## System Event Fetch

### System Event Fetch

**GET** `/api/event/:id`

Get Single System Event

#### Headers

- **Authorization** (optional)

#### Sample Response

```json
{
  "data": {
    "id": "c57172d7d22e1c7ac4c80ce713e6e7cb",
    "ts": "1465844458666",
    "priority": 2,
    "subject_type": "entity",
    "subject_id": "user/email/a.user@gmail.com",
    "verb": "clustered",
    "related": [
      {
        "type": "segment",
        "id": "791734b084019d99c82a475264464304"
      }
    ],
    "account_id": "1234abcdefgh",
    "context": {
      "in": "2016-06-13T18:58:29Z"
    }
  },
  "message": "success",
  "status": 200
}
```