---
title: "Save a quotation from an article (returns existing if duplicate)"
method: POST
path: "/api/article-quotations"
tags: ["article-quotations"]
---

# Save a quotation from an article (returns existing if duplicate)

`POST /api/article-quotations`

## Request

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

## Request body

- CreateArticleQuotationRequest
  - `article_id` string, required
  - `figure_src` string, nullable: Present = save a figure quotation of the uploaded image at this `/media/` src. The alt/caption/dimension snapshot is extracted from the article's own rendered HTML, never from the client.
  - `html` string, nullable: Required for text quotations; ignored for figure quotations.
  - `text` string, nullable: Required for text quotations; ignored for figure quotations.

## Response `200`

Article quotation saved

- CreateArticleQuotationResponse
  - `article_quotation` ArticleQuotationResponse, required
    - `article_id` string, nullable
    - `article_title` string, required
    - `author_display_name` string, required
    - `created_at` string, required
    - `figure` ArticleQuotationFigure, nullable: Snapshot of a quoted figure, extracted server-side from the quoted article's rendered HTML at save time.
      - `alt` string, nullable
      - `caption` string, nullable
      - `height` integer, nullable
      - `src` string, required
      - `width` integer, nullable
    - `html` string, required
    - `id` string, required
    - `kind` 'text' | 'figure', required
    - `note_count` integer, required
    - `text` string, required
  - `created` boolean, required

## Other responses

- `400`: Invalid input
- `401`: Not authenticated
- `404`: Article not found or not published

## Changes

- **2026-09-08** `2a60b4064d2e`: 7 info
  - added the new optional request property `figure_src`
  - the request property `html` became nullable
  - the request property `text` became nullable
  - the request property `html` became optional
  - …3 more
- **2026-07-16** `4473ab073bea`: 1 info
  - added the non-success response with the status `404`
- **2026-04-09** `de6fb710eab5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/scholia-study/apis/scholia-api/changes/api/article-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)
