---
title: "Multi-book chat"
method: POST
path: "/chat/multi"
tags: ["Chat"]
---

# Multi-book chat

`POST /chat/multi`

Chat with AI across multiple books, authors, or genres

## Query parameters

- `locale` 'en' | 'ar'

## Request body

- object
  - `messages` object[], required
    - `role` 'assistant' | 'user', required
    - `content` string, required
  - `bookIds` string[] — List of book IDs to include in search
  - `authorIds` string[] — List of author IDs to include in search
  - `genreIds` string[] — List of genre IDs to include in search
  - `isRetry` boolean — Whether this is a retry of a previous request
  - `chatId` string — Optional chat session ID

## Response `200`

Chat response stream

---

[API](https://skmtc.dev/usul/apis/usul-api.md) · [All operations](https://skmtc.dev/usul/apis/usul-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usul/usul-api/revisions/b4f2df3e5842/schema)
