CloudEvents · Capability

CloudEvents Subscriptions API — Subscriptions

CloudEvents Subscriptions API — Subscriptions. 5 operations. Lead operation: CloudEvents List subscriptions. Self-contained Naftiko capability covering one Cloudevents business surface.

Run with Naftiko CloudeventsSubscriptions

What You Can Do

GET
Listsubscriptions — CloudEvents List subscriptions
/v1/subscriptions
POST
Createsubscription — CloudEvents Create a subscription
/v1/subscriptions
GET
Getsubscription — CloudEvents Get a subscription
/v1/subscriptions/{id}
PUT
Updatesubscription — CloudEvents Update a subscription
/v1/subscriptions/{id}
DELETE
Deletesubscription — CloudEvents Delete a subscription
/v1/subscriptions/{id}

MCP Tools

cloudevents-list-subscriptions

CloudEvents List subscriptions

read-only idempotent
cloudevents-create-subscription

CloudEvents Create a subscription

cloudevents-get-subscription

CloudEvents Get a subscription

read-only idempotent
cloudevents-update-subscription

CloudEvents Update a subscription

idempotent
cloudevents-delete-subscription

CloudEvents Delete a subscription

idempotent

Capability Spec

subscriptions-subscriptions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: CloudEvents Subscriptions API — Subscriptions
  description: 'CloudEvents Subscriptions API — Subscriptions. 5 operations. Lead operation: CloudEvents List subscriptions.
    Self-contained Naftiko capability covering one Cloudevents business surface.'
  tags:
  - Cloudevents
  - Subscriptions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CLOUDEVENTS_API_KEY: CLOUDEVENTS_API_KEY
capability:
  consumes:
  - type: http
    namespace: subscriptions-subscriptions
    baseUri: https://{broker-host}/subscriptions
    description: CloudEvents Subscriptions API — Subscriptions business capability. Self-contained, no shared references.
    resources:
    - name: subscriptions
      path: /subscriptions
      operations:
      - name: listsubscriptions
        method: GET
        description: CloudEvents List subscriptions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createsubscription
        method: POST
        description: CloudEvents Create a subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: subscriptions-id
      path: /subscriptions/{id}
      operations:
      - name: getsubscription
        method: GET
        description: CloudEvents Get a subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatesubscription
        method: PUT
        description: CloudEvents Update a subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletesubscription
        method: DELETE
        description: CloudEvents Delete a subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: subscriptions-subscriptions-rest
    port: 8080
    description: REST adapter for CloudEvents Subscriptions API — Subscriptions. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/subscriptions
      name: subscriptions
      description: REST surface for subscriptions.
      operations:
      - method: GET
        name: listsubscriptions
        description: CloudEvents List subscriptions
        call: subscriptions-subscriptions.listsubscriptions
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createsubscription
        description: CloudEvents Create a subscription
        call: subscriptions-subscriptions.createsubscription
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{id}
      name: subscriptions-id
      description: REST surface for subscriptions-id.
      operations:
      - method: GET
        name: getsubscription
        description: CloudEvents Get a subscription
        call: subscriptions-subscriptions.getsubscription
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatesubscription
        description: CloudEvents Update a subscription
        call: subscriptions-subscriptions.updatesubscription
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletesubscription
        description: CloudEvents Delete a subscription
        call: subscriptions-subscriptions.deletesubscription
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: subscriptions-subscriptions-mcp
    port: 9090
    transport: http
    description: MCP adapter for CloudEvents Subscriptions API — Subscriptions. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: cloudevents-list-subscriptions
      description: CloudEvents List subscriptions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: subscriptions-subscriptions.listsubscriptions
      outputParameters:
      - type: object
        mapping: $.
    - name: cloudevents-create-subscription
      description: CloudEvents Create a subscription
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: subscriptions-subscriptions.createsubscription
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: cloudevents-get-subscription
      description: CloudEvents Get a subscription
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: subscriptions-subscriptions.getsubscription
      outputParameters:
      - type: object
        mapping: $.
    - name: cloudevents-update-subscription
      description: CloudEvents Update a subscription
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: subscriptions-subscriptions.updatesubscription
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: cloudevents-delete-subscription
      description: CloudEvents Delete a subscription
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: subscriptions-subscriptions.deletesubscription
      outputParameters:
      - type: object
        mapping: $.