Addon
Branch restrictions
Branching model
Commit statuses
Commits
Deployments
Downloads
Issue tracker
Pipelines
Projects
Pullrequests
Refs
Reports
Repositories
Snippets
Source
Ssh
Teams
Users
Webhooks
Workspaces
Other operations

Rate this page:

Teams

The teams resource has been deprecated, and the workspaces endpoint should be used instead. The teams resource returns all the teams that the authenticated user is associated with.

List teams a user is part of

Deprecated

GET /2.0/teams

Returns all the teams that the authenticated user is associated with.

This endpoint has been deprecated and will stop functioning soon. You should use the workspaces endpoint instead. For more information, see this post.

OAuth scopes required
team

Request

Query parameters
role

string

Filters the teams based on the authenticated user's role on each team.

  • member: returns a list of all the teams which the caller is a member of at least one team group or repository owned by the team
  • contributor: returns a list of teams which the caller has write access to at least one repository owned by the team
  • admin: returns a list teams which the caller has team administrator access

Valid values: admin, contributor, member

Example

1
2
3
4
curl --request GET \
  --url 'https://api.bitbucket.org/2.0/teams' \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Accept: application/json'

Responses

A paginated list of teams.

Content typeValue
application/json

Paginated Teams

Get a team

Deprecated

GET /2.0/teams/{username}

Gets the public information associated with a team.

If the team's profile is private, location, website and created_on elements are omitted.

This endpoint has been deprecated and will stop functioning on August 25th, 2021. You should use the workspace endpoint instead. For more information, see this post.

OAuth scopes required
None

Request

Path parameters
username