Atlassian · Capability

Atlassian Bitbucket API — Repositories - Webhooks

Atlassian Bitbucket API — Repositories - Webhooks. 5 operations. Lead operation: Atlassian List Webhooks For A Repository. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianRepositories - Webhooks

What You Can Do

GET
Atlassianlistwebhooksforarepository — Atlassian List Webhooks For A Repository
/v1/repositories/{workspace}/{repo-slug}/hooks
POST
Atlassiancreateawebhookforarepository — Atlassian Create A Webhook For A Repository
/v1/repositories/{workspace}/{repo-slug}/hooks
DELETE
Atlassiandeleteawebhookforarepository — Atlassian Delete A Webhook For A Repository
/v1/repositories/{workspace}/{repo-slug}/hooks/{uid}
GET
Atlassiangetawebhookforarepository — Atlassian Get A Webhook For A Repository
/v1/repositories/{workspace}/{repo-slug}/hooks/{uid}
PUT
Atlassianupdateawebhookforarepository — Atlassian Update A Webhook For A Repository
/v1/repositories/{workspace}/{repo-slug}/hooks/{uid}

MCP Tools

atlassian-list-webhooks-repository

Atlassian List Webhooks For A Repository

read-only idempotent
atlassian-create-webhook-repository

Atlassian Create A Webhook For A Repository

atlassian-delete-webhook-repository

Atlassian Delete A Webhook For A Repository

idempotent
atlassian-get-webhook-repository

Atlassian Get A Webhook For A Repository

read-only idempotent
atlassian-update-webhook-repository

Atlassian Update A Webhook For A Repository

idempotent

Capability Spec

bitbucket-repositories-webhooks-2.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bitbucket API — Repositories - Webhooks
  description: 'Atlassian Bitbucket API — Repositories - Webhooks. 5 operations. Lead operation: Atlassian List Webhooks For
    A Repository. Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Repositories - Webhooks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: bitbucket-repositories-webhooks-2
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bitbucket API — Repositories - Webhooks business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-hooks
      path: /repositories/{workspace}/{repo_slug}/hooks
      operations:
      - name: atlassianlistwebhooksforarepository
        method: GET
        description: Atlassian List Webhooks For A Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassiancreateawebhookforarepository
        method: POST
        description: Atlassian Create A Webhook For A Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-hooks-uid
      path: /repositories/{workspace}/{repo_slug}/hooks/{uid}
      operations:
      - name: atlassiandeleteawebhookforarepository
        method: DELETE
        description: Atlassian Delete A Webhook For A Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassiangetawebhookforarepository
        method: GET
        description: Atlassian Get A Webhook For A Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassianupdateawebhookforarepository
        method: PUT
        description: Atlassian Update A Webhook For A Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-webhooks-2-rest
    port: 8080
    description: REST adapter for Atlassian Bitbucket API — Repositories - Webhooks. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/hooks
      name: repositories-workspace-repo-slug-hooks
      description: REST surface for repositories-workspace-repo_slug-hooks.
      operations:
      - method: GET
        name: atlassianlistwebhooksforarepository
        description: Atlassian List Webhooks For A Repository
        call: bitbucket-repositories-webhooks-2.atlassianlistwebhooksforarepository
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: atlassiancreateawebhookforarepository
        description: Atlassian Create A Webhook For A Repository
        call: bitbucket-repositories-webhooks-2.atlassiancreateawebhookforarepository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/hooks/{uid}
      name: repositories-workspace-repo-slug-hooks-uid
      description: REST surface for repositories-workspace-repo_slug-hooks-uid.
      operations:
      - method: DELETE
        name: atlassiandeleteawebhookforarepository
        description: Atlassian Delete A Webhook For A Repository
        call: bitbucket-repositories-webhooks-2.atlassiandeleteawebhookforarepository
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: atlassiangetawebhookforarepository
        description: Atlassian Get A Webhook For A Repository
        call: bitbucket-repositories-webhooks-2.atlassiangetawebhookforarepository
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: atlassianupdateawebhookforarepository
        description: Atlassian Update A Webhook For A Repository
        call: bitbucket-repositories-webhooks-2.atlassianupdateawebhookforarepository
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-repositories-webhooks-2-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bitbucket API — Repositories - Webhooks. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: atlassian-list-webhooks-repository
      description: Atlassian List Webhooks For A Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-webhooks-2.atlassianlistwebhooksforarepository
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-webhook-repository
      description: Atlassian Create A Webhook For A Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-repositories-webhooks-2.atlassiancreateawebhookforarepository
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-webhook-repository
      description: Atlassian Delete A Webhook For A Repository
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-repositories-webhooks-2.atlassiandeleteawebhookforarepository
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-webhook-repository
      description: Atlassian Get A Webhook For A Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-webhooks-2.atlassiangetawebhookforarepository
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-webhook-repository
      description: Atlassian Update A Webhook For A Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-repositories-webhooks-2.atlassianupdateawebhookforarepository
      outputParameters:
      - type: object
        mapping: $.