---
title: "Save a quotation (returns existing if duplicate)"
method: POST
path: "/api/books/{slug}/quotations"
tags: ["quotations"]
---

# Save a quotation (returns existing if duplicate)

`POST /api/books/{slug}/quotations`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `slug` string, required

## Request body

- CreateQuotationRequest
  - `sentence_end` integer, nullable
  - `sentence_kind` 'body' | 'footnote' | 'figure', required: Stored as the Postgres enum `sentence_kind`.
  - `sentence_start` integer, required

## Response `200`

Quotation saved

- CreateQuotationResponse
  - `created` boolean, required
  - `quotation` QuotationResponse, required
    - `anchor_sentence_end_number` integer, nullable
    - `anchor_sentence_start_number` integer, required
    - `anchor_source_ref` string, nullable: `toc_nodes.source_ref` of the anchor — translation-invariant (e.g. `"genesis:5"`). Used as the chapter-grouping key for verse-level visual marker projection.
    - `anchor_verse_end` string, nullable: Verse `ref_value` of the end anchor sentence (only when the quotation spans multiple verses; otherwise null and the quotation is treated as covering a single verse).
    - `anchor_verse_start` string, nullable: Verse `ref_value` of the start anchor sentence (e.g. `"5:1"`). Populated when the book has a `verse` reference system; null for books without verse-style markers (Kant). Together with `anchor_source_ref` this is the cross-translation marker key.
    - `book_slug` string, nullable: Slug of the book this quotation lives in. Used to render the translation badge ("KJV"/"WEB" — see `translation_label`) and to differentiate cross-translation peer quotations from own-book ones in the reader. Optional for backward-compat across endpoints that haven't been wired yet; populated by `list_quotations_for_node`.
    - `created_at` string, required
    - `id` string, required
    - `note_count` integer, required
    - `projected_source_ref` string, nullable: Target-local source_ref where the projection marker should render. For same-book quotes equals `anchor_source_ref`. For cross-translation projection through `cross_translation_alignments` this resolves to the target chapter (e.g. WEB Rom 14:24 quote projects to KJV Rom 16:25 → projected_source_ref = "romans:16").
    - `projected_verse_end` string, nullable: Target-local verse `ref_value` for the end of the projection. Equals `projected_verse_start` when only one end of a range projects into the target chapter (e.g. cross-chapter spans).
    - `projected_verse_start` string, nullable: Target-local verse `ref_value` for the start of the projection. Frontend uses `(projected_source_ref, projected_verse_start)` as the marker placement key, falling back to `anchor_*` when the projection fields are absent (Kant/no-verse-system books).
    - `sentence_kind` 'body' | 'footnote' | 'figure', required: Stored as the Postgres enum `sentence_kind`.
    - `translation_label` string, nullable: Short display label for the translation badge — derived from the source's `publisher` field (which the Bible importer sets to "KJV"/"WEB"). Falls back to the book title when absent.

## Other responses

- `400`: Invalid input
- `401`: Not authenticated
- `404`: Book not found

## Changes

- **2026-08-22** `1f567b50f90c`: 1 breaking, 3 warning, 3 info
  - request property `sentence_kind` was restricted to a list of enum values
  - added the new `body` enum value to the `quotation/sentence_kind` response property for the response status `200`
  - added the new `figure` enum value to the `quotation/sentence_kind` response property for the response status `200`
  - added the new `footnote` enum value to the `quotation/sentence_kind` response property for the response status `200`
  - …3 more
- **2026-07-16** `4473ab073bea`: 1 info
  - added the non-success response with the status `404`
- **2026-05-07** `19cc18ee9fec`: 3 info
  - added the optional property `quotation/projected_source_ref` to the response with the `200` status
  - added the optional property `quotation/projected_verse_end` to the response with the `200` status
  - added the optional property `quotation/projected_verse_start` to the response with the `200` status
- **2026-05-06** `84e2c1f7ce7c`: 5 info
  - added the optional property `quotation/anchor_source_ref` to the response with the `200` status
  - added the optional property `quotation/anchor_verse_end` to the response with the `200` status
  - added the optional property `quotation/anchor_verse_start` to the response with the `200` status
  - added the optional property `quotation/book_slug` to the response with the `200` status
  - …1 more
- **2026-04-06** `8977b211394a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/scholia-study/apis/scholia-api/changes/api/books/:slug/quotations/post.md)

---

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