Skip to content

Rate Public Chat

POST
/public/v1/text/sessions/{session_id}/feedback
curl --request POST \
--url https://api.nuacem.dev/voice-gw/public/v1/text/sessions/example/feedback \
--header 'Content-Type: application/json' \
--data '{ "rating": 1, "comment": "example" }'

The visitor rates the chat (1–5, optional comment), once, before ending it.

session_id
required
Session Id
string
/^[0-9a-f-]{36}$/
Media typeapplication/json
PublicFeedback
object
rating
required
Rating
integer
>= 1 <= 5
comment
Any of:
string
<= 1000 characters

Example generated

{
"rating": 1,
"comment": "example"
}

Successful Response

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}