Create Feedback
Create new feedback for a thread.
Supports three types of feedback:
- Thread-level: Provide only thread_id (feedback on entire conversation)
- Run-level: Provide thread_id + langsmith_run_id (feedback on specific step)
- Trace-level: Provide thread_id + langsmith_trace_id (feedback on specific trace)
Requires CREATE permission on ANALYSIS resources.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Request model for creating feedback.
Required fields:
- key: Feedback category (e.g., 'helpfulness', 'accuracy')
- feedback_type: Type of feedback (thumbs_up, thumbs_down, rating, comment, custom)
- thread_id: Thread to provide feedback on
- organization_id: Organization context
Feedback category key, such as message_helpfulness or answer_accuracy.
"message_helpfulness"
Feedback input type. Use thumbs_up/thumbs_down for binary sentiment, rating for scored feedback, comment for free text, or custom for app-specific values.
thumbs_up, thumbs_down, rating, comment, custom "thumbs_up"
Thread UUID the feedback applies to.
"11111111-1111-1111-1111-111111111111"
Organization UUID that owns the thread being rated.
"22222222-2222-2222-2222-222222222222"
Response
Successful Response
Response model for feedback.
Feedback key/category (e.g., 'helpfulness', 'accuracy')
Type of feedback
thumbs_up, thumbs_down, rating, comment, custom Internal thread ID
Organization ID
User who provided the feedback
Numeric score (0-1 for thumbs, 1-5 for rating)
String value for the feedback
Additional text comment
LangSmith run ID
LangSmith trace ID