Skip to main content
POST
/
ai
/
chat-history
/
{chat_id}
/
feedback
Submit Ai Chat Feedback
curl --request POST \
  --url https://api.decodahealth.com/ai/chat-history/{chat_id}/feedback \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
{
  "feedbackType": "POSITIVE",
  "feedbackText": "<string>"
}
'
{
  "id": "<string>",
  "threadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "question": "<string>",
  "answer": "<string>",
  "userId": "<string>",
  "modelName": "<string>",
  "createdDate": "2023-11-07T05:31:56Z",
  "files": [
    "<string>"
  ],
  "feedbackType": "POSITIVE",
  "feedbackText": "<string>",
  "phoenixId": "<string>"
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Path Parameters

chat_id
string
required

Body

application/json

Request schema for submitting feedback on a chat response.

feedbackType
enum<string>
required

Type of feedback (positive/negative)

Available options:
POSITIVE,
NEGATIVE
feedbackText
string | null

Optional feedback text

Response

Successful Response

Summary schema for AI chat history.

id
string
required

Unique identifier for the chat entry

threadId
string<uuid>
required

UUID of the conversation thread

question
string
required

The question asked

answer
string
required

The AI-generated answer

userId
string
required

ID of provider who asked

modelName
string
required

Model used for generation

createdDate
string<date-time>
required

When the chat entry was created

files
string[] | null

List of GCS file paths

feedbackType
enum<string> | null

Type of feedback (positive/negative)

Available options:
POSITIVE,
NEGATIVE
feedbackText
string | null

Optional feedback text

phoenixId
string | null

Phoenix tracing ID