---
title: "Mint a chat session for streaming"
method: POST
path: "/v1/chat/guest-session"
tags: ["chat"]
---

# Mint a chat session for streaming

`POST /v1/chat/guest-session`

## Request

- Base URL: `https://api.getmyhotels.com`
- URL: `https://api.getmyhotels.com/v1/chat/guest-session`
- Auth: none declared

Runs `chat.createGuestSession` (public — guests chat without an account, critical decision #4). Returns `{ publicId, sessionToken }`; the id + token pair rides the `POST /api/chat` stream body, and the one-time token later authorizes `POST /v1/chat/claim-guest-session` after sign-in. Signed-in callers get `sessionToken: null` — the minted session is already theirs. Lazy server-side: no row is persisted until the first message lands. The procedure takes no input, so this route accepts no request body.

## 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)
