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"
}
Create a new feedback entry for a chat message.
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"
}
Model for creating feedback.
Successful Response
Model for chat message feedback.