Kong · Capability

Konnect API - Go SDK — OpenMeter Customers

Konnect API - Go SDK — OpenMeter Customers. 10 operations. Lead operation: Create customer. Self-contained Naftiko capability covering one Kong business surface.

Run with Naftiko KongOpenMeter Customers

What You Can Do

POST
Createcustomer — Create customer
/v1/v3/openmeter/customers
GET
Listcustomers — List customers
/v1/v3/openmeter/customers
GET
Getcustomer — Get customer
/v1/v3/openmeter/customers/{customerid}
PUT
Upsertcustomer — Upsert customer
/v1/v3/openmeter/customers/{customerid}
DELETE
Deletecustomer — Delete customer
/v1/v3/openmeter/customers/{customerid}
GET
Getcustomerbilling — Get customer billing data
/v1/v3/openmeter/customers/{customerid}/billing
PUT
Updatecustomerbilling — Update customer billing data
/v1/v3/openmeter/customers/{customerid}/billing
PUT
Updatecustomerbillingappdata — Update customer billing app data
/v1/v3/openmeter/customers/{customerid}/billing/app-data
POST
Createcustomerstripecheckoutsession — Create Stripe Checkout Session
/v1/v3/openmeter/customers/{customerid}/billing/stripe/checkout-sessions
POST
Createcustomerstripeportalsession — Create Stripe customer portal session
/v1/v3/openmeter/customers/{customerid}/billing/stripe/portal-sessions

MCP Tools

create-customer

Create customer

list-customers

List customers

read-only idempotent
get-customer

Get customer

read-only idempotent
upsert-customer

Upsert customer

idempotent
delete-customer

Delete customer

idempotent
get-customer-billing-data

Get customer billing data

read-only idempotent
update-customer-billing-data

Update customer billing data

idempotent
update-customer-billing-app-data

Update customer billing app data

idempotent
create-stripe-checkout-session

Create Stripe Checkout Session

create-stripe-customer-portal-session

Create Stripe customer portal session

Capability Spec

