/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 Unique account identifier assigned by Riposte. You may also provide the custom user ID set during authentication; the API resolves it to the canonical account.
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"
}
]
}