Skip to main content
POST
/
v1
/
feedback
Submit Feedback Handler
curl --request POST \
  --url http://localhost:8000/v1/feedback \
  --header 'Content-Type: application/json' \
  --data '
{
  "target_type": "THREAD",
  "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "rating": "UP",
  "reason": "INCORRECT",
  "comment": "<string>",
  "extra_metadata": {}
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "target_type": "THREAD",
  "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "rating": "UP",
  "reason": "INCORRECT",
  "comment": "<string>",
  "extra_metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.knowledgestack.ai/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string | null

Cookies

ks_uat
string | null

Body

application/json

Request to create or update feedback on a knowledge entity.

target_type
enum<string>
required
Available options:
THREAD,
MESSAGE,
DOCUMENT,
DOCUMENT_VERSION,
CHUNK
target_id
string<uuid>
required
rating
enum<string>
required
Available options:
UP,
DOWN
reason
enum<string> | null
Available options:
INCORRECT,
MISSING_INFO,
NOT_RELEVANT,
BAD_CITATIONS,
HALLUCINATION,
OCR_ERROR,
PARSING_ERROR,
STRUCTURE_ISSUE,
TABLE_ERROR,
FORMATTING,
OTHER
comment
string | null
Maximum string length: 4000
extra_metadata
Extra Metadata · object

Response

Successful Response

Response schema for a single FeedbackEvent.

id
string<uuid>
required
target_type
enum<string>
required
Available options:
THREAD,
MESSAGE,
DOCUMENT,
DOCUMENT_VERSION,
CHUNK
target_id
string<uuid>
required
user_id
string<uuid>
required
rating
enum<string>
required
Available options:
UP,
DOWN
reason
enum<string> | null
required
Available options:
INCORRECT,
MISSING_INFO,
NOT_RELEVANT,
BAD_CITATIONS,
HALLUCINATION,
OCR_ERROR,
PARSING_ERROR,
STRUCTURE_ISSUE,
TABLE_ERROR,
FORMATTING,
OTHER
comment
string | null
required
extra_metadata
Extra Metadata · object
required
created_at
string<date-time>
required
updated_at
string<date-time>
required