---
title: "Archive note"
method: POST
path: "/notes/{id}/archive"
tags: ["Notes"]
---

# Archive note

`POST /notes/{id}/archive`

## Request

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

Archive a note. Archived notes are hidden from all listings but never auto-removed, and keep their tags so they can be unarchived losslessly.

## Path parameters

- `id` string, required: Resource ID

## Response `200`

Note archived

- 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

- `404`: Not found

---

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