---
title: "Analyst Chat"
method: POST
path: "/api/lia-analyst/analyst/chat"
tags: ["LIA Analyst"]
---

# Analyst Chat

`POST /api/lia-analyst/analyst/chat`

## Request

- Base URL: `https://api.leapsurgebi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.leapsurgebi.com/api/lia-analyst/analyst/chat`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/token`
- TypeScript: <https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/docs/api/lia-analyst/analyst/chat/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- AnalystChatRequest
  - `workspace_id` string, required
  - `report_id` string, required
  - `dataset_id` string, required
  - `question` string, required
  - `conversation_id` string, nullable
  - `filters` AnalystFilter[]
    - `table` string, required
    - `column` string, required
    - `operator` 'equals' | 'in' | 'not_in' | 'between', required
    - `values` unknown[], required
      - unknown

## Response `200`

Successful Response

- AnalystChatResponse
  - `conversation_id` string, required
  - `question` string, required
  - `answer` string, required
  - `dax_query` string, required
  - `row_count` integer, required
  - `data` object[], required
  - `applied_filters` AnalystFilter[], required
    - `table` string, required
    - `column` string, required
    - `operator` 'equals' | 'in' | 'not_in' | 'between', required
    - `values` unknown[], required
      - unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-24** `23b42df3193a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/changes/api/lia-analyst/analyst/chat/post.md)

---

[API](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi.md) - [All operations](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/revisions/13653cb8ee76?raw)
