Update message labels
cooper_update_messageUse this when you need to change labels on a stored message, including marking it read. Requires auth. Works on a paused inbox, because this is triage and not a send. Inputs: inbox_id (required; inbox id, username, or email), message_id (required), add_labels (optional strings), remove_labels (optional strings). Mark read with remove_labels ["unread"]. You may also add "read". read and unread can be changed. Other system labels (inbox, sent, untrusted, auth_failed, owner, and SPF/DKIM/DMARC results) cannot be added or removed. Returns the updated message, including labels. A message in another account or workspace is 404.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inbox_id | Yes | Inbox id (inb_…), username, or full email address owned by this key | |
| add_labels | No | Labels to add. read and unread are allowed. System labels are not. | |
| message_id | Yes | Message id (msg_…) from cooper_list_messages or cooper_search | |
| remove_labels | No | Labels to remove. Pass ["unread"] to mark the message read. |