All integrations
Get an API key
Bitbucket
Repositories, pull requests and pipelines on Bitbucket Cloud.
Developer
How an agent reaches it
MCPREST APICLI
How you authenticate
API key
Username and password
- Open Bitbucket, then Personal settings, then App passwords.
- Create an app password with the repository and pull request permissions you need.
- Paste it below. Bitbucket expects it as an HTTP Basic password alongside your username.
Connection details
- Base URL
- https://api.bitbucket.org/2.0
- Pagination
- cursor
Common endpoints
| who am I | GET /user |
| list repositories | GET /repositories/{workspace} |
| list pull requests | GET /repositories/{workspace}/{repo}/pullrequests |
| create pull request | POST /repositories/{workspace}/{repo}/pullrequests |
Worth knowing
- Bitbucket Cloud and Bitbucket Server (Data Center) have entirely different APIs. This card is Cloud.
- Workspace slugs, not names, appear in paths.