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>"
  ]
}

Authorizations

x-portkey-api-key
string
header
required

Body

application/json

Response

200 - application/json

Feedback successfully saved

The response is of type object.