# Bitbucket Snippets API

**Canonical:** https://apis.io/apis/bitbucket/bitbucket-snippets-api/  
**Provider:** Bitbucket — https://apis.io/providers/bitbucket/  
**Base URL:** https://api.bitbucket.org/2.0  
**Documentation:** https://developer.atlassian.com/bitbucket/api/2/reference/

Bitbucket Snippets API is one of 23 APIs that [Bitbucket](https://apis.io/providers/bitbucket/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification. This API exposes 8 JSON Schema definitions. Tagged areas include Snippets. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an AsyncAPI specification, and 8 JSON Schemas.

Snippets allow you share code segments or files with yourself, members of your workspace, or the world. Like pull requests, repositories and workspaces, the full set of snippets is defined by what the current user has access to. This includes all snippets owned by any of the workspaces the user is a member of, or snippets by other users that the current user is either watching or has collaborated on (for instance by commenting on it).

## Machine-readable artifacts (16)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/openapi/bitbucket-snippets-api-openapi.yml
- **Documentation** — https://developer.atlassian.com/bitbucket/api/2/reference/
- **Authentication** — https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/json-schema/bitbucket-cloud-rest-api-repository-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/json-schema/bitbucket-cloud-rest-api-pullrequest-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/json-schema/bitbucket-cloud-rest-api-pipeline-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/json-schema/bitbucket-cloud-rest-api-commit-schema.json
- **JSONStructure** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/json-structure/bitbucket-cloud-rest-api-repository-structure.json
- **JSONStructure** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/json-structure/bitbucket-cloud-rest-api-pullrequest-structure.json
- **JSONStructure** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/json-structure/bitbucket-cloud-rest-api-pipeline-structure.json
- **JSONStructure** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/json-structure/bitbucket-cloud-rest-api-commit-structure.json
- **Examples** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/examples/bitbucket-cloud-rest-api-repository-example.json
- **Examples** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/examples/bitbucket-cloud-rest-api-pullrequest-example.json
- **Examples** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/examples/bitbucket-cloud-rest-api-pipeline-example.json
- **Examples** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/examples/bitbucket-cloud-rest-api-commit-example.json
- **AsyncAPI** — https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/asyncapi/bitbucket-cloud-webhooks-asyncapi.yml

## Other Bitbucket APIs (12)

- [Bitbucket Addon API](https://apis.io/apis/bitbucket/bitbucket-addon-api/)
- [Bitbucket Branch restrictions API](https://apis.io/apis/bitbucket/bitbucket-branch-restrictions-api/)
- [Bitbucket Branching model API](https://apis.io/apis/bitbucket/bitbucket-branching-model-api/)
- [Bitbucket Commit statuses API](https://apis.io/apis/bitbucket/bitbucket-commit-statuses-api/)
- [Bitbucket Commits API](https://apis.io/apis/bitbucket/bitbucket-commits-api/)
- [Bitbucket Deployments API](https://apis.io/apis/bitbucket/bitbucket-deployments-api/)
- [Bitbucket Downloads API](https://apis.io/apis/bitbucket/bitbucket-downloads-api/)
- [Bitbucket GPG API](https://apis.io/apis/bitbucket/bitbucket-gpg-api/)
- [Bitbucket Issue tracker API](https://apis.io/apis/bitbucket/bitbucket-issue-tracker-api/)
- [Bitbucket Pipelines API](https://apis.io/apis/bitbucket/bitbucket-pipelines-api/)
- [Bitbucket Projects API](https://apis.io/apis/bitbucket/bitbucket-projects-api/)
- [Bitbucket properties API](https://apis.io/apis/bitbucket/bitbucket-properties-api/)

## Tags

Snippets

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/bitbucket/bitbucket-snippets-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/bitbucket/.
