Request
Bearer token with your API key: Bearer tr_your_api_key
The span ID to evaluate (e.g., sp_abc123def456)
The evaluator key. Currently only quality is supported.
The evaluation score. Use 1 for positive or 0 for negative.
Optional note explaining the evaluation
Response
Unique identifier for the evaluation
Key of the evaluator used
Display name of the evaluator
Source of the evaluation (e.g., api, dashboard)
Optional note explaining the evaluation
curl -X POST https://app.tracia.io/api/v1/spans/sp_abc123def456/evaluations \
-H "Authorization: Bearer tr_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"evaluatorKey": "quality",
"value": 1,
"note": "Response was accurate and helpful"
}'
{
"id": "eval_xyz789",
"evaluatorKey": "quality",
"evaluatorName": "Quality",
"value": 1,
"source": "api",
"note": "Response was accurate and helpful",
"createdAt": "2024-01-15T10:35:00.000Z"
}
API key starting with tr_
The span ID to evaluate (e.g., sp_abc123def456)
The evaluator key. Currently only quality is supported.
The evaluation score. Use 1 for positive or 0 for negative.
Optional note explaining the evaluation
Unique identifier for the evaluation
Key of the evaluator used
Display name of the evaluator
Source of the evaluation (e.g., api, dashboard)
Optional note explaining the evaluation
ISO 8601 timestamp of creation