Get the current team
Overview
Returns the current team, its owner, your role and permissions under active. teams lists the teams you can access, with owned teams first. The remaining fields count owned teams, memberships and teams other than the current one. Leaving or deleting a team selects the account's default team.
Permissions
Requires the account permission teams.read (View teams).
Authorization
Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.
Send it as Bearer <token>.
Response 200
application/jsonThe record, as a JSON object. There is no envelope.
The team this request is working in.
Show child attributesHide child attributes
The team's id.
What the team is called.
True when the account owns this team rather than having been invited into it.
The account the team belongs to. Both fields are null if that account has gone.
Show child attributesHide child attributes
The name shown to customers.
The email address.
The role you hold here, or null when you own the team: ownership is not a role.
Show child attributesHide child attributes
The id ID.
The name shown to customers.
The permission keys you hold here. An account holder holds every key there is.
Every team the account can work in, the ones it owns first and its default first among those.
Show child attributesHide child attributes
The team's UUID.
What the team is called.
True when the account owns this team rather than having been invited into it.
True for the account's default team, which is where anything created without naming a team lands.
True for the team this request is working in.
The role held here, or null when the account owns the team: ownership is not a role.
Show child attributesHide child attributes
The id ID.
The name shown to customers.
How many teams the account owns.
How many teams the account has been invited into.
Those two added together, less the one this request is in.
Errors
- 401
- The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- 403
- Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- 429
- Too many requests. The
Retry-Afterheader says how many seconds to wait. Limits are per account, so several keys on one account share them.
Still stuck? Contact our team
View as Markdown