---
title: "Complete Document Chat"
method: POST
path: "/document/chat/{chat_id}/complete"
tags: ["document"]
---

# Complete Document Chat

`POST /document/chat/{chat_id}/complete`

Stream a chat completion response for a document chat conversation.

Args:
    chat_id: Identifier of the document chat conversation.
    request: The chat request containing the user message.
    auth: Authentication context.
    redis: Redis connection for chat history storage.

Returns:
    StreamingResponse with the assistant's response.

## Path parameters

- `chat_id` string, required

## Headers

- `authorization` string

## Request body

- DocumentChatRequest — Request model for document chat completion.
  - `message` string, required
  - `document_id` string, nullable
  - `session_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/morphik-org/apis/fastapi.md) · [All operations](https://skmtc.dev/morphik-org/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/morphik-org/fastapi/revisions/9ade02dd7b1d/schema)
