How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Bitbucket Pipelines Webhooks API

Webhooks provide a way to configure Bitbucket Cloud to make requests toyour server (or another external service) whenever certain events occur inBitbucket Cloud.A webhook consists of:* A subject -- The resource that generates the events. Currently, this resourceis the repository, user account, or team where you create the webhook.* One or more event -- The default event is a repository push, but you canselect multiple events that can trigger the webhook.* A URL -- The endpoint where you want Bitbucket to send the event payloadswhen a matching event happens.There are two parts to getting a webhook to work: creating the webhook andtriggering the webhook. After you create a webhook for an event, every timethat event occurs, Bitbucket sends a payload request that describes the eventto the specified URL. Thus, you can think of webhooks as a kind ofnotification system.Use webhooks to integrate applications with Bitbucket Cloud. The followinguse cases provides examples of when you would want to use webhooks:* Every time a user pushes commits in a repository, you may want to notifyyour CI server to start a build.* Every time a user pushes commits or creates a pull request, you may want todisplay a notification in your application.

Bitbucket Pipelines Webhooks API is one of 23 APIs that Bitbucket Pipelines publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Webhook. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and authentication docs.

This API exposes 12 operations across 6 paths, and defines 7 schemas. It is described by OpenAPI 2.0, at version 2.0.

Requests are made against the base URL https://api.bitbucket.org/2.0.

12 operations 6 paths 7 schemas 2 DELETE6 GET2 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 2.0
API Version
2.0
Base URL
https://api.bitbucket.org/2.0
Authentication
basic, OAuth 2.0, API Key
Terms of Service
Resource Areas
1

Authentication & Security 3

Bitbucket Pipelines Webhooks API declares 3 security schemes for authenticating requests. It defines a basic scheme (basic). It supports OAuth 2.0 (oauth2) using the accessCode flow, exposing 26 scopes. An API key is passed in the header as Authorization (api_key).

  • basic — Basic HTTP Authentication as per [RFC-2617](https://tools.ietf.org/html/rfc2617) (Digest not supported). Note that Basic Auth is available only with username a…
  • oauth2 — OAuth 2 as per [RFC-6749](https://tools.ietf.org/html/rfc6749).
  • api_key — API Keys can be used as Basic HTTP Authentication credentials and provide a substitute for the account's actual username and password. API Keys are only availa…

Paths & Operations 12

Across 6 paths, the API surfaces 12 operations — 2 DELETE, 6 GET, 2 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Webhooks 12

Webhooks provide a way to configure Bitbucket Cloud to make requests to your server (or another external service) whenever certain events occur in Bitbucket Cloud. A webhook consi…

GET
/hook_events
Get a webhook resource
→ 200
GET
/hook_events/{subject_type}
List subscribable webhook types
1 param → 200404
GET
/repositories/{workspace}/{repo_slug}/hooks
List webhooks for a repository
2 params → 200403404
POST
/repositories/{workspace}/{repo_slug}/hooks
Create a webhook for a repository
2 params → 201403404
DELETE
/repositories/{workspace}/{repo_slug}/hooks/{uid}
Delete a webhook for a repository
3 params → 204403404
GET
/repositories/{workspace}/{repo_slug}/hooks/{uid}
Get a webhook for a repository
3 params → 200404
PUT
/repositories/{workspace}/{repo_slug}/hooks/{uid}
Update a webhook for a repository
3 params → 200403404
GET
/workspaces/{workspace}/hooks
List webhooks for a workspace
1 param → 200403404
POST
/workspaces/{workspace}/hooks
Create a webhook for a workspace
1 param → 201403404
DELETE
/workspaces/{workspace}/hooks/{uid}
Delete a webhook for a workspace
2 params → 204403404
GET
/workspaces/{workspace}/hooks/{uid}
Get a webhook for a workspace
2 params → 200404
PUT
/workspaces/{workspace}/hooks/{uid}
Update a webhook for a workspace
2 params → 200403404

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are paginated_webhook_subscriptions (6 properties), paginated_hook_events (6 properties), hook_event (4 properties), error (2 properties). Each schema is shown below with its type and property counts.

paginated_hook_events
object
A paginated list of webhook types available to subscribe on.
6 properties
subject_types
object
The mapping of resource/subject types pointing to their individual event types.
2 properties
hook_event
object
An event, associated with a resource or subject type.
4 properties
paginated_webhook_subscriptions
object
A paginated list of webhook subscriptions
6 properties
webhook_subscription
error
object
Base type for most resource objects. It defines the common type element that identifies an object's type. It also identifies the element as Swagger's discrimin…
2 properties 1 required
object
object
Base type for most resource objects. It defines the common type element that identifies an object's type. It also identifies the element as Swagger's discrimin…
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

bitbucket-pipelines-webhooks-api-openapi.yml Raw ↑

Other APIs Bitbucket Pipelines publishes across the network.

Bitbucket Pipelines Addon API
Bitbucket Pipelines Branch restrictions API
Bitbucket Pipelines Branching model API
Bitbucket Pipelines Commit statuses API
Bitbucket Pipelines Commits API
Bitbucket Pipelines Deployments API
Bitbucket Pipelines Downloads API
Bitbucket Pipelines GPG API
Bitbucket Pipelines Issue tracker API
Bitbucket Pipelines Pipelines API
Bitbucket Pipelines Projects API
Bitbucket Pipelines properties API
Where this information came from

This is an independent, third-party profile of Bitbucket Pipelines Webhooks API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.