Skip to main content

What is Request Feedback?

Request Feedback allows you to enrich your API calls with user feedback and other data after the initial request has been completed. This is useful for gathering insights on the quality of the model’s response, which can be used for analytics, auditing, and improving the user experience.
View request logs in the Requesty Console.
With this feature, you can:
  • Capture user ratings and comments on AI responses.
  • Track which responses were helpful or unhelpful.
  • Add contextual data from your platform after the fact.
  • Build a feedback loop to fine-tune models and prompts.

Benefits

  • Quality Monitoring: Continuously track the performance and quality of your AI models.
  • User Satisfaction: Understand what your users think about the AI responses they receive.
  • Data-Driven Improvements: Use feedback data to identify areas for improvement in your prompts, models, or workflows.
  • Enhanced Auditing: Add context to requests for better auditing and analysis.
Tip: Standardize your feedback data structure (e.g., ratings, tags) to make it easier to analyze across your applications.

How It Works

  1. After a chat completion, you get an ID in the response (e.g. rqsty-cmpl-...).
  2. Use this ID to send a PATCH request to https://api-v2.requesty.ai/v1/interaction/{request_id}/feedback, authenticated with the same Requesty API key.
  3. Include your feedback as string key-value pairs under the feedback field.
  4. Retrieve the stored feedback at any time with a GET request to the same URL, and view it in your Requesty dashboard.
Important notes
  • Feedback values must be strings (e.g. "rating": "5", not "rating": 5).
  • You can PATCH feedback multiple times per request.
  • Every subsequent call merges the new values.
  • If a new feedback call contains an existing key, the new value overwrites the existing one.
  • Interactions are stored asynchronously — if you send feedback immediately after the completion, the endpoint may briefly return 404. Retry after a few seconds.

Python Example

Here’s how you can send feedback after a chat completion call:

Node.js Example

Here’s how you can send feedback using Node.js.
Last modified on September 11, 2026