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:

Users

The users resource allows you to access public information associated with a user account. Most resources in the users endpoint have been deprecated in favor of workspaces.

List workspace repositories

Deprecated

GET /2.0/teams/{workspace}/repositories

All repositories in the given workspace. This includes any private repositories the calling user has access to.

This endpoint has been deprecated and will stop functioning soon. You should use the repository list endpoint instead. For more information, see the deprecation announcement.

OAuth scopes required
repository

Request

Path parameters
workspace Required

string

This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: {workspace UUID}.

Example

1
2
3
curl --request GET \
  --url 'https://api.bitbucket.org/2.0/teams/{workspace}/repositories' \
  --header 'Authorization: Bearer <access_token>'

Responses

Unexpected error.

Content typeValue
application/json

Error

Get current user

GET /2.0/user

Returns the currently logged in user.

OAuth scopes required
account

Request

There are no parameters for this request.

Example

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

Responses