GitHub · Capability

GitHub Org API — Webhooks

GitHub Org API — Webhooks. 11 operations. Lead operation: GitHub List Organization Webhooks. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubWebhooks

What You Can Do

GET
Listorganizationwebhooks — GitHub List Organization Webhooks
/v1/orgs/{org}/hooks
POST
Createanorganizationwebhook — GitHub Create an Organization Webhook
/v1/orgs/{org}/hooks
GET
Getanorganizationwebhook — GitHub Get an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}
PATCH
Updateanorganizationwebhook — GitHub Update an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}
DELETE
Deleteanorganizationwebhook — GitHub Delete an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}
GET
Getwebhookconfigurationforanorganization — GitHub Get Webhook Configuration for an Organization
/v1/orgs/{org}/hooks/{hook-id}/config
PATCH
Updatewebhookconfigurationforanorganization — GitHub Update Webhook Configuration for an Organization
/v1/orgs/{org}/hooks/{hook-id}/config
GET
Listdeliveriesforanorganizationwebhook — GitHub List Deliveries for an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}/deliveries
GET
Getwebhookdeliveryforanorganizationwebhook — GitHub Get Webhook Delivery for an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}/deliveries/{delivery-id}
POST
Redeliverdeliveryforanorganizationwebhook — GitHub Redeliver Delivery for an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}/deliveries/{delivery-id}/attempts
POST
Pinganorganizationwebhook — GitHub Ping an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}/pings

MCP Tools

github-list-organization-webhooks

GitHub List Organization Webhooks

read-only idempotent
github-create-organization-webhook

GitHub Create an Organization Webhook

github-get-organization-webhook

GitHub Get an Organization Webhook

read-only idempotent
github-update-organization-webhook

GitHub Update an Organization Webhook

idempotent
github-delete-organization-webhook

GitHub Delete an Organization Webhook

idempotent
github-get-webhook-configuration-organization

GitHub Get Webhook Configuration for an Organization

read-only idempotent
github-update-webhook-configuration-organization

GitHub Update Webhook Configuration for an Organization

idempotent
github-list-deliveries-organization-webhook

GitHub List Deliveries for an Organization Webhook

read-only idempotent
github-get-webhook-delivery-organization

GitHub Get Webhook Delivery for an Organization Webhook

read-only idempotent
github-redeliver-delivery-organization-webhook

GitHub Redeliver Delivery for an Organization Webhook

github-ping-organization-webhook

GitHub Ping an Organization Webhook

Capability Spec

