---
title: "Sync Lorebook"
method: POST
path: "/lorebooks/{lorebook_id}/sync"
tags: ["lorebooks"]
---

# Sync Lorebook

`POST /lorebooks/{lorebook_id}/sync`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/lorebooks/{lorebook_id}/sync`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Sync embeddings for a lorebook. Use force=true to re-embed all entries.

## Path parameters

- `lorebook_id` string, uuid, required

## Query parameters

- `force` boolean

## Response `200`

Successful Response

- SyncResultResponse
  - `synced` integer, required
  - `failed` integer, required
  - `skipped` integer, required
  - `total` integer, required

## Other responses

- `422`: Validation Error

---

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