/accounts/{accountId}/labels Get email labels/folders
Retrieve all labels (Gmail) or folders (Outlook) for a specific email account. Includes both user-created and system labels.
Parameters
accountId string Additional parameters
includeSystem string
includeSystem string Set to `true` to include provider-managed system labels in the response.
false
Returns
Collection of labels for an account.
curl -X GET "http://localhost:8080/accounts/{accountId}/labels"
{
"labels": [
{
"id": "lbl_support",
"name": "support",
"displayName": "Support Tickets"
}
]
}