konnect-platform-openmeter-customers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Konnect API - Go SDK — OpenMeter Customers
  description: 'Konnect API - Go SDK — OpenMeter Customers. 10 operations. Lead operation: Create customer. Self-contained
    Naftiko capability covering one Kong business surface.'
  tags:
  - Kong
  - OpenMeter Customers
  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-customers
    baseUri: https://global.api.konghq.com
    description: Konnect API - Go SDK — OpenMeter Customers business capability. Self-contained, no shared references.
    resources:
    - name: v3-openmeter-customers
      path: /v3/openmeter/customers
      operations:
      - name: createcustomer
        method: POST
        description: Create customer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listcustomers
        method: GET
        description: List customers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sort
          in: query
          type: string
          description: Sort customers returned in the response.
        - name: filter
          in: query
          type: string
          description: Filter customers returned in the response.
    - name: v3-openmeter-customers-customerId
      path: /v3/openmeter/customers/{customerId}
      operations:
      - name: getcustomer
        method: GET
        description: Get customer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: customerId
          in: path
          type: string
          required: true
      - name: upsertcustomer
        method: PUT
        description: Upsert customer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: customerId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecustomer
        method: DELETE
        description: Delete customer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: customerId
          in: path
          type: string
          required: true
    - name: v3-openmeter-customers-customerId-billing
      path: /v3/openmeter/customers/{customerId}/billing
      operations:
      - name: getcustomerbilling
        method: GET
        description: Get customer billing data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: customerId
          in: path
          type: string
          required: true
      - name: updatecustomerbilling
        method: PUT
        description: Update customer billing data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: customerId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v3-openmeter-customers-customerId-billing-app-data
      path: /v3/openmeter/customers/{customerId}/billing/app-data
      operations:
      - name: updatecustomerbillingappdata
        method: PUT
        description: Update customer billing app data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: customerId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v3-openmeter-customers-customerId-billing-stripe-checkout-sessions
      path: /v3/openmeter/customers/{customerId}/billing/stripe/checkout-sessions
      operations:
      - name: createcustomerstripecheckoutsession
        method: POST
        description: Create Stripe Checkout Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: customerId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v3-openmeter-customers-customerId-billing-stripe-portal-sessions
      path: /v3/openmeter/customers/{customerId}/billing/stripe/portal-sessions
      operations:
      - name: createcustomerstripeportalsession
        method: POST
        description: Create Stripe customer portal session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: customerId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.KONG_API_KEY}}'
  exposes:
  - type: rest
    namespace: konnect-platform-openmeter-customers-rest
    port: 8080
    description: REST adapter for Konnect API - Go SDK — OpenMeter Customers. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v3/openmeter/customers
      name: v3-openmeter-customers
      description: REST surface for v3-openmeter-customers.
      operations:
      - method: POST
        name: createcustomer
        description: Create customer
        call: konnect-platform-openmeter-customers.createcustomer
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listcustomers
        description: List customers
        call: konnect-platform-openmeter-customers.listcustomers
        with:
          sort: rest.sort
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/openmeter/customers/{customerid}
      name: v3-openmeter-customers-customerid
      description: REST surface for v3-openmeter-customers-customerId.
      operations:
      - method: GET
        name: getcustomer
        description: Get customer
        call: konnect-platform-openmeter-customers.getcustomer
        with:
          customerId: rest.customerId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: upsertcustomer
        description: Upsert customer
        call: konnect-platform-openmeter-customers.upsertcustomer
        with:
          customerId: rest.customerId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecustomer
        description: Delete customer
        call: konnect-platform-openmeter-customers.deletecustomer
        with:
          customerId: rest.customerId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/openmeter/customers/{customerid}/billing
      name: v3-openmeter-customers-customerid-billing
      description: REST surface for v3-openmeter-customers-customerId-billing.
      operations:
      - method: GET
        name: getcustomerbilling
        description: Get customer billing data
        call: konnect-platform-openmeter-customers.getcustomerbilling
        with:
          customerId: rest.customerId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecustomerbilling
        description: Update customer billing data
        call: konnect-platform-openmeter-customers.updatecustomerbilling
        with:
          customerId: rest.customerId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/openmeter/customers/{customerid}/billing/app-data
      name: v3-openmeter-customers-customerid-billing-app-data
      description: REST surface for v3-openmeter-customers-customerId-billing-app-data.
      operations:
      - method: PUT
        name: updatecustomerbillingappdata
        description: Update customer billing app data
        call: konnect-platform-openmeter-customers.updatecustomerbillingappdata
        with:
          customerId: rest.customerId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/openmeter/customers/{customerid}/billing/stripe/checkout-sessions
      name: v3-openmeter-customers-customerid-billing-stripe-checkout-sessions
      description: REST surface for v3-openmeter-customers-customerId-billing-stripe-checkout-sessions.
      operations:
      - method: POST
        name: createcustomerstripecheckoutsession
        description: Create Stripe Checkout Session
        call: konnect-platform-openmeter-customers.createcustomerstripecheckoutsession
        with:
          customerId: rest.customerId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/openmeter/customers/{customerid}/billing/stripe/portal-sessions
      name: v3-openmeter-customers-customerid-billing-stripe-portal-sessions
      description: REST surface for v3-openmeter-customers-customerId-billing-stripe-portal-sessions.
      operations:
      - method: POST
        name: createcustomerstripeportalsession
        description: Create Stripe customer portal session
        call: konnect-platform-openmeter-customers.createcustomerstripeportalsession
        with:
          customerId: rest.customerId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: konnect-platform-openmeter-customers-mcp
    port: 9090
    transport: http
    description: MCP adapter for Konnect API - Go SDK — OpenMeter Customers. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: create-customer
      description: Create customer
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: konnect-platform-openmeter-customers.createcustomer
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-customers
      description: List customers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-openmeter-customers.listcustomers
      with:
        sort: tools.sort
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.
    - name: get-customer
      description: Get customer
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-openmeter-customers.getcustomer
      with:
        customerId: tools.customerId
      outputParameters:
      - type: object
        mapping: $.
    - name: upsert-customer
      description: Upsert customer
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: konnect-platform-openmeter-customers.upsertcustomer
      with:
        customerId: tools.customerId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-customer
      description: Delete customer
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: konnect-platform-openmeter-customers.deletecustomer
      with:
        customerId: tools.customerId
      outputParameters:
      - type: object
        mapping: $.
    - name: get-customer-billing-data
      description: Get customer billing data
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-openmeter-customers.getcustomerbilling
      with:
        customerId: tools.customerId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-customer-billing-data
      description: Update customer billing data
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: konnect-platform-openmeter-customers.updatecustomerbilling
      with:
        customerId: tools.customerId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-customer-billing-app-data
      description: Update customer billing app data
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: konnect-platform-openmeter-customers.updatecustomerbillingappdata
      with:
        customerId: tools.customerId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: create-stripe-checkout-session
      description: Create Stripe Checkout Session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: konnect-platform-openmeter-customers.createcustomerstripecheckoutsession
      with:
        customerId: tools.customerId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: create-stripe-customer-portal-session
      description: Create Stripe customer portal session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: konnect-platform-openmeter-customers.createcustomerstripeportalsession
      with:
        customerId: tools.customerId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.