Update Any Thread Labels
patch_agentmail_threadAdds or removes labels on a thread addressed by id alone, returning thread_id and the resulting labels. No inbox is named, so it resolves account-wide. 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. The scoped twin is patch_agentmail_inbox_thread.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | |||