Skip to main content
Base URL: https://api.zeroeval.com All requests require a Bearer token in the Authorization header:
Get an API key from Settings → API Keys.

Spans

Ingest Spans

Send one or more spans. Traces and sessions referenced by the spans are auto-created if they don’t exist. Request body: SpanCreate[]
Response: SpanRead[] (200)

LLM Cost Calculation

For automatic cost calculation on LLM spans, set kind to "llm" and include these attributes: Cost is calculated as: (inputTokens × inputPrice + outputTokens × outputPrice) / 1,000,000

Query Spans

Retrieve spans with filtering, sorting, and pagination. Any unrecognized query parameter is treated as a tag filter (e.g. ?environment=production). Response: SpanRead[] (200)

Get Span Attachments

Returns all attachments (images, screenshots) for a span with presigned URLs. Response:

Traces

Create Traces

Create one or more traces. Traces are also auto-created when ingesting spans. Request body: TraceCreate[] Response: TraceRead[] (200)

Query Traces

Tag filters work the same as for spans. Response: TraceRead[] (200) Each trace includes:

Sessions

Create Sessions

Create one or more sessions. Sessions are also auto-created when ingesting spans with a session_id or session field. Request body: SessionCreate[] Response: SessionRead[] (200)

Query Sessions

Tag filters work the same as for spans. Response: SessionRead[] (200) Each session includes:

Feedback

To retrieve feedback (human reviews and judge evaluations) for spans, traces, or sessions, use the Feedback API.

OpenTelemetry (OTLP)

Ingest OTLP Traces

Accepts standard OpenTelemetry Protocol (OTLP) trace data in JSON or protobuf format. Headers: This endpoint is compatible with the OpenTelemetry Collector’s otlphttp exporter. See OpenTelemetry for collector configuration.