---
title: "Get single event"
method: GET
path: "/csr/data/{recordId}"
tags: ["Events and Alerts"]
---

# Get single event

`GET /csr/data/{recordId}`

## Request

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

Alias of GET /data/messages/{recordId}.

## Path parameters

- `recordId` integer, required

## Response `200`

OK

- CSRDataMessageResponse
  - `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
  - `data` CSRDataMessage: A Cloud Services Router device data message.
    - `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

- `400`: Invalid record ID
- `401`: Unauthorized

---

[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)
