https://api.zeroeval.com
All requests require a Bearer token in the Authorization header:
Spans
Ingest Spans
SpanCreate[]
SpanRead[] (200)
LLM Cost Calculation
For automatic cost calculation on LLM spans, setkind to "llm" and include these attributes:
Cost is calculated as:
(inputTokens × inputPrice + outputTokens × outputPrice) / 1,000,000
Query Spans
Any unrecognized query parameter is treated as a tag filter (e.g.
?environment=production).
Response: SpanRead[] (200)
Get Span Attachments
Traces
Create Traces
TraceCreate[]
Response:
TraceRead[] (200)
Query Traces
Tag filters work the same as for spans.
Response:
TraceRead[] (200)
Each trace includes:
Sessions
Create Sessions
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
This endpoint is compatible with the OpenTelemetry Collector’s
otlphttp exporter. See OpenTelemetry for collector configuration.