Rate this page:
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.
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 removed. You should use the repository list endpoint instead. For more information, see the deprecation announcement.
repository
string
This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example: {workspace UUID}
.
1 2 3
curl --request GET \
--url 'https://api.bitbucket.org/2.0/teams/{workspace}/repositories' \
--header 'Authorization: Bearer <access_token>'
Unexpected error.
Content type | Value |
---|---|
application/json |
GET /2.0/user
Returns the currently logged in user.
account
1 2 3 4
curl --request GET \
--url 'https://api.bitbucket.org/2.0/user' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
GET /2.0/user/emails
Returns all the authenticated user's email addresses. Both confirmed and unconfirmed.
email
1 2 3
curl --request GET \
--url 'https://api.bitbucket.org/2.0/user/emails' \
--header 'Authorization: Bearer <access_token>'
Unexpected error.
Content type | Value |
---|---|
application/json |
GET /2.0/user/emails/{email}
Returns details about a specific one of the authenticated user's email addresses. Details describe whether the address has been confirmed by the user and whether it is the user's primary address or not.
email
string
Email address of the user.
1 2 3
curl --request GET \
--url 'https://api.bitbucket.org/2.0/user/emails/{email}' \
--header 'Authorization: Bearer <access_token>'
Unexpected error.
Content type | Value |
---|---|
application/json |
GET /2.0/users/{selected_user}
Gets the public information associated with a user account.
If the user's profile is private, location
, website
and
created_on
elements are omitted.
Note that the user object returned by this operation is changing significantly, due to privacy changes. See the announcement for details.
NONE
string
This can either be the UUID of the account, surrounded by curly-braces, for
example: {account UUID}
, OR an Atlassian Account ID.
1 2 3 4
curl --request GET \
--url 'https://api.bitbucket.org/2.0/users/{selected_user}' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
GET /2.0/users/{username}/members
This endpoint has been removed. You should use the workspaces endpoint instead. For more information, see this post.
account
string
This can either be the username or the UUID of the account,
surrounded by curly-braces, for example: {account UUID}
. An account
is either a team or user.
1 2 3 4
curl --request GET \
--url 'https://api.bitbucket.org/2.0/users/{username}/members' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
GET /2.0/users/{workspace}/repositories
All repositories in the given workspace. This includes any private repositories the calling user has access to.
This endpoint has been removed. You should use the repository list endpoint instead. For more information, see the deprecation announcement.
repository
string
This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example: {workspace UUID}
.
1 2 3
curl --request GET \
--url 'https://api.bitbucket.org/2.0/users/{workspace}/repositories' \
--header 'Authorization: Bearer <access_token>'
Unexpected error.
Content type | Value |
---|---|
application/json |
Rate this page: