Storyblok · Capability

Storyblok Management API — Webhooks

Storyblok Management API — Webhooks. 5 operations. Lead operation: List webhook endpoints. Self-contained Naftiko capability covering one Storyblok business surface.

Run with Naftiko StoryblokWebhooks

What You Can Do

GET
Listwebhooks — List webhook endpoints
/v1/spaces/{space-id}/webhook-endpoints
POST
Createwebhook — Create a webhook endpoint
/v1/spaces/{space-id}/webhook-endpoints
GET
Getwebhook — Retrieve a single webhook endpoint
/v1/spaces/{space-id}/webhook-endpoints/{webhook-id}
PUT
Updatewebhook — Update a webhook endpoint
/v1/spaces/{space-id}/webhook-endpoints/{webhook-id}
DELETE
Deletewebhook — Delete a webhook endpoint
/v1/spaces/{space-id}/webhook-endpoints/{webhook-id}

MCP Tools

list-webhook-endpoints

List webhook endpoints

read-only idempotent
create-webhook-endpoint

Create a webhook endpoint

retrieve-single-webhook-endpoint

Retrieve a single webhook endpoint

read-only idempotent
update-webhook-endpoint

Update a webhook endpoint

idempotent
delete-webhook-endpoint

Delete a webhook endpoint

idempotent

Capability Spec

management-webhooks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Storyblok Management API — Webhooks
  description: 'Storyblok Management API — Webhooks. 5 operations. Lead operation: List webhook endpoints. Self-contained
    Naftiko capability covering one Storyblok business surface.'
  tags:
  - Storyblok
  - Webhooks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STORYBLOK_API_KEY: STORYBLOK_API_KEY
capability:
  consumes:
  - type: http
    namespace: management-webhooks
    baseUri: https://mapi.storyblok.com/v1
    description: Storyblok Management API — Webhooks business capability. Self-contained, no shared references.
    resources:
    - name: spaces-space_id-webhook_endpoints
      path: /spaces/{space_id}/webhook_endpoints
      operations:
      - name: listwebhooks
        method: GET
        description: List webhook endpoints
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createwebhook
        method: POST
        description: Create a webhook endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: spaces-space_id-webhook_endpoints-webhook_id
      path: /spaces/{space_id}/webhook_endpoints/{webhook_id}
      operations:
      - name: getwebhook
        method: GET
        description: Retrieve a single webhook endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatewebhook
        method: PUT
        description: Update a webhook endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletewebhook
        method: DELETE
        description: Delete a webhook endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.STORYBLOK_API_KEY}}'
  exposes:
  - type: rest
    namespace: management-webhooks-rest
    port: 8080
    description: REST adapter for Storyblok Management API — Webhooks. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/spaces/{space-id}/webhook-endpoints
      name: spaces-space-id-webhook-endpoints
      description: REST surface for spaces-space_id-webhook_endpoints.
      operations:
      - method: GET
        name: listwebhooks
        description: List webhook endpoints
        call: management-webhooks.listwebhooks
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createwebhook
        description: Create a webhook endpoint
        call: management-webhooks.createwebhook
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/spaces/{space-id}/webhook-endpoints/{webhook-id}
      name: spaces-space-id-webhook-endpoints-webhook-id
      description: REST surface for spaces-space_id-webhook_endpoints-webhook_id.
      operations:
      - method: GET
        name: getwebhook
        description: Retrieve a single webhook endpoint
        call: management-webhooks.getwebhook
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatewebhook
        description: Update a webhook endpoint
        call: management-webhooks.updatewebhook
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletewebhook
        description: Delete a webhook endpoint
        call: management-webhooks.deletewebhook
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: management-webhooks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Storyblok Management API — Webhooks. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-webhook-endpoints
      description: List webhook endpoints
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: management-webhooks.listwebhooks
      outputParameters:
      - type: object
        mapping: $.
    - name: create-webhook-endpoint
      description: Create a webhook endpoint
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: management-webhooks.createwebhook
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-single-webhook-endpoint
      description: Retrieve a single webhook endpoint
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: management-webhooks.getwebhook
      outputParameters:
      - type: object
        mapping: $.
    - name: update-webhook-endpoint
      description: Update a webhook endpoint
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: management-webhooks.updatewebhook
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-webhook-endpoint
      description: Delete a webhook endpoint
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: management-webhooks.deletewebhook
      outputParameters:
      - type: object
        mapping: $.