curl 'https://api.mails.ai/v1/threads/thrd_01JZX8K3M9Q4P7VN2YB6RTDC0E/notes' \
-H "Authorization: Bearer $MAILS_API_KEY"mails threads notes list thrd_01JABC{
"name": "mails_list_thread_notes",
"arguments": {
"thread_id": "thrd_01JZX8K3M9Q4P7VN2YB6RTDC0E"
}
}{
"data": [
{
"id": "note_01JZX8K3M9Q4P7VN2YB6RTDC0E",
"object": "<object>",
"thread_id": "thrd_01JZX8K3M9Q4P7VN2YB6RTDC0E",
"body": "<body>",
"author": {
"kind": "user",
"id": "usr_01JZX8K3M9Q4P7VN2YB6RTDC0E",
"email": "jordan@example.com",
"name": "<name>"
},
"created_at": "2026-10-04T12:00:00.000Z"
}
]
}200 The thread's notes.
401 Missing or invalid API key.
403 The API key lacks the required scope
(insufficient_scope), or the token belongs to an
app connected by sign-in and this operation is
closed to connected apps
(connected_app_not_allowed).
404 Resource not found in this workspace, or the agent
a send names is archived (agent_archived).
500 Internal server error.List a thread's notes
The notes the team left on the thread, oldest first, all at once.
curl 'https://api.mails.ai/v1/threads/thrd_01JZX8K3M9Q4P7VN2YB6RTDC0E/notes' \
-H "Authorization: Bearer $MAILS_API_KEY"mails threads notes list thrd_01JABC{
"name": "mails_list_thread_notes",
"arguments": {
"thread_id": "thrd_01JZX8K3M9Q4P7VN2YB6RTDC0E"
}
}{
"data": [
{
"id": "note_01JZX8K3M9Q4P7VN2YB6RTDC0E",
"object": "<object>",
"thread_id": "thrd_01JZX8K3M9Q4P7VN2YB6RTDC0E",
"body": "<body>",
"author": {
"kind": "user",
"id": "usr_01JZX8K3M9Q4P7VN2YB6RTDC0E",
"email": "jordan@example.com",
"name": "<name>"
},
"created_at": "2026-10-04T12:00:00.000Z"
}
]
}200 The thread's notes.
401 Missing or invalid API key.
403 The API key lacks the required scope
(insufficient_scope), or the token belongs to an
app connected by sign-in and this operation is
closed to connected apps
(connected_app_not_allowed).
404 Resource not found in this workspace, or the agent
a send names is archived (agent_archived).
500 Internal server error.Was this page helpful?