Record user feedback for traces
/api/v1/feedback endpoint allows you to record user feedback for traces. This is essential for:
/api/v1/traces.Example: "trace_a3f9c2e1b8d4f7a6c9e2""qa_evaluation_result_bgNzRGaJjv8T4obgJEWy38vA""positive" — User found the result helpful/correct"negative" — User found the result unhelpful/incorrect0.0 and 1.0 (e.g., 0.85 for 4.25/5 stars)"positive" or 0.85"The response was too technical and difficult to understand."answer — The correct answercategory — Correct classificationexplanation — Why the original was wrong{"answer": "We offer a 60-day guarantee, not 30 days."}{"name": "Jane Smith", "email": "jane.smith@example.com"}YYYY-MM-DDTHH:mm:ss.sssZExample: "2025-12-22T10:31:00.000Z""success" when the feedback is successfully recorded.| Status Code | Error | Solution |
|---|---|---|
| 400 | Invalid request format | Check JSON syntax and required fields |
| 401 | Invalid API key | Verify your API key is correct |
| 404 | Trace not found | Ensure trace_id matches an existing trace |
| 429 | Rate limit exceeded | Implement exponential backoff retry |