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

# Chat

`POST /chat`

## Request

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

Chat endpoint — proxy to LM Studio.

Receives a user message, appends to session history, sends to LM Studio,
returns the assistant's reply.

Request body:
    message (str): User's message
    session_id (str): Session identifier (UUID)
    history (list): Full conversation history for context

Response:
    reply (str): Assistant's reply
    session_id (str): Same session ID
    sources (list): Sources used (always ["agent-docs/index.md"])

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/optionsdataapi/apis/options-data-api.md) · [All operations](https://skmtc.dev/optionsdataapi/apis/options-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/optionsdataapi/apis/options-data-api/revisions/ccce476412d9?raw)
