from portkey_ai import Portkey
portkey = Portkey(api_key="PORTKEY_API_KEY")
feedback = portkey.feedback.create(
trace_id="REQUEST_TRACE_ID",
value=1
)
print(feedback){
"status": "<string>",
"message": "<string>",
"feedback_ids": [
"<string>"
]
}Create Feedback
This endpoint allows users to submit feedback for a particular interaction or response.
POST
/
feedback
from portkey_ai import Portkey
portkey = Portkey(api_key="PORTKEY_API_KEY")
feedback = portkey.feedback.create(
trace_id="REQUEST_TRACE_ID",
value=1
)
print(feedback){
"status": "<string>",
"message": "<string>",
"feedback_ids": [
"<string>"
]
}Documentation Index
Fetch the complete documentation index at: https://portkey-docs-fix-cache-hit-elaborate.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Body
application/json
Unique identifier for the request trace.
Feedback value, an integer between -10 and 10.
Required range:
-10 <= x <= 10Weight of the feedback, a float between 0 and 1. Default is 1.0.
Required range:
0 <= x <= 1Additional metadata for the feedback.
Last modified on May 21, 2026
Was this page helpful?
⌘I

