---
title: "Attach an Item or Highlight to a Note"
method: POST
path: "/api/notes/{id}/item-links"
tags: ["Notes"]
---

# Attach an Item or Highlight to a Note

`POST /api/notes/{id}/item-links`

## Request

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

Attach an Item or Highlight to a Note.

## Path parameters

- `id` string, required

## Headers

- `Keep-API-Version` string

## Request body

- NoteItemLinkRequest
  - `itemId` string, required
  - `highlightId` string
  - `relation` 'source' | 'evidence' | 'example' | 'inspiration' | 'annotation'
  - `annotation` string
  - `model` string

## Response `200`

Existing attachment returned after an idempotent replay

- object

## Other responses

- `201`: Created attachment
- `400`: Invalid request
- `401`: Authentication required
- `403`: The credential lacks access or the plan does not include the feature
- `404`: Resource not found
- `409`: The request conflicts with the current resource state

---

[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)
