---
title: "Document Ai Chat"
method: POST
path: "/api/batch/document-chat"
tags: ["Batch Processing"]
---

# Document Ai Chat

`POST /api/batch/document-chat`

## Request

- Base URL: `https://api.qomplement.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.qomplement.com/api/batch/document-chat`
- Auth: HTTP bearer

Agent-powered AI chat for document analysis with tools.
Uses Claude Sonnet via Bedrock with execute_python, generate_chart,
generate_file, search_knowledge_base, and fetch_documents tools.
Streams events via SSE.

## Request body

- DocumentChatRequest: Request model for document AI chat
  - `document_name` string
  - `extracted_data` object
  - `raw_text` string
  - `messages` object[]
  - `batch_id` string, nullable
  - `document_id` string, nullable
  - `available_documents` object[]
  - `active_target` object, nullable
  - `active_document_ids` string[]
  - `available_targets` object[]
  - `use_global_memory` boolean
  - `runtime_handoff` object, nullable
  - `runtime_capabilities` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/qomplement/apis/qomplement-api.md) - [All operations](https://skmtc.dev/qomplement/apis/qomplement-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qomplement/apis/qomplement-api/revisions/6fe617c112ef?raw)
