bitbucket_api
Access any Bitbucket Cloud REST API v2 endpoint for pipelines, webhooks, branch restrictions, and more. Supports pagination and returns raw HTTP status and JSON body.
Instructions
Authenticated passthrough to ANY Bitbucket Cloud REST API v2 endpoint not covered by the manage_* tools above (e.g. pipelines-config/OIDC, webhooks, branch restrictions). Prefer a typed manage_* tool when one fits; use this for the long tail instead of calling the API yourself. Reads (GET/HEAD) work by default; write methods are rejected unless BBKT_API_ALLOW_WRITE is set on the server. Supports pagination and returns the raw HTTP status + JSON body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Raw JSON request body for POST/PUT/PATCH | |
| path | Yes | Bitbucket API v2 path, e.g. '/repositories/{workspace}/{repo}/pipelines'. A leading /2.0 and the api.bitbucket.org host are optional. | |
| method | No | HTTP method (default GET) | |
| paginate | No | Follow pagination and merge all 'values' (GET collections) | |
| max_pages | No | Max pages when paginate is true (default 10; a cap is reported as truncated) |