Skip to content

Developer tools

Bitbucket Cloud mock API

Bitbucket Cloud REST API: repositories, branches and tags, pull requests with merge/decline/approve, comments, commits and signed repository and workspace webhooks.

At a glance

Operations
300
Stateful operations
41
Stateful resources
5
Webhook events
6
Vendor API version
2.0
Verification
Spec-verified

How it works

Use Bitbucket Cloud without calling Atlassian

Authorization: Bearer YourAccessToken

State

Resources that remember

Writes persist per caller, so a create followed by a read returns what you created.

ResourceOperations
Repositories8
Branches and tags8
Pull requests13
Webhooks10
Commits3

Webhooks

Events your handlers can receive

Deliveries are signed with the hmac scheme, so your verification code runs unchanged.

Coverage

300 operations

41 of them are stateful. The largest groups:

GroupOperations
Other operations258
Pull requests13
Webhooks10
Branches and tags8
Repositories8
Commits3

Verification

Spec-verified

Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.

14 operations cannot be checked against the specification.

Source and limits

License, source and limits

Each collection holds up to 1 MiB of objects per credential; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Stateful: repositories (create, update, delete; each new repo gets a main branch and one commit), branches and tags, pull requests (per-repository id counter; merge, decline, approve/unapprove and comments), commits (read), repository and workspace webhooks, plus /user and /workspaces/{workspace}; every other operation answers a schema-valid sample. Any non-empty Authorization header (Basic or Bearer) isolates a caller. Lists use the page/pagelen/next envelope (pagelen above 100 is clamped to 100; webhook lists carry only pagelen/values/next as the vendor schema allows); q supports only name="x" and name~"x" on repositories, branches and tags; the pull request state filter takes one value (default OPEN). Deleting a repository also removes its pull requests, comments, branches, tags and commits; repository and workspace webhooks are keyed by uuid and are not removed with the repository. Invalid transitions (merging or declining a non-open pull request) answer 400. GET commits/{revision} lists commits (as the vendor spec declares). Webhooks are delivered to every active hook of the caller whose events include the event (not scoped to the repository), for repo:push (branch create), pullrequest:created/updated/approved/fulfilled/rejected, signed as X-Hub-Signature: sha256=HMAC-SHA256(secret, body); a hook without a secret is delivered unsigned and seeded hooks are inactive. Branch and tag names with slashes (percent-encoded in the path) are not decoded. Not reproduced: diffs, pipelines, issues, source browsing, permissions, real git content, merge conflicts.

MaxoPerf is not affiliated with, endorsed by, or sponsored by Atlassian. Bitbucket Cloud is a trademark of its owner.