Overview
This endpoint submits quality feedback (good or bad) for a chat response. Use feedback to help Uppzy improve answer quality over time and to track which questions are being answered well.
Feedback can only be submitted for completed requests. The feedback rating is stored and can be viewed in the dashboard analytics.
Authentication
Requires API key in theX-API-Key header:
Request body
The session ID from the original chat request.
The request ID from the chat response. Used to identify which specific Q&A pair the feedback applies to.
The feedback rating. One of:
good, bad.good: The answer was helpful and accurate.bad: The answer was incomplete, inaccurate, or irrelevant.
Request example
Response schema
Always
ok on success.The request ID for which feedback was submitted.
The feedback value submitted (
good or bad).The timestamp when the feedback was recorded. Omitted if feedback was already submitted for this request.
Response example
Error responses
400 Bad Request
Missing or invalid fields.- Missing
session_id,request_id, orfeedback - Invalid UUID format for IDs
- Feedback value not
goodorbad
401 Unauthorized
API key is missing, invalid, expired, or revoked.403 Forbidden
The API key’s plan does not include M2M API access.404 Not Found
The request does not exist or does not belong to the site.409 Conflict
The request has not been completed yet (still pending or failed).500 Internal Server Error
An unexpected error occurred.Implementation tips
When to collect feedback
Collect feedback after the user has had time to read and evaluate the answer:- Chat UI pattern: Show thumbs up/down buttons below each answer
- Batch pattern: Collect feedback periodically (e.g., after 5 responses)
- Queue pattern: Submit feedback asynchronously after the user rates
Feedback collection in a chat interface
Idempotency
Submitting the same feedback twice returns the original submission time:good to bad (or vice versa) updates it:
Tracking feedback for analytics
Store feedback in your application to track quality trends:Error handling and retries
Feedback submission is non-critical; if it fails, log it but don’t block the user:Dashboard integration
Feedback is visible in the Uppzy dashboard:- Go to Analytics → Feedback to see satisfaction rates over time
- Filter by date range, question topic, or confidence level
- Use low-satisfaction answers to prioritize document improvements
Related endpoints
- M2M Chat (Sync) — Send a message
- M2M Chat (Async) — Non-blocking messages
- M2M Session List — List conversations
- M2M Site Statistics — Feedback trends