Create Feedback

Create new feedback

This endpoint allows users to submit feedback for a particular interaction or response.

POSThttps://api.portkey.ai/v1/feedback
Body
trace_id*string

Unique identifier for the request trace.

value*integer

Feedback value, an integer between -10 and 10.

weightnumber (float)

Weight of the feedback, a float between 0 and 1. Default is 1.0.

metadataobject

Additional metadata for the feedback.

Response

Feedback successfully saved

Body
statusstring

success or failure

messagestring

Confirmation message indicating successful feedback submission.

feedback_idsarray of string

Ids of Feedbacks created returned in the same order as input

Response
{
  "status": "text",
  "message": "text",
  "feedback_ids": [
    "text"
  ]
}

Last updated