---
title: "Read raw audit events"
method: GET
path: "/api/v1/data/audit/{id}"
---

# Read raw audit events

`GET /api/v1/data/audit/{id}`

## Request

- Base URL: `https://moda.dev`
- URL: `https://moda.dev/api/v1/data/audit/{id}`
- Auth: API key in header `x-api-key`

Reads the non-deduplicated raw span set for an OpenTelemetry trace_id or a Moda trace ID (the conversation_id field).

## Path parameters

- `id` string, required

## Query parameters

- `kind` 'auto' | 'trace' | 'conversation'
- `include_raw` '1'
- `limit` integer
- `include_bodies` '1'
- `cursor` string
- `max_bytes` integer

## Response `200`

Successful response.

- object: Audit events and their raw span/trace context, when available.

## Other responses

- `401`: The x-api-key header is missing, invalid, or revoked.
- `404`: The requested resource was not found.

---

[API](https://skmtc.dev/moda-dev/apis/moda-data-api.md) - [All operations](https://skmtc.dev/moda-dev/apis/moda-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/moda-dev/apis/moda-data-api/revisions/19a11ad88cf6?raw)
