Update Inbox Thread
update-inbox-threadMark an email thread read or unread, or move it to inbox, archive, spam, or trash.
Instructions
Purpose: Update one thread in a Resend inbox: mark it read or unread, or move it to another folder. At least one of read or folder is required.
NOT for: Tagging or untagging a thread with a label (use add-inbox-thread-labels and remove-inbox-thread-label), creating or deleting labels themselves (use create-inbox-label and remove-inbox-label), or deleting the thread (use remove-inbox-thread).
Returns: The thread's id, subject, folder, labels and read state after the update.
When to use: User asks to archive a thread, mark it read or unread, or move it to spam or trash. Moving a thread to trash schedules it for deletion in 30 days, the same as remove-inbox-thread. Moving a thread out of trash restores it and clears its deletion deadline. When both are passed, read is applied before folder, and the two are not atomic: if the folder move fails, the read change stays applied. Get the thread ID from list-inbox-threads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| read | No | Mark every email in the thread as read (true) or unread (false). | |
| folder | No | Folder to move the thread to. Note that "sent" is not a valid destination: a thread can only be moved to inbox, archive, spam, or trash. | |
| inboxId | Yes | Inbox ID, or the inbox email address (e.g. "support@example.com"). Not the Resend receiving address. | |
| threadId | Yes | Thread ID |