> ## Documentation Index
> Fetch the complete documentation index at: https://klipy.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Notes API: why does creating a note now require records?

> POST /api/v2/notes now requires at least one linked contact, company, or deal, and no longer accepts parent_id. How to migrate an existing create call.

> [!WARNING]
>
> Breaking change: `POST /api/v2/notes` now requires `records` and no longer accepts `parent_id`. Existing integrations that create notes must update their request body.

## What changed

A note is now always attached to at least one CRM record. Two things follow from that:

* **`records` is required on create.** `POST /api/v2/notes` must include a non-empty `records` array — one or more of `contacts`, `companies`, or `deals`. A request with an empty or missing `records` array is rejected with `422`.
* **`parent_id` is no longer accepted on create.** Notes are sub-records of CRM records now, not of other notes. Sending `parent_id` in a create body has no effect — it is not a recognized field.

This applies to both `POST /api/v2/notes` and `POST /api/v2/notes/batch`. It does **not** change `PATCH /api/v2/notes/{id}` (still optional `title` / `parent_id` / `is_archived`) or any other notes endpoint.

## Migrating a create call

**Before:**

```json theme={null}
POST /api/v2/notes
{
  "title": "Discovery call notes",
  "parent_id": "note_abc123"
}
```

**After:**

```json theme={null}
POST /api/v2/notes
{
  "title": "Discovery call notes",
  "records": [
    { "record_type": "contacts", "record_id": "contact_abc123" }
  ]
}
```

Each entry in `records` needs a `record_type` (`contacts`, `companies`, or `deals`) and the `record_id` of an existing record in your organization. You can attach more than one record at create time by adding more entries to the array. A `record_id` that doesn't exist, or belongs to another organization, returns `404`.

## Managing links after create

Once a note exists, use the `/api/v2/notes/{id}/records` relationship to attach or remove records:

* `POST /api/v2/notes/{id}/records` links another record to the note.
* `DELETE /api/v2/notes/{id}/records/{record_id}` unlinks one.

Because a note must always stay attached to at least one record, unlinking a note's **last** remaining record returns `422` — attach a replacement record first, or archive the note instead (`PATCH /api/v2/notes/{id}` with `is_archived: true`).

## Related topics

* [How do I migrate from API v1?](https://klipy.ai/docs/developers/api/v2/migrating-from-v1.md) — the broader v1 → v2 migration guide.
* [Why is my API request failing?](https://klipy.ai/docs/developers/api/v2/fixes-errors.md) — the `422` error envelope and how to read validation failures.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.