- Home
- Resources
- Integrations
- Bitbucket
Bitbucket n8n integrationAutomate Bitbucket with n8n.
The Bitbucket n8n integration is a trigger and nothing else. The Bitbucket Trigger listens to repository events over a webhook, a URL that Bitbucket calls when something happens, takes a workspace, a repository and the events you pick, then hands the payload to the workflow.
Verified Trustpilot reviews · AI, automation & growth agency
What does the Bitbucket n8n integration actually cover?
The Bitbucket n8n integration runs in one direction, and that matters before you start building. n8n ships a Bitbucket Trigger node, so events coming from a repository can start a workflow. There is no Bitbucket action node in the catalog, so nothing here creates or edits anything inside Bitbucket. Bitbucket speaks, n8n listens, and the real work happens in whatever you connect next.
Start with the notification loop. The trigger fires on the repository events you ticked, and the workflow posts a formatted message into Slack. You decide exactly which payload fields land in the message, which is precisely the part a generic bot never manages to get right.
Second pattern, the audit log. Each event the trigger receives becomes a row in Google Sheets, carrying the workspace, the repository and the moment it arrived. Handy when a team needs a readable record outside Bitbucket and nobody wants to run a log platform for it.
Third pattern, the handoff. The trigger starts the run, a filter step drops the events nobody cares about, and only the rest reaches the next node. That next node can be any tool n8n talks to, which is where the missing action node stops hurting.
Writing back into Bitbucket is the case to plan for. Since no action node exists, that traffic goes through the HTTP Request node, which calls any endpoint of the Bitbucket API and reuses the same credential through predefined authentication. One token, no second setup.
Two limits are worth knowing upfront. The trigger asks for a workspace and a repository, so it watches one repository at a time: a fleet means one workflow per repository, or an expression feeding that field. And the event list is served by Bitbucket, so what you can listen to depends on the account and the scopes behind the token. New to the platform? The n8n review covers what it does well, and the n8n training covers building workflows properly.
How do you connect Bitbucket to n8n?
- 01
Create an API token in Bitbucket
Log in to Bitbucket and open your account or personal settings. Look for the section covering API tokens or security settings. Create a new token there, giving it a name you will recognize later and an expiry date that matches the use case: a token that never expires is a token nobody rotates. A Bitbucket account is the only prerequisite.
- 02
Select the six scopes the trigger needs
Pick Bitbucket as the app, then check the scopes. Three cover reading:
read:user:bitbucket,read:workspace:bitbucketandread:repository:bitbucket, which let n8n list your workspaces and repositories in the node dropdowns. Three cover the webhook lifecycle:read:webhook:bitbucket,write:webhook:bitbucketanddelete:webhook:bitbucket, so n8n can register and remove its own webhook. - 03
Add the credential in n8n
Review and create the token, then copy it straight away. Back in n8n, open the Credentials menu and create a Bitbucket credential with the access token method, pasting the value in. A credential is stored once and reused everywhere: the Bitbucket Trigger then offers it in its own dropdown, and any HTTP Request node pointed at the Bitbucket API can use it too.
What starts a workflow from Bitbucket ?
Bitbucket Trigger is the node that starts a workflow each time Bitbucket receives a new submission. Pick the form, activate the workflow: n8n registers the webhook on your Bitbucket account.
What you see in n8n
Configuration notes
01Set Up the Bitbucket Trigger
This node is the entry point of the workflow: it waits for Bitbucket to report something and starts a run with that payload as the first item. Version 1 of the node asks for four fields, all of them required.
Key parameters
- Resource: what the trigger watches, which decides whether the following fields target a workspace or a single repository.
- Workspace Name or ID: the workspace whose events you want. Choose it from the list n8n loads from your credential, or pass an ID through an expression such as
{{ $json.workspace }}, which is the n8n syntax for reading a field off the incoming item. - Repository Name or ID: the repository to listen to, picked from the same kind of dropdown or set by expression.
02Select the Event Names to Listen To
Nothing reaches the workflow until this field is filled. The node keeps its event list empty by default and loads the choices from Bitbucket itself once the credential and the repository are set, so the options reflect that account rather than a hardcoded catalog.
Key parameters
- Event Names or IDs: a multi-select, so several events can feed the same workflow. Tick them in the list, or supply the identifiers through an expression when the selection has to change per environment.
03Activate the Workflow to Register the Webhook
Configuration alone changes nothing on the Bitbucket side. n8n registers its webhook URL with Bitbucket when the workflow is activated, which is why the token carries the write permission for webhooks, and removes it again when the workflow is deactivated.
Need help automating Bitbucket with n8n?
A person reads every message.
Bitbucket and n8n: common questions
01Is the Bitbucket n8n integration free?
02What credentials and permissions does the Bitbucket Trigger need?
03What are the limits of Bitbucket in n8n?
04Does the Bitbucket Trigger react in real time?
05n8n or Make for Bitbucket?
Get our weekly integration tips.
No spam. Unsubscribe anytime.


