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

# Chat

`POST /chat`

## Request

- Base URL: `https://memory.primaxiom.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.primaxiom.ai/chat`
- Auth: HTTP bearer

Deep memory integration in one call: recall what is relevant, inject it before your
messages, call the configured model, remember the exchange. Needs CLOUD_SYNTHESIZER=openai
(LLM_BASE_URL / LLM_API_KEY / LLM_MODEL) or app.state.chat_model.

## Headers

- `authorization` string, nullable
- `x-api-key` string, nullable

## Request body

- ChatIn
  - `messages` ChatMessage[], required
    - `role` string, required
    - `content` string, required
  - `session` string
  - `system` string, nullable
  - `observe` boolean
  - `observe_assistant` boolean
  - `resolve_conflicts` boolean
  - `max_facts` integer
  - `max_history_tokens` integer, nullable
  - `keep_tail_tokens` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/primaxiom/apis/reasongraph-cloud-api.md) · [All operations](https://skmtc.dev/primaxiom/apis/reasongraph-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/primaxiom/apis/reasongraph-cloud-api/revisions/3ccb0b943aff?raw)
