Connection and authentication options
Subscribes to a client event.
Returns a ProjectResource for a given project key, providing access to project-level data and sub-resources.
The returned resource can be awaited directly to fetch project info, or chained to access nested resources.
The project key (e.g., 'PROJ')
A chainable project resource
Fetches all projects accessible to the authenticated user.
GET /rest/api/latest/projects
Optionalparams: ProjectsParamsOptional filters: limit, start, name, permission
An array of projects
Searches for repositories across all projects.
GET /rest/api/latest/repos
The name parameter is automatically prefixed with % to perform a
contains-style match rather than a prefix match.
Optionalparams: SearchReposParamsOptional filters: name, projectkey, projectname, permission, visibility, state, limit, start
A paged response of repositories
Returns a UserResource for a given user slug, providing access to user data.
The returned resource can be awaited directly to fetch user info.
The user slug (e.g., 'pilmee')
A chainable user resource
Fetches all users accessible to the authenticated user.
GET /rest/api/latest/users
Optionalparams: UsersParamsOptional filters: limit, start, filter
An array of users
Main entry point for the Bitbucket Data Center REST API client.
Example