Submit Feedback
Changed onSubmit feedback on an assistant message.
When positive feedback is received, the conversation exchange is stored to memory for future context. When negative feedback is received, the exchange is NOT stored. This enables learning from quality interactions.
Args: request: FastAPI request with tenant context session_id: Session identifier payload: Feedback request
Returns: SubmitFeedbackResponse with feedback status
Raises: NotFoundError: If session or message not found
Example: bash curl -X POST http://localhost:8000/v1/agents/sessions/ses_abc123/feedback \ -H "Authorization: Bearer {api_key}" \ -H "X-Namespace: {namespace_id}" \ -H "Content-Type: application/json" \ -d '{ "message_id": "msg_xyz789", "rating": "positive", "feedback_text": "Very helpful response!" }'
Request
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/agents/sessions/{session_id}/feedback
- Auth: HTTP bearer and API key in header X-Namespace
Path parameters
Session ID
Request body
Example request
{
"feedback_text": "Great response!",
"message_id": "msg_abc123",
"rating": "positive"
}Response
Successful Response
Changes
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning
- info
the endpoint scheme security
BearerAuth AND NamespaceHeaderwas added to the API
- info