---
title: "List events"
method: GET
path: "/csr/data"
tags: ["Events and Alerts"]
---

# List events

`GET /csr/data`

## Request

- Base URL: `https://dashboard.hologram.io/api/1`
- URL: `https://dashboard.hologram.io/api/1/csr/data`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/hologram/apis/hologram-rest-api-v1/docs/csr/data/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a paginated list of events

## Query parameters

- `deviceid` integer
- `deviceids` string
- `timestart` integer
- `timeend` integer
- `topicname` string
- `topicnames` string
- `limit` integer
- `startafter` integer

## Response `200`

OK

- CSRDataMessageListResponse
  - `success` boolean: Indicates whether the request was successful.
  - `limit` integer
  - `size` integer
  - `continues` boolean
  - `lastid` integer: ID of the last record returned, for cursor-based pagination
  - `links` PaginationLinks
    - `path` string: The API endpoint path
    - `base` string: The API base URL
    - `next` string: URL to retrieve the next page of results
  - `data` CSRDataMessage[]
    - `id` integer: Record ID
    - `logged` string: Timestamp when the message was logged (UTC)
    - `expires` string, nullable: Timestamp when the message expires (UTC)
    - `orgid` integer: Organization ID
    - `deviceid` integer: Device ID
    - `record_id` string: Unique record identifier string
    - `device_metadata` string, nullable: Optional metadata attached to the device at the time of message
    - `data` string: Message payload data
    - `tags` string[]: Tags associated with the message
    - `matched_rules` object[]: Rules that matched this message
      - `ruleid` integer: ID of the matched rule
      - `error` boolean: Whether the rule produced an error
      - `result_data` string: Output data from the rule

## Other responses

- `401`: Unauthorized
- `503`: Endpoint temporarily disabled

---

[API](https://skmtc.dev/hologram/apis/hologram-rest-api-v1.md) - [All operations](https://skmtc.dev/hologram/apis/hologram-rest-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/hologram/apis/hologram-rest-api-v1/revisions/1bc07dcd1631?raw)
