---
title: "Sync annotations"
method: POST
path: "/sync/annotations"
tags: ["Sync"]
---

# Sync annotations

`POST /sync/annotations`

Synchronize annotations across devices

## Request body

- object
  - `annotations` SchemaAnnotation[]
    - `book_id` string
    - `cfi` string
    - `chapter` string
    - `color` string
    - `content` string
    - `ctime` integer
    - `device_id` string
    - `id` integer
    - `page_number` integer
    - `position` string
    - `selected_text` string
    - `type` 'note' | 'highlight' | 'bookmark'
    - `user_id` integer
    - `utime` integer
  - `device_id` string
  - `last_sync_time` integer

## Response `200`

OK

- object
  - `data` object
    - `annotations` SchemaAnnotation[]
      - `book_id` string
      - `cfi` string
      - `chapter` string
      - `color` string
      - `content` string
      - `ctime` integer
      - `device_id` string
      - `id` integer
      - `page_number` integer
      - `position` string
      - `selected_text` string
      - `type` 'note' | 'highlight' | 'bookmark'
      - `user_id` integer
      - `utime` integer
    - `sync_time` integer
    - `synced` 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/revisions/58911ffb3093/schema)
