Menu
Gmail.users.labels.list
Lists all labels in the user's mailbox.
GET
/gmail/v1/users/{userId}/labelsUse it in a workflow
- Add a step and choose the Gmail connector.
- Pick the Gmail.users.labels.list action (under users).
- Fill in the fields below, then reference the result from later steps as
{{gmailUsersLabelsList.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{gmailUsersLabelsList.response.data.<field>}}.
{
"labels": [
{
"color": {
"backgroundColor": "string",
"textColor": "string"
},
"id": "string",
"labelListVisibility": "labelShow",
"messageListVisibility": "show",
"messagesTotal": 0,
"messagesUnread": 0,
"name": "string",
"threadsTotal": 0,
"threadsUnread": 0,
"type": "system"
}
]
}
Need more? See the Gmail guide for connection setup and behaviour shared by every action.
Was this page helpful?