---
title: "Get Event Api"
method: GET
path: "/api/events/{event_id}"
---

# Get Event Api

`GET /api/events/{event_id}`

## Path parameters

- `event_id` string, required

## Response `200`

Successful Response

- EventDetail
  - `id` string, required
  - `timestamp` string, date-time, required
  - `event_type` 'http' | 'http_incoming' | 'log' | 'exception' | 'test', required
  - `summary` string, required
  - `app` string
  - `session` string
  - `hierarchy` EventHierarchyOutput — Runtime correlation and grouping context captured with one event.
    - `runtime` RuntimeCorrelation — Runtime identity owned or referenced by one captured event.
      - `trace_id` string, required
      - `span_id` string, required
      - `parent_span_id` string, nullable
      - `role` 'operation' | 'annotation', required
      - `origin` 'smello' | 'otel'
    - `group_memberships` union[]
      - union
        - PytestGroupMembership — Position in pytest's collection hierarchy.
          - `kind` 'pytest'
          - `test_directory` GroupReference — Stable group identity and its display label.
            - `id` string, required
            - `label` string, required
          - `test_file` GroupReference, required — Stable group identity and its display label.
            - `id` string, required
            - `label` string, required
          - `test_class` GroupReference — Stable group identity and its display label.
            - `id` string, required
            - `label` string, required
          - `test_case` GroupReference, required — Stable group identity and its display label.
            - `id` string, required
            - `label` string, required
        - HttpRequestGroupMembership — Position in the outgoing HTTP target hierarchy.
          - `kind` 'http_request'
          - `hostname` GroupReference, required — Stable group identity and its display label.
            - `id` string, required
            - `label` string, required
  - `data` union, required
    - HttpEventData — HTTP capture as stored and served. Flat by convention.
      - `event_type` 'http'
      - `app` string
      - `session` string
      - `duration_ms` integer, required
      - `method` string, required
      - `url` string, required
      - `host` string, required
      - `request_headers` object, required
      - `request_body` string, nullable
      - `request_body_size` integer
      - `status_code` integer, nullable
      - `response_headers` object
      - `response_body` string, nullable
      - `response_body_size` integer
      - `error` HttpOperationError — Exception raised by an outgoing HTTP operation.
        - `type` string, required
        - `message` string
        - `module` string, nullable
      - `library` string
      - `python_version` string
      - `smello_version` string
    - HttpIncomingEventData — Incoming HTTP request as stored and served.
      - `event_type` 'http_incoming'
      - `app` string
      - `session` string
      - `duration_ms` integer, required
      - `method` string, required
      - `path` string, required
      - `url` string, required
      - `host` string, required
      - `route` string, nullable
      - `client_ip` string, nullable
      - `request_headers` object, required
      - `request_body` string, nullable
      - `request_body_size` integer
      - `status_code` integer, required
      - `response_headers` object, required
      - `response_body` string, nullable
      - `response_body_size` integer
      - `exc_type` string, nullable
      - `exc_value` string, nullable
      - `framework` string
      - `python_version` string
      - `smello_version` string
    - LogEventData
      - `event_type` 'log'
      - `app` string
      - `session` string
      - `level` string, required
      - `logger_name` string, required
      - `message` string, required
      - `pathname` string, nullable
      - `lineno` integer, nullable
      - `func_name` string, nullable
      - `exc_text` string, nullable
      - `extra` object, nullable
    - ExceptionEventData
      - `event_type` 'exception'
      - `app` string
      - `session` string
      - `exc_type` string, required
      - `exc_value` string
      - `exc_module` string, nullable
      - `traceback_text` string
      - `frames` ExceptionFrame[]
        - `filename` string, required
        - `lineno` integer, nullable
        - `function` string, nullable
        - `context_line` string, nullable
        - `pre_context` string[]
        - `post_context` string[]
    - TestEventData
      - `event_type` 'test'
      - `app` string
      - `session` string
      - `framework` string
      - `framework_version` string
      - `python_version` string
      - `smello_version` string
      - `run_id` string, required
      - `worker_id` string
      - `test_id` string, required
      - `parameter_id` string, nullable
      - `name` string, required
      - `path` string, required
      - `line` integer, nullable
      - `status` 'passed' | 'failed' | 'error' | 'skipped' | 'xfailed' | 'xpassed', required
      - `duration_ms` number, required
      - `setup_duration_ms` number
      - `call_duration_ms` number
      - `teardown_duration_ms` number
      - `fixtures` string[]
      - `failures` TestFailure[]
        - `phase` 'setup' | 'call' | 'teardown', required
        - `exception_type` string, nullable
        - `message` string
        - `traceback_text` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/smelloscope/apis/smello.md) · [All operations](https://skmtc.net/smelloscope/apis/smello/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smelloscope/smello/versions/71ae1afbca8d/schema)
