Kalo te dokumentacioni
API

Shënime

Çdo veprim në këtë grup: çfarë pranon, çfarë kthen dhe gabimet me të cilat mund të përgjigjet.

Veprimet

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

Lejetthreads:readLexon

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.

Parametrat e shtegut

idstringE detyrueshme

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

Kthen

Every note on the thread, in display order.

Gabimet

Gabimet që mund të kthejë çdo veprim400401403404422500Katalogu i gabimeve

E disponueshme edhe në

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

POST/threads/{id}/notes

Add a note to a thread

Lejetthreads:writeNdryshon të dhëna

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.

Parametrat e shtegut

idstringE detyrueshme

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

Trupi i kërkesës

contentstringE detyrueshme

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

Nga 1 deri në 20000 karaktere
colorstring

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

Një nga"default""red""orange""yellow""green""blue""purple""pink"
pinnedboolean

Keeps the note above the others. Defaults to false.

Kthen

The note.

Gabimet

Gabimet që mund të kthejë çdo veprim400401403404422500Katalogu i gabimeve

E disponueshme edhe në

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

POST/threads/{id}/notes/reorder

Arrange the notes on a thread

Lejetthreads:writeNdryshon të dhëna

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.

Parametrat e shtegut

idstringE detyrueshme

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

Trupi i kërkesës

idsstring[]E detyrueshme
Nga 1 deri në 200 elemente

Kthen

The notes, in their new order.

Gabimet

Gabimet që mund të kthejë çdo veprim400401403404422500Katalogu i gabimeve

E disponueshme edhe në

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

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

Change a note

Lejetthreads:writeNdryshon të dhëna

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.

Parametrat e shtegut

idstringE detyrueshme

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

noteIdstringE detyrueshme

The id of a note on that thread.

Trupi i kërkesës

contentstring

The new text, up to 20,000 characters.

Nga 1 deri në 20000 karaktere
colorstring

The new colour.

Një nga"default""red""orange""yellow""green""blue""purple""pink"
pinnedboolean

Pins or unpins it.

Kthen

The note as it is now.

Gabimet

Gabimet që mund të kthejë çdo veprim400401403404422500Katalogu i gabimeve

E disponueshme edhe në

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

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

Delete a note

Lejetthreads:writeFshin

Gone for good. There is no bin for notes.

Requires the threads:write scope.

Parametrat e shtegut

idstringE detyrueshme

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

noteIdstringE detyrueshme

The id of a note on that thread.

Kthen

Gabimet

Gabimet që mund të kthejë çdo veprim400401403404422500Katalogu i gabimeve

E disponueshme edhe në

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

Objektet

DeletedThreadNoteobject

objectstring
Një nga"note"
idstring
threadIdstring
deletedboolean
Një ngatrue

ThreadNoteobject

objectstringE detyrueshme
Një nga"note"
idstringE detyrueshme
threadIdstringE detyrueshme
contentstringE detyrueshme
Deri në 20000 karaktere
colorstringE detyrueshme
Një nga"default""red""orange""yellow""green""blue""purple""pink"
pinnedbooleanE detyrueshme

Pinned notes are listed before the others.

orderintegerE detyrueshme

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

createdAtstringE detyrueshme
Formatidate-time
updatedAtstringE detyrueshme
Formatidate-time

ThreadNoteListobject

objectstring
Një nga"list"