Actions30
- Message Actions
- Label Actions
- Draft Actions
- Thread Actions
Thread → Add Label to Thread
AI-generatedSummary
Add a label to a thread
Inputs
- threadId (required) — Identifier of the thread to which the label will be added
- labelIdForMessageOrThread (required) — Label name or ID to apply to the thread
Output shape
object
Confirms the label addition; includes action, threadId, successful flag, and optional debug data when enabled
Examples
Example 1: Add label 'Work' to a specific thread
Thread ID set to '12345', Label Name or ID set to 'Work'