Annotations

Annotate a span, trace, or session

Validates values against immutable Score Config versions and writes one annotation-source event per Score to the _llm_scores stream.

post/api/{org_id}/annotations

Request

Path parameters

org_idstring required

Organization name

Request body

metadataunknown
refTimestampinteger required

Original evaluated object's timestamp in microseconds.

scopestring required

Evaluated target scope: span, trace, or session.

sessionIdstring nullable

Optional parent context for span/trace annotations.

sourceStreamstring required

Trace stream containing the evaluated target.

targetIdstring required

Span ID, trace ID, or session ID according to scope.

traceIdstring nullable

Required for span annotations; optional context for trace annotations.

Response

annotatedAtinteger required
annotationIdstring required
scoreIdsstring[] required

Changes

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