1
Create a Dedicated User for Corgea (Optional)
While not required, we recommend creating a dedicated Bitbucket user account for Corgea integration. This helps distinguish Corgea’s automated actions from your personal account activity and provides better auditability.

2
Generate an API Access Token
Navigate to the Atlassian API Tokens page and click “Create API token with scopes” to begin.
Provide a descriptive name for your token and set the expiration date to one year from today. This ensures the token remains valid for an extended period while maintaining security best practices.
Select Bitbucket from the applications list to grant Bitbucket access to this token.
Configure the required scopes for Corgea integration. Enable the following scopes:
Review your configuration and click “Create token” to generate the access token.
After the token is created, click the copy button to copy the token value. You’ll need this token in the next step, and it won’t be displayed again.



Repositories: “read:repository:bitbucket”, “write:repository:bitbucket”Pull requests: “read:pullrequest:bitbucket”, “write:pullrequest:bitbucket”Webhooks: “read:webhook:bitbucket”, “write:webhook:bitbucket”, “delete:webhook:bitbucket”General Info: “read:user:bitbucket”, “read:workspace:bitbucket”



3
Configure Bitbucket Integration in Corgea
Access your Corgea dashboard at 
In the “Code Repository Integrations” section, locate Bitbucket and click the plus (+) icon to create a new integration.
Complete the integration form with the following information:
Corgea validates your credentials automatically. If any information is incorrect, you’ll receive an error message with details about what needs to be corrected.
Upon successful validation, you’ll see a confirmation message indicating that the integration is complete. Webhooks are automatically configured during this process, so no manual webhook setup is required. You can view the integration details, including webhook status, from the integrations page.
corgea.app or {your-instance}.corgea.app and navigate to the Integrations page using the sidebar or integrations link.

- Workspace slug: Your Bitbucket workspace identifier
- Email address: The email associated with the Bitbucket account used to generate the API token
- Access token: The API token you copied in the previous step
- Integration name (optional): A custom name to identify this integration if you manage multiple Bitbucket workspaces