organizations-webhooks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Org API — Webhooks
  description: 'GitHub Org API — Webhooks. 11 operations. Lead operation: GitHub List Organization Webhooks. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Webhooks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: organizations-webhooks
    baseUri: ''
    description: GitHub Org API — Webhooks business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-hooks
      path: /orgs/{org}/hooks
      operations:
      - name: listorganizationwebhooks
        method: GET
        description: GitHub List Organization Webhooks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createanorganizationwebhook
        method: POST
        description: GitHub Create an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-hooks-hook_id
      path: /orgs/{org}/hooks/{hook_id}
      operations:
      - name: getanorganizationwebhook
        method: GET
        description: GitHub Get an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateanorganizationwebhook
        method: PATCH
        description: GitHub Update an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deleteanorganizationwebhook
        method: DELETE
        description: GitHub Delete an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-hooks-hook_id-config
      path: /orgs/{org}/hooks/{hook_id}/config
      operations:
      - name: getwebhookconfigurationforanorganization
        method: GET
        description: GitHub Get Webhook Configuration for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatewebhookconfigurationforanorganization
        method: PATCH
        description: GitHub Update Webhook Configuration for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: orgs-org-hooks-hook_id-deliveries
      path: /orgs/{org}/hooks/{hook_id}/deliveries
      operations:
      - name: listdeliveriesforanorganizationwebhook
        method: GET
        description: GitHub List Deliveries for an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: redelivery
          in: query
          type: boolean
    - name: orgs-org-hooks-hook_id-deliveries-delivery_id
      path: /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}
      operations:
      - name: getwebhookdeliveryforanorganizationwebhook
        method: GET
        description: GitHub Get Webhook Delivery for an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-hooks-hook_id-deliveries-delivery_id-attempts
      path: /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts
      operations:
      - name: redeliverdeliveryforanorganizationwebhook
        method: POST
        description: GitHub Redeliver Delivery for an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-hooks-hook_id-pings
      path: /orgs/{org}/hooks/{hook_id}/pings
      operations:
      - name: pinganorganizationwebhook
        method: POST
        description: GitHub Ping an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: organizations-webhooks-rest
    port: 8080
    description: REST adapter for GitHub Org API — Webhooks. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org}/hooks
      name: orgs-org-hooks
      description: REST surface for orgs-org-hooks.
      operations:
      - method: GET
        name: listorganizationwebhooks
        description: GitHub List Organization Webhooks
        call: organizations-webhooks.listorganizationwebhooks
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createanorganizationwebhook
        description: GitHub Create an Organization Webhook
        call: organizations-webhooks.createanorganizationwebhook
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/hooks/{hook-id}
      name: orgs-org-hooks-hook-id
      description: REST surface for orgs-org-hooks-hook_id.
      operations:
      - method: GET
        name: getanorganizationwebhook
        description: GitHub Get an Organization Webhook
        call: organizations-webhooks.getanorganizationwebhook
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateanorganizationwebhook
        description: GitHub Update an Organization Webhook
        call: organizations-webhooks.updateanorganizationwebhook
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteanorganizationwebhook
        description: GitHub Delete an Organization Webhook
        call: organizations-webhooks.deleteanorganizationwebhook
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/hooks/{hook-id}/config
      name: orgs-org-hooks-hook-id-config
      description: REST surface for orgs-org-hooks-hook_id-config.
      operations:
      - method: GET
        name: getwebhookconfigurationforanorganization
        description: GitHub Get Webhook Configuration for an Organization
        call: organizations-webhooks.getwebhookconfigurationforanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatewebhookconfigurationforanorganization
        description: GitHub Update Webhook Configuration for an Organization
        call: organizations-webhooks.updatewebhookconfigurationforanorganization
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/hooks/{hook-id}/deliveries
      name: orgs-org-hooks-hook-id-deliveries
      description: REST surface for orgs-org-hooks-hook_id-deliveries.
      operations:
      - method: GET
        name: listdeliveriesforanorganizationwebhook
        description: GitHub List Deliveries for an Organization Webhook
        call: organizations-webhooks.listdeliveriesforanorganizationwebhook
        with:
          redelivery: rest.redelivery
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/hooks/{hook-id}/deliveries/{delivery-id}
      name: orgs-org-hooks-hook-id-deliveries-delivery-id
      description: REST surface for orgs-org-hooks-hook_id-deliveries-delivery_id.
      operations:
      - method: GET
        name: getwebhookdeliveryforanorganizationwebhook
        description: GitHub Get Webhook Delivery for an Organization Webhook
        call: organizations-webhooks.getwebhookdeliveryforanorganizationwebhook
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/hooks/{hook-id}/deliveries/{delivery-id}/attempts
      name: orgs-org-hooks-hook-id-deliveries-delivery-id-attempts
      description: REST surface for orgs-org-hooks-hook_id-deliveries-delivery_id-attempts.
      operations:
      - method: POST
        name: redeliverdeliveryforanorganizationwebhook
        description: GitHub Redeliver Delivery for an Organization Webhook
        call: organizations-webhooks.redeliverdeliveryforanorganizationwebhook
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/hooks/{hook-id}/pings
      name: orgs-org-hooks-hook-id-pings
      description: REST surface for orgs-org-hooks-hook_id-pings.
      operations:
      - method: POST
        name: pinganorganizationwebhook
        description: GitHub Ping an Organization Webhook
        call: organizations-webhooks.pinganorganizationwebhook
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: organizations-webhooks-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Org API — Webhooks. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-list-organization-webhooks
      description: GitHub List Organization Webhooks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-webhooks.listorganizationwebhooks
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-organization-webhook
      description: GitHub Create an Organization Webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: organizations-webhooks.createanorganizationwebhook
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-organization-webhook
      description: GitHub Get an Organization Webhook
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-webhooks.getanorganizationwebhook
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-organization-webhook
      description: GitHub Update an Organization Webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-webhooks.updateanorganizationwebhook
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-delete-organization-webhook
      description: GitHub Delete an Organization Webhook
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: organizations-webhooks.deleteanorganizationwebhook
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-webhook-configuration-organization
      description: GitHub Get Webhook Configuration for an Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-webhooks.getwebhookconfigurationforanorganization
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-webhook-configuration-organization
      description: GitHub Update Webhook Configuration for an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-webhooks.updatewebhookconfigurationforanorganization
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-deliveries-organization-webhook
      description: GitHub List Deliveries for an Organization Webhook
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-webhooks.listdeliveriesforanorganizationwebhook
      with:
        redelivery: tools.redelivery
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-webhook-delivery-organization
      description: GitHub Get Webhook Delivery for an Organization Webhook
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-webhooks.getwebhookdeliveryforanorganizationwebhook
      outputParameters:
      - type: object
        mapping: $.
    - name: github-redeliver-delivery-organization-webhook
      description: GitHub Redeliver Delivery for an Organization Webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: organizations-webhooks.redeliverdeliveryforanorganizationwebhook
      outputParameters:
      - type: object
        mapping: $.
    - name: github-ping-organization-webhook
      description: GitHub Ping an Organization Webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: organizations-webhooks.pinganorganizationwebhook
      outputParameters:
      - type: object
        mapping: $.