---
title: "Create Highlight"
method: POST
path: "/api/highlight"
---

# Create Highlight

`POST /api/highlight`

## Request

- Base URL: `https://api.openpaper.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openpaper.ai/api/highlight`
- Auth: API key in header `Authorization`

Create a new highlight for a document

## Request body

- CreateHighlightRequest
  - `paper_id` string, required
  - `raw_text` string, required
  - `position` object, nullable
  - `color` string, nullable
  - `start_offset` integer, nullable
  - `end_offset` integer, nullable
  - `page_number` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/openpaper/apis/open-paper.md) - [All operations](https://skmtc.dev/openpaper/apis/open-paper/llms.txt) - [OpenAPI document](https://skmtc.dev/openpaper/apis/open-paper/revisions/c2ad03216101?raw)
