Skip to main content
curl -X DELETE 'https://api.mails.ai/v1/threads/thrd_01JZX8K3M9Q4P7VN2YB6RTDC0E/notes/note_01JZX8K3M9Q4P7VN2YB6RTDC0E' \
  -H "Authorization: Bearer $MAILS_API_KEY"
{
  "id": "note_01JZX8K3M9Q4P7VN2YB6RTDC0E",
  "object": "<object>",
  "deleted": false
}

Delete a note

Deletes the note for good.
DELETE/v1/threads/{id}/notes/{note_id}scope · manage
curl -X DELETE 'https://api.mails.ai/v1/threads/thrd_01JZX8K3M9Q4P7VN2YB6RTDC0E/notes/note_01JZX8K3M9Q4P7VN2YB6RTDC0E' \
  -H "Authorization: Bearer $MAILS_API_KEY"
{
  "id": "note_01JZX8K3M9Q4P7VN2YB6RTDC0E",
  "object": "<object>",
  "deleted": false
}

Path Parameters

idstringrequired

Thread id (thrd_…).

note_idstringrequired

Note id (note_…).

manage deletes any note on the thread. A member signed in to the dashboard without it deletes only the notes they wrote: anyone else's is a 403 insufficient_scope. A test key cannot delete one on a thread holding live mail (403 live_mode_required).

Response

idstring

The deleted note's id (note_…).

objectstring

Always note.

deletedboolean

Always true: the note is gone for good.

Was this page helpful?