---
title: "Ask Multi Documents"
method: POST
path: "/api/v1/chat/multi/ask"
tags: ["Chat & AI"]
---

# Ask Multi Documents

`POST /api/v1/chat/multi/ask`

## Request

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

Ask a question across all documents in a multi-document session.

The AI will analyze all uploaded documents and provide answers that:
- Reference specific documents by name
- Compare information across documents
- Identify which document(s) contain the relevant information

## Request body

- MultiChatRequest
  - `session_id` string, required
  - `question` string, required
  - `history` ChatMessage[], nullable
    - `role` string, required
    - `content` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/allpdfmagic/apis/allpdfmagic-api.md) · [All operations](https://skmtc.dev/allpdfmagic/apis/allpdfmagic-api/llms.txt) · [OpenAPI document](https://skmtc.dev/allpdfmagic/apis/allpdfmagic-api/revisions/92ad9e3b3b88?raw)
