Repositories
Webhooks

List webhooks for a repository

Changed on

Returns a paginated list of webhooks installed on this repository.

get/repositories/{workspace}/{repo_slug}/hooks

Request

  • Base URL
    https://api.bitbucket.org/2.0
  • URL
    https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/hooks
  • Auth
    • OAuth 2
      Authorization code: https://bitbucket.org/site/oauth2/authorize
      Token URL: https://bitbucket.org/site/oauth2/access_token scopes: webhook
    • or HTTP basic
    • or API key in header Authorization

Path parameters

workspacestring required

This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}.

repo_slugstring required

This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: {repository UUID}.

Response

The paginated list of installed webhooks.

pageleninteger

Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values.

nextstring uri

Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs.

Changes

    • breaking

      added the new path request parameter repo_slug

    • breaking

      added the new path request parameter workspace

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      api operation id list_repository_hooks was added

    • info

      added the optional property /// to the response with the status

    • info

      the response optional property /// became read-only for the status

    • info

      the response optional property /// became read-only for the status

    • info

      the response optional property /// became read-only for the status

    • info

      the response optional property /// became read-only for the status

    • warning

      added the new pipeline:span_created enum value to the //// response property for the response status

    • warning

      added the new pullrequest:push enum value to the //// response property for the response status