Feedback
Create Feedback
This endpoint allows users to submit feedback for a particular interaction or response.
POST
/
feedback
Authorizations
x-portkey-api-key
string
headerrequiredBody
application/json
trace_id
string
requiredUnique identifier for the request trace.
value
integer
requiredFeedback value, an integer between -10 and 10.
weight
number
default: 1Weight of the feedback, a float between 0 and 1. Default is 1.0.
metadata
object
Additional metadata for the feedback.
Response
200 - application/json
status
string
success or failure
message
string
Confirmation message indicating successful feedback submission.
feedback_ids
string[]
Ids of Feedbacks created returned in the same order as input
Was this page helpful?