Skip to main content
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.

message_id
string
required
source
string
required

The source of the feedback, e.g., 'chat' or 'flow'

feedback_details
object
required

Model for updating chat message feedback.

Response

Successful Response

Model for chat message feedback.

portkey_trace_id
string
required
user_id
string<uuid>
required
organization_id
string<uuid>
required
id
string<uuid> | null
human_message_id
string<uuid> | null
ai_message_id
string<uuid> | null
flow_execution_id
string<uuid> | null
feedback_type
enum<string> | null

Enum for feedback types.

Available options:
positive,
negative
issue_type
string | null
comment
string | null
portkey_synced
boolean
default:false
portkey_sync_timestamp
string<date-time> | null
created_at
string<date-time> | null
updated_at
string<date-time> | null
I