Atlassian · Capability

Atlassian Bit Bucket Repositories API — Webhooks

Atlassian Bit Bucket Repositories API — Webhooks. 5 operations. Lead operation: Atlassian List Webhooks for Repository. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianWebhooks

What You Can Do

GET
Listwebhooksforrepository — Atlassian List Webhooks for Repository
/v1/repositories/{workspace}/{repo-slug}/hooks
POST
Createwebhookforrepository — Atlassian Create Webhook for Repository
/v1/repositories/{workspace}/{repo-slug}/hooks
DELETE
Deletewebhookforrepository — Atlassian Delete Webhook for Repository
/v1/repositories/{workspace}/{repo-slug}/hooks/{uid}
GET
Getwebhookforrepository — Atlassian Get Webhook for Repository
/v1/repositories/{workspace}/{repo-slug}/hooks/{uid}
PUT
Updatewebhookforrepository — Atlassian Update Webhook for Repository
/v1/repositories/{workspace}/{repo-slug}/hooks/{uid}

MCP Tools

atlassian-list-webhooks-repository

Atlassian List Webhooks for Repository

read-only idempotent
atlassian-create-webhook-repository

Atlassian Create Webhook for Repository

atlassian-delete-webhook-repository

Atlassian Delete Webhook for Repository

idempotent
atlassian-get-webhook-repository

Atlassian Get Webhook for Repository

read-only idempotent
atlassian-update-webhook-repository

Atlassian Update Webhook for Repository

idempotent

Capability Spec

bitbucket-repositories-webhooks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Webhooks
  description: 'Atlassian Bit Bucket Repositories API — Webhooks. 5 operations. Lead operation: Atlassian List Webhooks for
    Repository. Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - 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
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Webhooks business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-hooks
      path: /repositories/{workspace}/{repo_slug}/hooks
      operations:
      - name: listwebhooksforrepository
        method: GET
        description: Atlassian List Webhooks for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createwebhookforrepository
        method: POST
        description: Atlassian Create Webhook for 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: deletewebhookforrepository
        method: DELETE
        description: Atlassian Delete Webhook for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getwebhookforrepository
        method: GET
        description: Atlassian Get Webhook for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatewebhookforrepository
        method: PUT
        description: Atlassian Update Webhook for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-webhooks-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — 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: listwebhooksforrepository
        description: Atlassian List Webhooks for Repository
        call: bitbucket-repositories-webhooks.listwebhooksforrepository
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createwebhookforrepository
        description: Atlassian Create Webhook for Repository
        call: bitbucket-repositories-webhooks.createwebhookforrepository
        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: deletewebhookforrepository
        description: Atlassian Delete Webhook for Repository
        call: bitbucket-repositories-webhooks.deletewebhookforrepository
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getwebhookforrepository
        description: Atlassian Get Webhook for Repository
        call: bitbucket-repositories-webhooks.getwebhookforrepository
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatewebhookforrepository
        description: Atlassian Update Webhook for Repository
        call: bitbucket-repositories-webhooks.updatewebhookforrepository
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-repositories-webhooks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Repositories API — 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 Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-webhooks.listwebhooksforrepository
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-webhook-repository
      description: Atlassian Create Webhook for Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-repositories-webhooks.createwebhookforrepository
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-webhook-repository
      description: Atlassian Delete Webhook for Repository
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-repositories-webhooks.deletewebhookforrepository
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-webhook-repository
      description: Atlassian Get Webhook for Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-webhooks.getwebhookforrepository
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-webhook-repository
      description: Atlassian Update Webhook for Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-repositories-webhooks.updatewebhookforrepository
      outputParameters:
      - type: object
        mapping: $.