Eventuate · Capability

Eventuate REST API — Subscriptions

Eventuate REST API — Subscriptions. 5 operations. Lead operation: Create an event subscription. Self-contained Naftiko capability covering one Eventuate business surface.

Run with Naftiko EventuateSubscriptions

What You Can Do

POST
Createsubscription — Create an event subscription
/v1/subscriptions
GET
Getsubscription — Get a subscription
/v1/subscriptions/{subscriptionid}
DELETE
Deletesubscription — Delete a subscription
/v1/subscriptions/{subscriptionid}
POST
Acknowledgeevents — Acknowledge events
/v1/subscriptions/{subscriptionid}/acknowledge
GET
Getsubscriptionevents — Get events from a subscription
/v1/subscriptions/{subscriptionid}/events

MCP Tools

create-event-subscription

Create an event subscription

get-subscription

Get a subscription

read-only idempotent
delete-subscription

Delete a subscription

idempotent
acknowledge-events

Acknowledge events

get-events-subscription

Get events from a subscription

read-only idempotent

Capability Spec

eventuate-subscriptions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Eventuate REST API — Subscriptions
  description: 'Eventuate REST API — Subscriptions. 5 operations. Lead operation: Create an event subscription. Self-contained
    Naftiko capability covering one Eventuate business surface.'
  tags:
  - Eventuate
  - Subscriptions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    EVENTUATE_API_KEY: EVENTUATE_API_KEY
capability:
  consumes:
  - type: http
    namespace: eventuate-subscriptions
    baseUri: ''
    description: Eventuate REST API — Subscriptions business capability. Self-contained, no shared references.
    resources:
    - name: subscriptions
      path: /subscriptions
      operations:
      - name: createsubscription
        method: POST
        description: Create an event subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: subscriptions-subscriptionId
      path: /subscriptions/{subscriptionId}
      operations:
      - name: getsubscription
        method: GET
        description: Get a subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: subscriptionId
          in: path
          type: string
          required: true
      - name: deletesubscription
        method: DELETE
        description: Delete a subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: subscriptionId
          in: path
          type: string
          required: true
    - name: subscriptions-subscriptionId-acknowledge
      path: /subscriptions/{subscriptionId}/acknowledge
      operations:
      - name: acknowledgeevents
        method: POST
        description: Acknowledge events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: subscriptionId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: subscriptions-subscriptionId-events
      path: /subscriptions/{subscriptionId}/events
      operations:
      - name: getsubscriptionevents
        method: GET
        description: Get events from a subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: subscriptionId
          in: path
          type: string
          required: true
        - name: maxEvents
          in: query
          type: integer
  exposes:
  - type: rest
    namespace: eventuate-subscriptions-rest
    port: 8080
    description: REST adapter for Eventuate REST 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: POST
        name: createsubscription
        description: Create an event subscription
        call: eventuate-subscriptions.createsubscription
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}
      name: subscriptions-subscriptionid
      description: REST surface for subscriptions-subscriptionId.
      operations:
      - method: GET
        name: getsubscription
        description: Get a subscription
        call: eventuate-subscriptions.getsubscription
        with:
          subscriptionId: rest.subscriptionId
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletesubscription
        description: Delete a subscription
        call: eventuate-subscriptions.deletesubscription
        with:
          subscriptionId: rest.subscriptionId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/acknowledge
      name: subscriptions-subscriptionid-acknowledge
      description: REST surface for subscriptions-subscriptionId-acknowledge.
      operations:
      - method: POST
        name: acknowledgeevents
        description: Acknowledge events
        call: eventuate-subscriptions.acknowledgeevents
        with:
          subscriptionId: rest.subscriptionId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/events
      name: subscriptions-subscriptionid-events
      description: REST surface for subscriptions-subscriptionId-events.
      operations:
      - method: GET
        name: getsubscriptionevents
        description: Get events from a subscription
        call: eventuate-subscriptions.getsubscriptionevents
        with:
          subscriptionId: rest.subscriptionId
          maxEvents: rest.maxEvents
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: eventuate-subscriptions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Eventuate REST API — Subscriptions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: create-event-subscription
      description: Create an event subscription
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: eventuate-subscriptions.createsubscription
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-subscription
      description: Get a subscription
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: eventuate-subscriptions.getsubscription
      with:
        subscriptionId: tools.subscriptionId
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-subscription
      description: Delete a subscription
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: eventuate-subscriptions.deletesubscription
      with:
        subscriptionId: tools.subscriptionId
      outputParameters:
      - type: object
        mapping: $.
    - name: acknowledge-events
      description: Acknowledge events
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: eventuate-subscriptions.acknowledgeevents
      with:
        subscriptionId: tools.subscriptionId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-events-subscription
      description: Get events from a subscription
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: eventuate-subscriptions.getsubscriptionevents
      with:
        subscriptionId: tools.subscriptionId
        maxEvents: tools.maxEvents
      outputParameters:
      - type: object
        mapping: $.