---
title: "Create a mailbox note"
method: POST
path: "/v1/mailboxes/{id}/threads/{threadId}/notes"
tags: ["Mailboxes"]
---

# Create a mailbox note

`POST /v1/mailboxes/{id}/threads/{threadId}/notes`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/mailboxes/{id}/threads/{threadId}/notes`
- Auth: API key in header `x-api-key`

Adds an internal note to a thread and returns it with status 201. Notes are visible to everyone on the mailbox and never sent.

## Path parameters

- `id` string, required
- `threadId` string, required

## Request body

- CreateMailboxNotePayload
  - `body` string, required
  - `color` string, nullable
  - `pinned` boolean, nullable

## Response `201`

Success

- MailboxNote
  - `id` string, required
  - `author` object, required
    - `kind` 'user' | 'apiKey' | 'extension' | 'externalAgent' | 'samvaAgent' | 'system', required
    - `id` string, required
    - `displayName` string, nullable
  - `body` string, required
  - `color` string, nullable, required
  - `pinned` boolean, required
  - `createdAt` string, required
  - `updatedAt` string, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

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