---
title: "Suggest date, destination and guest chips for a half-typed chat message"
method: GET
path: "/v1/composer/analyze"
tags: ["chat"]
---

# Suggest date, destination and guest chips for a half-typed chat message

`GET /v1/composer/analyze`

## Request

- Base URL: `https://api.getmyhotels.com`
- URL: `https://api.getmyhotels.com/v1/composer/analyze`
- Auth: none declared

Runs `composer.analyze` (#2318). Returns the travel intent plus parsed dates, destination options and party size, each with UTF-16 `spans` into `text` so the client can rewrite that phrase when the user picks a value. `missing` flags the chips to offer as 'Add dates' / 'Add guests'. Call on a ~350ms typing debounce; discard a response whose `text` no longer matches the composer.

## Query parameters

- `text` string, required
- `locale` string, required
- `today` string, required

## Response `200`

Success

- unknown

## Other responses

- `400`: Request validation failed or the router rejected the input
- `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)
