---
title: "Get User Event By ID"
method: GET
path: "/api/analytics/events/{event_id}"
tags: ["Analytics"]
---

# Get User Event By ID

`GET /api/analytics/events/{event_id}`

This route allows you to view an user event by its ID. You can pass in any type of event and get the details for that event.

## Path parameters

- `event_id` string, uuid, required

## Headers

- `TR-Dataset` string, uuid, required

## Response `200`

The event for the request

- EventData — EventData represents a single analytics event
  - `created_at` string, required — The time the event was created.
  - `dataset_id` string, uuid, required — The unique identifier for the dataset the event is associated with.
  - `event_name` string, required — The name of the event, e.g. "Added to Cart", "Purchased", "Viewed Home Page", "Clicked", "Filter Clicked", "Followup Query".
  - `event_type` string, required — The type of event, "add_to_cart", "purchase", "view", "click", "filter_clicked", "followup_query"
  - `id` string, uuid, required — The unique identifier for the event
  - `is_conversion` boolean, nullable — Whether the event is a conversion event.
  - `items` string[], required — The items associated with the event. This could be a list of stringified json chunks for search events, or a list of items for add_to_cart, purchase, view, and click events.
  - `metadata` unknown
  - `request_id` string, nullable — The unique identifier for the request the event is associated with.
  - `request_type` string, nullable — The type of request the event is associated with.
  - `updated_at` string, required — The time the event was last updated.
  - `user_id` string, nullable — The user identifier associated with the event.

## Other responses

- `400` — Service error relating to getting an event

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/revisions/84583e7c9fc1/schema)
