---
title: "Get companion chat history for a book"
method: GET
path: "/reader/books/{book_id}/companion/chat"
tags: ["AI"]
---

# Get companion chat history for a book

`GET /reader/books/{book_id}/companion/chat`

Returns companion conversation messages for a specific book

## Path parameters

- `book_id` string, required

## Query parameters

- `since` integer
- `limit` integer
- `offset` integer

## Response `200`

Chat messages with server timestamp

- object
  - `data` SchemaCompanionChat[]
    - `book_id` string
    - `cfi` string
    - `chapter` string
    - `content` string
    - `ctime` integer
    - `id` integer
    - `role` string
    - `user_id` integer
  - `server_time` integer

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/lxpio/apis/omnigram-api.md) · [All operations](https://skmtc.net/lxpio/apis/omnigram-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lxpio/omnigram-api/versions/58911ffb3093/schema)
