---
title: "Create a highlight on an Item"
method: POST
path: "/api/items/{id}/highlights"
tags: ["Highlights"]
---

# Create a highlight on an Item

`POST /api/items/{id}/highlights`

## Request

- Base URL: `https://keep.md`
- URL: `https://keep.md/api/items/{id}/highlights`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `keep.session_token`

Create a highlight on an Item.

## Headers

- `Keep-API-Version` string

## Request body

- object
  - `text` string, required
  - `prefix` string
  - `suffix` string
  - `note` string
  - `startOffset` integer
  - `endOffset` integer

## Response `201`

Created highlight

- object
  - `highlight` Highlight, required
    - `id` string, required
    - `itemId` string, required
    - `text` string, required
    - `prefix` string
    - `suffix` string
    - `note` string, nullable
    - `startOffset` integer
    - `endOffset` integer
    - `createdAt` integer, required
    - `updatedAt` integer, required

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: The credential lacks access or the plan does not include the feature
- `404`: Resource not found

---

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