---
title: "Create note"
method: POST
path: "/notes"
tags: ["Notes"]
---

# Create note

`POST /notes`

## Request

- Base URL: `https://api.caliuapp.com`
- URL: `https://api.caliuapp.com/notes`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `caliu_session`

Create a new note. Accepts optional `id` for offline-created notes.

## Request body

- object
  - `id` string: Client-provided ID for offline-created notes
  - `content` string: Note content in markdown. Title is derived from the first line.
  - `is_pinned` boolean
  - `tags` string[]: Tag IDs to associate. When provided, hashtag auto-extraction is skipped.
  - `auto_sync_tags` boolean: Opt-in: extract #hashtags (including multi-word `#like this#`) from content and link tags server-side. Default false for backward compatibility.
  - `auto_link_notes` boolean: Opt-in: resolve bare [[Note Title]] wiki links against your existing notes and rewrite them to the canonical [[id|Title]] form. Unresolved titles are left as-is. Default false for backward compatibility.

## Response `201`

Note created

- object
  - `note` Note, required
    - `id` string, required
    - `title` string, required
    - `content` string, required
    - `isPinned` boolean, required
    - `isEncrypted` boolean, required
    - `encryptionHint` string, nullable, required
    - `wordCount` number, required
    - `createdAt` string, required
    - `updatedAt` string, required
    - `deletedAt` string, nullable, required
    - `archivedAt` string, nullable, required
    - `sharedAt` string, nullable, required
    - `sortOrder` number, nullable, required
    - `rev` number: Content revision: one more for every accepted content change. Send it back as `base_rev` on `PUT /notes/{id}`.
    - `tags` object[]
      - `id` string, required
      - `name` string, required
    - `role` 'editor' | 'viewer': The requester's role, on notes shared with them (get and search).
    - `ownerId` string: The owner, on notes shared with the requester.

## Other responses

- `409`: Note id already in use
- `429`: Rate limit exceeded

---

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