/gmail/v1/users/{userId}/labels
GET
/gmail/v1/users/{userId}/labels
users
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://gmail.googleapis.com//gmail/v1/users//labels'
Response Response Example
{
"labels": [
{
"color": {
"backgroundColor": "string",
"textColor": "string"
},
"id": "string",
"labelListVisibility": "labelShow",
"messageListVisibility": "show",
"messagesTotal": 0,
"messagesUnread": 0,
"name": "string",
"threadsTotal": 0,
"threadsUnread": 0,
"type": "system"
}
]
}
Request
Path Params
userId
stringÂ
required
me
can be used to indicate the authenticated user.