Set Inbox Thread Labels
set-inbox-thread-labelsReplace every label on a Resend inbox thread with the exact label IDs provided in one atomic change. Unlisted labels are removed, and an empty array clears all labels.
Instructions
Purpose: Replace every label on one thread in a Resend inbox with exactly the labels given, in one atomic change. Labels on the thread that are not listed are taken off. Pass an empty array to take every label off.
NOT for: Adding a label while keeping the others (use add-inbox-thread-labels), or taking one label off (use remove-inbox-thread-label).
Returns: Every label the thread carries after the change.
When to use: User states the full set of labels a thread should have, like "label this only as Billing". If any label ID is not found, nothing changes. The labels themselves are kept, and stay on every other thread that carries them. Get the thread ID from list-inbox-threads and the label IDs from list-inbox-labels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inboxId | Yes | Inbox ID, or the inbox email address (e.g. "support@example.com"). Not the Resend receiving address. | |
| labelIds | Yes | IDs of every label the thread should carry, up to 100. An empty array takes every label off. Use list-inbox-labels to find label IDs. | |
| threadId | Yes | Thread ID |