Deskhero Developer Hub
Back to deskhero.com
Chat bot

Rate

Records the visitor's answer to "Did this answer your question?" on the chat ticket. answered=true also closes the ticket with the workspace's first hidden-by-default (closed) status and writes that status change to the ticket log. answered=false returns an AI written fallback_subject and fallback_message to pre-fill the handover form, unless skip_fallback is set or the visitor only ever sent one message.

POST /api/{tenant:minlength(2)}/v{version:apiVersion}/chat_bot/rate
Authorisation
No authentication needed

Request arguments

Name Type Source
inputDTO_chat_bot_rate_inputBody
Request body example

Response

Status
200 (OK)
Type
DTO_chat_bot_rate_response
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest)
Response body example
DTO_chat_bot_rate_input
NameTypeReadOnlyDescription
ticket_idInt32Ticket id
session_tokenStringSession token
answeredBooleanAnswered
skip_fallbackBooleanSet by the widget when the No rating is recorded automatically on form fallback (the fallback pre-fill was already delivered on the message response) - skips generating another one.
DTO_chat_bot_rate_response
NameTypeReadOnlyDescription
successBooleanTrue when the rating was recorded.
fallback_subjectStringReadOnlyOn a No rating with a multi-message conversation: AI-written ticket pre-fill for the classic form (visitor's language, first person). Null otherwise - the widget falls back to the visitor's last raw message.
fallback_messageStringReadOnlyFallback message

Generated Aug 4, 2026 18:37