Skip to main content
POST
/
v1
/
agents
/
sessions
/
{session_id}
/
feedback
Submit Feedback
curl --request POST \
  --url https://api.mixpeek.com/v1/agents/sessions/{session_id}/feedback \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message_id": "<string>",
  "rating": "<string>",
  "feedback_text": "<string>"
}
'
{
  "session_id": "<string>",
  "message_id": "<string>",
  "rating": "<string>",
  "stored": true,
  "recorded_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

session_id
string
required

Session ID

Body

application/json

Request payload for submitting feedback on a message.

Attributes: message_id: The assistant message ID to provide feedback for rating: Feedback rating (positive or negative) feedback_text: Optional additional feedback text

Example: python request = SubmitFeedbackRequest( message_id="msg_abc123", rating="positive", feedback_text="This was very helpful!" )

message_id
string
required

Assistant message ID (REQUIRED)

rating
string
required

Feedback rating: 'positive' or 'negative' (REQUIRED)

Pattern: ^(positive|negative)$
feedback_text
string | null

Additional feedback text (OPTIONAL)

Response

Successful Response

Response for feedback submission.

Attributes: session_id: Session identifier message_id: Message that received feedback rating: The feedback rating submitted stored: Whether the exchange was stored to memory recorded_at: Timestamp when feedback was recorded

Example: python response = SubmitFeedbackResponse( session_id="ses_abc123", message_id="msg_xyz789", rating="positive", stored=True, recorded_at=current_time() )

session_id
string
required

Session identifier

message_id
string
required

Message identifier

rating
string
required

Feedback rating submitted

stored
boolean
required

Whether exchange was stored to memory

recorded_at
string<date-time>
required

Feedback timestamp