创建反馈

Create new feedback

post
/feedback

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

Authorizations
x-portkey-api-keystringRequired
Body
trace_idstringRequired

Unique identifier for the request trace.

valueinteger · min: -10 · max: 10Required

Feedback value, an integer between -10 and 10.

weightnumber · float · max: 1Optional

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

Default: 1
Responses
chevron-right
200

Feedback successfully saved

application/json
statusstringOptional

success or failure

messagestringOptional

Confirmation message indicating successful feedback submission.

feedback_idsstring[]Optional

Ids of Feedbacks created returned in the same order as input

post
/feedback
200

Feedback successfully saved

Last updated