---
title: "Get a named event"
method: GET
path: "/api/{org_id}/rum/analytics/named_events/{id}"
tags: ["Product Analytics"]
---

# Get a named event

`GET /api/{org_id}/rum/analytics/named_events/{id}`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/rum/analytics/named_events/{id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/rum/analytics/named_events/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required
- `id` string, required

## Query parameters

- `app` string, required

## Response `200`

Success

- NamedEvent
  - `app` string, required
  - `createdAt` integer, required
  - `createdBy` string, required
  - `id` string, required
  - `name` string, required
  - `rules` Rule[], required
    - union: One way a named event matches: a page view, a click, or an error.
      - object
        - `name` string, nullable
        - `onPage` string, nullable
        - `op` 'eq' | 'prefix' | 'regex' | 'param' | 'ref', required
        - `t` 'view', required
        - `value` string, nullable
      - object
        - `onPage` string, nullable
        - `op` 'eq' | 'in' | 'prefix' | 'suffix' | 'contains' | 'regex': How a rule value is compared with a field: `in` lists every value, the rest take one each.
        - `t` 'action', required
        - `targets` string[]
        - `value` string, nullable
      - object
        - `onPage` string, nullable
        - `op` 'eq' | 'in' | 'prefix' | 'suffix' | 'contains' | 'regex', required: How a rule value is compared with a field: `in` lists every value, the rest take one each.
        - `t` 'error', required
        - `value` string, required
  - `updatedAt` integer, required
  - `updatedBy` string, required
  - `version` integer, required

## Other responses

- `400`: Invalid id or app
- `404`: Not found
- `500`: Internal error

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
