Kong · Capability

Konnect API - Go SDK — OpenMeter Subscriptions

Konnect API - Go SDK — OpenMeter Subscriptions. 6 operations. Lead operation: Create subscription. Self-contained Naftiko capability covering one Kong business surface.

Run with Naftiko KongOpenMeter Subscriptions

What You Can Do

POST
Createsubscription — Create subscription
/v1/v3/openmeter/subscriptions
GET
Listsubscriptions — List subscriptions
/v1/v3/openmeter/subscriptions
GET
Getsubscription — Get subscription
/v1/v3/openmeter/subscriptions/{subscriptionid}
POST
Cancelsubscription — Cancel subscription
/v1/v3/openmeter/subscriptions/{subscriptionid}/cancel
POST
Changesubscription — Change subscription
/v1/v3/openmeter/subscriptions/{subscriptionid}/change
POST
Unschedulecancelation — Unschedule subscription cancelation
/v1/v3/openmeter/subscriptions/{subscriptionid}/unschedule-cancelation

MCP Tools

create-subscription

Create subscription

list-subscriptions

List subscriptions

read-only idempotent
get-subscription

Get subscription

read-only idempotent
cancel-subscription

Cancel subscription

change-subscription

Change subscription

unschedule-subscription-cancelation

Unschedule subscription cancelation

Capability Spec

konnect-platform-openmeter-subscriptions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Konnect API - Go SDK — OpenMeter Subscriptions
  description: 'Konnect API - Go SDK — OpenMeter Subscriptions. 6 operations. Lead operation: Create subscription. Self-contained
    Naftiko capability covering one Kong business surface.'
  tags:
  - Kong
  - OpenMeter Subscriptions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KONG_API_KEY: KONG_API_KEY
capability:
  consumes:
  - type: http
    namespace: konnect-platform-openmeter-subscriptions
    baseUri: https://global.api.konghq.com
    description: Konnect API - Go SDK — OpenMeter Subscriptions business capability. Self-contained, no shared references.
    resources:
    - name: v3-openmeter-subscriptions
      path: /v3/openmeter/subscriptions
      operations:
      - name: createsubscription
        method: POST
        description: Create subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listsubscriptions
        method: GET
        description: List subscriptions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: object
          description: Filter subscriptions.
    - name: v3-openmeter-subscriptions-subscriptionId
      path: /v3/openmeter/subscriptions/{subscriptionId}
      operations:
      - name: getsubscription
        method: GET
        description: Get subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: subscriptionId
          in: path
          type: string
          required: true
    - name: v3-openmeter-subscriptions-subscriptionId-cancel
      path: /v3/openmeter/subscriptions/{subscriptionId}/cancel
      operations:
      - name: cancelsubscription
        method: POST
        description: Cancel subscription
        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: v3-openmeter-subscriptions-subscriptionId-change
      path: /v3/openmeter/subscriptions/{subscriptionId}/change
      operations:
      - name: changesubscription
        method: POST
        description: Change subscription
        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: v3-openmeter-subscriptions-subscriptionId-unschedule-cancelation
      path: /v3/openmeter/subscriptions/{subscriptionId}/unschedule-cancelation
      operations:
      - name: unschedulecancelation
        method: POST
        description: Unschedule subscription cancelation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: subscriptionId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.KONG_API_KEY}}'
  exposes:
  - type: rest
    namespace: konnect-platform-openmeter-subscriptions-rest
    port: 8080
    description: REST adapter for Konnect API - Go SDK — OpenMeter Subscriptions. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v3/openmeter/subscriptions
      name: v3-openmeter-subscriptions
      description: REST surface for v3-openmeter-subscriptions.
      operations:
      - method: POST
        name: createsubscription
        description: Create subscription
        call: konnect-platform-openmeter-subscriptions.createsubscription
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listsubscriptions
        description: List subscriptions
        call: konnect-platform-openmeter-subscriptions.listsubscriptions
        with:
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/openmeter/subscriptions/{subscriptionid}
      name: v3-openmeter-subscriptions-subscriptionid
      description: REST surface for v3-openmeter-subscriptions-subscriptionId.
      operations:
      - method: GET
        name: getsubscription
        description: Get subscription
        call: konnect-platform-openmeter-subscriptions.getsubscription
        with:
          subscriptionId: rest.subscriptionId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/openmeter/subscriptions/{subscriptionid}/cancel
      name: v3-openmeter-subscriptions-subscriptionid-cancel
      description: REST surface for v3-openmeter-subscriptions-subscriptionId-cancel.
      operations:
      - method: POST
        name: cancelsubscription
        description: Cancel subscription
        call: konnect-platform-openmeter-subscriptions.cancelsubscription
        with:
          subscriptionId: rest.subscriptionId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/openmeter/subscriptions/{subscriptionid}/change
      name: v3-openmeter-subscriptions-subscriptionid-change
      description: REST surface for v3-openmeter-subscriptions-subscriptionId-change.
      operations:
      - method: POST
        name: changesubscription
        description: Change subscription
        call: konnect-platform-openmeter-subscriptions.changesubscription
        with:
          subscriptionId: rest.subscriptionId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/openmeter/subscriptions/{subscriptionid}/unschedule-cancelation
      name: v3-openmeter-subscriptions-subscriptionid-unschedule-cancelation
      description: REST surface for v3-openmeter-subscriptions-subscriptionId-unschedule-cancelation.
      operations:
      - method: POST
        name: unschedulecancelation
        description: Unschedule subscription cancelation
        call: konnect-platform-openmeter-subscriptions.unschedulecancelation
        with:
          subscriptionId: rest.subscriptionId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: konnect-platform-openmeter-subscriptions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Konnect API - Go SDK — OpenMeter Subscriptions. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: create-subscription
      description: Create subscription
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: konnect-platform-openmeter-subscriptions.createsubscription
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-subscriptions
      description: List subscriptions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-openmeter-subscriptions.listsubscriptions
      with:
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.
    - name: get-subscription
      description: Get subscription
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-openmeter-subscriptions.getsubscription
      with:
        subscriptionId: tools.subscriptionId
      outputParameters:
      - type: object
        mapping: $.
    - name: cancel-subscription
      description: Cancel subscription
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: konnect-platform-openmeter-subscriptions.cancelsubscription
      with:
        subscriptionId: tools.subscriptionId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: change-subscription
      description: Change subscription
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: konnect-platform-openmeter-subscriptions.changesubscription
      with:
        subscriptionId: tools.subscriptionId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: unschedule-subscription-cancelation
      description: Unschedule subscription cancelation
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: konnect-platform-openmeter-subscriptions.unschedulecancelation
      with:
        subscriptionId: tools.subscriptionId
      outputParameters:
      - type: object
        mapping: $.