POST
/
api
/
v1
/
feedback
/
chat
Create Chat Message Feedback
curl --request POST \
  --url https://agent-studio.thena.ai/api/v1/feedback/chat \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "message_id": "<string>",
  "source": "<string>",
  "feedback_details": {
    "feedback_type": "positive",
    "issue_type": "<string>",
    "comment": "<string>",
    "context_id": "<string>"
  }
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "portkey_trace_id": "<string>",
  "human_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "ai_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "flow_execution_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "feedback_type": "positive",
  "issue_type": "<string>",
  "comment": "<string>",
  "portkey_synced": false,
  "portkey_sync_timestamp": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Model for creating feedback.

Response

200
application/json

Successful Response

Model for chat message feedback.