---
title: "Rate an assistant message"
method: POST
path: "/v1/chat/messages/{messagePublicId}/feedback"
tags: ["chat"]
---

# Rate an assistant message

`POST /v1/chat/messages/{messagePublicId}/feedback`

## Request

- Base URL: `https://api.getmyhotels.com`
- URL: `https://api.getmyhotels.com/v1/chat/messages/{messagePublicId}/feedback`
- Auth: HTTP bearer

Runs `chat.setMessageFeedback` (public — guests vote too, authorized by the guest `sessionToken`). Assistant messages only. `type` is the vote; `category` and `reason` carry the thumbs-down detail and are optional, so a bare vote is a valid body. Re-posting a different `type` replaces the previous vote rather than stacking.

## Path parameters

- `messagePublicId` string, required

## Request body

- object
  - `sessionToken` string
  - `type` 'thumbs_up' | 'thumbs_down', required
  - `category` 'incorrect' | 'unhelpful' | 'offensive' | 'refused' | 'style' | 'other'
  - `reason` string

## Response `200`

Success

- unknown

## Other responses

- `400`: Request validation failed or the router rejected the input
- `404`: Resource not found
- `426`: Reported X-GMH-App-Version is below the supported minimum — the app must update
- `500`: Unexpected server error (opaque; details stay in logs)

---

[API](https://skmtc.dev/getmyhotels/apis/getmyhotels-rest-api.md) · [All operations](https://skmtc.dev/getmyhotels/apis/getmyhotels-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getmyhotels/apis/getmyhotels-rest-api/revisions/cba24a9c13f0?raw)
