---
title: "NonPharma Demo Chat — AI analyst (NonPharma Demo DB)"
method: POST
path: "/api/lia/nonpharma_content"
tags: ["Lia"]
---

# NonPharma Demo Chat — AI analyst (NonPharma Demo DB)

`POST /api/lia/nonpharma_content`

## 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/nonpharma_content`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/token`
- TypeScript: <https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/docs/api/lia/nonpharma_content/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `session-id` string, required

## Request body

- ChatRequest
  - `is_dev` integer, required
  - `is_voice` boolean
  - `messages` object, required
  - `modelId` string
  - `db_type` string
  - `ls_code` string, required: Base64 encoded
  - `user_code` string, required: Base64 encoded
  - `firm_code` string, required: Base64 encoded
  - `app_code` string, required
  - `businessPrompt` string, nullable
  - `workspaceContext` string, nullable
  - `fileContent` string, nullable
  - `fileName` string, nullable
  - `imageData` string, nullable
  - `imageMediaType` string, nullable
  - `source_files` SourceFileRef[], nullable
    - `file_id` string, required
    - `source_name` string, required
    - `media_type` string, nullable
    - `source_type` string, nullable

## Response `200`

Successful Response

- 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/nonpharma_content/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)
