Update Thread Labels
patch_agentmail_inbox_threadAdds or removes labels on a whole thread and returns thread_id with the resulting labels. Applies to every message in the thread at once; the per-message twin is patch_agentmail_inbox_message. Writes to the shared AgentMail workspace: Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created, and what you write here is visible and editable by the next caller.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inbox_id | Yes | The ID of the inbox. | |
| thread_id | Yes | ID of thread. | |
| add_labels | No | Labels to add to thread. Cannot be system labels. | |
| Authorization | Yes | Bearer authentication | |
| remove_labels | No | Labels to remove from thread. Cannot be system labels. Takes priority over `add_labels` (in the event of duplicate labels passed in). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||