---
title: "Restore note from trash"
method: POST
path: "/notes/{id}/restore"
tags: ["Notes"]
---

# Restore note from trash

`POST /notes/{id}/restore`

## Request

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

## Path parameters

- `id` string, required: Resource ID

## Response `200`

Note restored

- 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 in trash

---

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