Skip to main content
POST
Add Feedback to Request
Add user feedback to a request to track quality and satisfaction. This endpoint allows you to mark requests as positive or negative, which can be used for filtering, analytics, and improving your LLM application.
Feedback ratings are boolean values: true for positive (thumbs up) and false for negative (thumbs down).

Path Parameters

string
required
The unique identifier of the request to add feedback to. This can be found in the Helicone-Id response header when making requests through Helicone.Example: req_abc123def456

Request Body

boolean
required
The feedback rating to apply to the request.
  • true - Positive feedback (thumbs up)
  • false - Negative feedback (thumbs down)

Response

null
Returns null on success.
string | null
Error message if the request failed.

Examples

Add Positive Feedback

Mark a request as positive:
cURL
TypeScript
Python

Add Negative Feedback

Mark a request as negative:
cURL
TypeScript

Use Cases

User Feedback Collection

Capture user feedback in your application:

Feedback-Based Analytics

Query requests filtered by feedback rating:

A/B Testing with Feedback

Track feedback across different prompt versions:

Automated Feedback Based on Criteria

Automatically add feedback based on response characteristics:

Updating Feedback

You can update existing feedback by making another POST request to the same endpoint with a new rating value. The latest rating will override the previous one.

Get Request by ID

Retrieve request details including feedback

Query Requests

Query requests filtered by feedback rating

Add Scores

Add detailed evaluation scores instead of simple ratings

Add Properties

Add custom properties to requests

Best Practices

  • Capture Context: Use custom properties to tag requests before collecting feedback for better analysis
  • Track Changes: If users can change their feedback, consider logging the change history separately
  • Combine with Scores: Use feedback for quick user ratings and scores for detailed evaluation metrics
  • Filter by Feedback: Regularly review negatively rated requests to identify areas for improvement
  • A/B Testing: Use feedback to compare different prompt versions or model configurations