Skip to main content
Lists the roles of your team: the three built-in roles plus this team’s custom roles. The key is what the role fields of member and invitation writes accept. The owner role is never assignable through this API. A role marked admin_grant_only is admin-level: only the team owner can grant it (role change or invitation — 403 ROLE_REQUIRES_OWNER otherwise), and a virtual member can never hold it (400 ROLE_NOT_FOR_VIRTUAL_MEMBER). Both flags describe the role, not you: they are the same for every caller. Any member may read this.
Permission required: none — any member’s key can call this

Response

object

Errors

Errors answer with success: false, a message and an error_code. See Error Codes for every code.