Actions17
- Email Actions
- Mailbox Actions
- Thread Actions
Email → Get Labels
AI-generatedSummary
Retrieve all labels (mailboxes) associated with a specific email, including label names, roles, and email counts.
Inputs
- Authentication — Select the authentication method to use: OAuth2, Basic Auth, or Bearer Token.
- Email ID (required) — The ID of the email for which to fetch labels.
Output shape
a list of label objects for the specified email
Each label object includes the mailbox ID, name, role (if assigned), and counts of total and unread emails within that mailbox. Returns an empty list if the email has no labels or if the email is not found an error is thrown.
Examples
Example 1: Fetch labels for an email with a given ID
Provide the email ID and select the desired authentication method. The operation will return an array of labels with metadata for that email.