List teams
GET
/teamsLists your organisation’s teams, with their people and mailboxes.
Needs the permissionteams:list
Anyone may list teams, as in DMU Mail. A team’s mailboxes never names a mailbox the key’s owner can’t open, so asking about teams doesn’t reveal an address.
Returns
A list of teams, each with:
idstring- The team.
namestring- Its name.
descriptionstring or null- What it’s for, if anyone wrote it down.
memberslist- Its people, each with
userId,name,emailandsuspended. Someone suspended keeps their place; only an administrator’s key lists them. mailboxeslist- The shared mailboxes it’s ticked on, each with
id,email,nameandlabel. Only those the key’s owner can open are listed.
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
teams:list. TheX-Required-Scopeheader names what’s missing. 429rate_limited- More than 120 requests a minute from this key. Wait for
Retry-Afterseconds.