---
title: "Add companion chat messages"
method: POST
path: "/reader/books/{book_id}/companion/chat"
tags: ["AI"]
---

# Add companion chat messages

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

Bulk add companion chat messages (client → server sync)

## Path parameters

- `book_id` string, required

## Request body

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

## Response `200`

OK

- object

## 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/revisions/58911ffb3093/schema)
