ドキュメント本文へスキップ
API

備考

このグループのすべてのオペレーションの、受け付ける内容、返す内容、返しうるエラー。

オペレーション

Private notes pinned to a thread, the Notes panel of the reading pane.

Notes are private to a person. A key reads and writes the notes of the workspace owner, and an app those of the person who connected it. A key or an app limited to particular addresses reaches only the notes on threads that arrived at them.

GET/threads/{id}/notes

List the notes on a thread

スコープthreads:read読み取り

Pinned notes first, then the rest in the order they were arranged. Notes are private to a person. A key reads and writes the notes of the workspace owner, and an app those of the person who connected it.

Requires the threads:read scope.

パスパラメーター

idstring必須

The thread the notes are on, as GET /threads returns it.

戻り値

Every note on the thread, in display order.

エラー

どのオペレーションも返しうるエラー400401403404422500エラー一覧

ほかの提供先

SDK
threads.listNotes()
CLI
openemail threads list-notes
MCP
listThreadNotes

POST/threads/{id}/notes

Add a note to a thread

スコープthreads:writeデータを変更

A new note goes after the others. color is one of the eight the app offers, and pinned keeps it at the top. Notes are private to a person. A key reads and writes the notes of the workspace owner, and an app those of the person who connected it.

Requires the threads:write scope.

パスパラメーター

idstring必須

The thread the notes are on, as GET /threads returns it.

リクエストボディ

contentstring必須

The text of the note, up to 20,000 characters. Leading and trailing spaces are trimmed.

1〜20000文字
colorstring

One of the eight the app offers: default, red, orange, yellow, green, blue, purple or pink. Defaults to default.

次のいずれか"default""red""orange""yellow""green""blue""purple""pink"
pinnedboolean

Keeps the note above the others. Defaults to false.

戻り値

The note.

エラー

どのオペレーションも返しうるエラー400401403404422500エラー一覧

ほかの提供先

SDK
threads.createNote()
CLI
openemail threads create-note
MCP
addThreadNote

POST/threads/{id}/notes/reorder

Arrange the notes on a thread

スコープthreads:writeデータを変更

Sets the order of every note on the thread at once, first to last. Pinned notes still come first. ids has to name each note exactly once, or the call is a 422 invalid_parameter on ids and nothing moves.

Requires the threads:write scope.

パスパラメーター

idstring必須

The thread the notes are on, as GET /threads returns it.

リクエストボディ

idsstring[]必須
1〜200件

戻り値

The notes, in their new order.

エラー

どのオペレーションも返しうるエラー400401403404422500エラー一覧

ほかの提供先

SDK
threads.reorderNotes()
CLI
openemail threads reorder-notes
MCP
reorderThreadNotes

PATCH/threads/{id}/notes/{noteId}

Change a note

スコープthreads:writeデータを変更

Changes its text, its colour or whether it is pinned. Give at least one. A note id that is not on this thread is a 404.

Requires the threads:write scope.

パスパラメーター

idstring必須

The thread the notes are on, as GET /threads returns it.

noteIdstring必須

The id of a note on that thread.

リクエストボディ

contentstring

The new text, up to 20,000 characters.

1〜20000文字
colorstring

The new colour.

次のいずれか"default""red""orange""yellow""green""blue""purple""pink"
pinnedboolean

Pins or unpins it.

戻り値

The note as it is now.

エラー

どのオペレーションも返しうるエラー400401403404422500エラー一覧

ほかの提供先

SDK
threads.updateNote()
CLI
openemail threads update-note
MCP
updateThreadNote

DELETE/threads/{id}/notes/{noteId}

Delete a note

スコープthreads:write削除

Gone for good. There is no bin for notes.

Requires the threads:write scope.

パスパラメーター

idstring必須

The thread the notes are on, as GET /threads returns it.

noteIdstring必須

The id of a note on that thread.

戻り値

エラー

どのオペレーションも返しうるエラー400401403404422500エラー一覧

ほかの提供先

SDK
threads.deleteNote()
CLI
openemail threads delete-note
MCP
deleteThreadNote

オブジェクト

DeletedThreadNoteobject

objectstring
次のいずれか"note"
idstring
threadIdstring
deletedboolean
次のいずれかtrue

ThreadNoteobject

objectstring必須
次のいずれか"note"
idstring必須
threadIdstring必須
contentstring必須
20000文字まで
colorstring必須
次のいずれか"default""red""orange""yellow""green""blue""purple""pink"
pinnedboolean必須

Pinned notes are listed before the others.

orderinteger必須

Where it sits among the notes that share its pinned state, lowest first.

createdAtstring必須
形式date-time
updatedAtstring必須
形式date-time

ThreadNoteListobject

objectstring
次のいずれか"list"