Prerequisites
Complete the shared prerequisites. You need permission to create an OAuth consumer in your Bitbucket Cloud workspace and access to the repositories you want to connect. This flow targets Bitbucket Cloud, not Bitbucket Data Center.1. Create an OAuth consumer
In your Bitbucket workspace settings, create an OAuth consumer with callback URLhttps://tembo.example.com/api/oauth/bitbucket/callback.
Configure permissions covering the scopes Tembo requests: account, repository, pullrequest:write, and webhook. Copy the consumer key and secret.
2. Configure Tembo
Add these keys to/var/lib/tembo/config.json:
Follow the restart instructions. Allow Bitbucket webhook delivery to
https://tembo.example.com/api/webhook/bitbucket.
3. Install and verify
- Open Settings → Integrations on your instance and install Bitbucket.
- Authorize the consumer using an account with access to the intended workspace.
- Select a connected repository and start a test session.
- Confirm a pull request can be opened and that webhook deliveries succeed.