Read raw audit events

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

get/api/v1/data/audit/{id}

Request

  • Base URL
    https://moda.dev
  • Auth
    API key in header x-api-key

Path parameters

idstring required

OpenTelemetry trace_id or Moda trace ID (conversation_id).

Query parameters

kind'auto' | 'trace' | 'conversation'

Whether to interpret the ID as an OpenTelemetry trace_id, a Moda trace ID (conversation_id), or auto-detect.

include_raw'1'

When set to 1, attach the raw event body to each ingest row.

limitinteger

Maximum raw event rows to scan.

include_bodies'1'

When set to 1, keep prompt/response/attribute bodies on each span (strings over 8 KB are truncated with a marker). Omitted by default.

cursorstring

Keyset cursor from a previous response's summary.next_cursor; returns the next page.

max_bytesinteger

Page byte budget for clients with their own output limit; the page ends on an ingest-row boundary within it (a single larger row is still returned, with summary.over_byte_budget).

Response

Successful response.

object required

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

Changes

No recorded changes to this operation across all 1 revision of this API.