Get a label
GET
/labels/{id}Returns one label.
Needs the permissionlabels:list
Path parameters
idstringrequired- The label.
Returns
idstring- The label.
namestring- Its name.
parentIdstring or null- The label it sits inside, or null for a top-level label. Labels go three levels deep at most.
colourstring- A hue (
red,orange,amber,yellow,lime,green,teal,cyan,blue,indigo,violet,pinkorstone) and a strength (100,200,700or900), such asblue-700. scopestring- Where it can be used:
everywhere,teamsormailboxes. teamIdslist of strings- With scope
teams: the teams whose shared mailboxes can use it, including mailboxes shared with them later. mailboxIdslist of strings- With scope
mailboxes: the ones the key’s owner can see. conversationsnumber- Conversations carrying it, across the organisation.
openConversationsnumber- The open ones among them that the key’s owner can see.
Errors
401invalid_key- The key is wrong, expired or revoked. With no Authorization header at all, the code is
missing_credentials. 403missing_scope- The key doesn’t have
labels:list. TheX-Required-Scopeheader names what’s missing. 404not_found- There’s no such label, or the key’s owner can’t see it.
429rate_limited- More than 120 requests a minute from this key. Wait for
Retry-Afterseconds.