Spans
Evaluate Span
Submit an evaluation for a span
POST
Request
string
required
Bearer token with your API key:
Bearer tr_your_api_keystring
required
The span ID to evaluate (e.g.,
sp_abc123def456)string
required
The evaluator key. Currently only
quality is supported.number
required
The evaluation score. Use
1 for positive or 0 for negative.string
Optional note explaining the evaluation
Response
string
Unique identifier for the evaluation
string
Key of the evaluator used
string
Display name of the evaluator
number
The evaluation score
string
Source of the evaluation (e.g.,
api, dashboard)string | null
Optional note explaining the evaluation
string
ISO 8601 timestamp
Authorizations
API key starting with tr_
Path Parameters
The span ID to evaluate (e.g., sp_abc123def456)
Body
application/json
Response
Evaluation created
Unique identifier for the evaluation
Key of the evaluator used
Display name of the evaluator
The evaluation score
Source of the evaluation (e.g., api, dashboard)
Optional note explaining the evaluation
ISO 8601 timestamp of creation

