---
title: "Chat"
method: POST
path: "/chat"
---

# Chat

`POST /chat`

## Request

- Base URL: `https://api.palisade.run` (the document declares no server; this is the origin it was published from)
- URL: `https://api.palisade.run/chat`
- Auth: none declared

SSE endpoint matching the Next.js /api/twiddy/chat contract.

## Query parameters

- `token` string, nullable

## Headers

- `x-twiddy-request-id` string, nullable
- `authorization` string, nullable
- `x-twiddy-chatbot-token` string, nullable

## Request body

- ChatRequest
  - `message` string, required
  - `conversationHistory` object[]
  - `pageContext` object, nullable
  - `model` string, nullable
  - `enabledTools` string[], nullable
  - `agentName` string, nullable
  - `personalityPrompt` string, nullable
  - `searchApiBackend` string, nullable
  - `availabilityPriceDisplayMode` string, nullable
  - `resultCardCount` integer, nullable
  - `maxTokensInitial` integer, nullable
  - `maxTokensFinal` integer, nullable
  - `temperature` number, nullable
  - `topP` number, nullable
  - `conversationId` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/palisade-run/apis/twiddy-chatbot-api.md) - [All operations](https://skmtc.dev/palisade-run/apis/twiddy-chatbot-api/llms.txt) - [OpenAPI document](https://skmtc.dev/palisade-run/apis/twiddy-chatbot-api/revisions/80ab7d8068c0?raw)
