---
title: "Create private note"
method: POST
path: "/api/v1/user/notes"
tags: ["User"]
---

# Create private note

`POST /api/v1/user/notes`

## Headers

- `X-CSRF-Token` string, required

## Request body

- UserNoteCreateRequest
  - `target_type` 'company' | 'person' | 'sector' | 'borme_id' | 'free', required
  - `target_id` string, required
  - `title` string
  - `body` string, required
  - `pinned` boolean

## Response `201`

Created

- UserNoteCreatedResponse
  - `id` integer, required
  - `note` UserNote, required — Private note visible only to its authenticated owner.
    - `id` integer
    - `user_id` integer
    - `target_type` string
    - `target_id` string
    - `title` string
    - `body` string
    - `pinned` union
      - integer
      - boolean
    - `created_at` string
    - `updated_at` string

## Other responses

- `400` — Invalid request
- `401` — Authentication required (no active session)
- `403` — Invalid CSRF

---

[API](https://skmtc.net/openmercantil/apis/openmercantil-public-api.md) · [All operations](https://skmtc.net/openmercantil/apis/openmercantil-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openmercantil/openmercantil-public-api/versions/996f96a11758/schema)
