Kong · Capability

Konnect API - Go SDK — Consumers

Konnect API - Go SDK — Consumers. 9 operations. Lead operation: List all Consumers. Self-contained Naftiko capability covering one Kong business surface.

Run with Naftiko KongConsumers

What You Can Do

GET
Listconsumer — List all Consumers
/v1/v2/control-planes/{controlplaneid}/core-entities/consumers
POST
Createconsumer — Create a new Consumer
/v1/v2/control-planes/{controlplaneid}/core-entities/consumers
DELETE
Deleteconsumer — Delete a Consumer
/v1/v2/control-planes/{controlplaneid}/core-entities/consumers/{consumerid}
GET
Getconsumer — Get a Consumer
/v1/v2/control-planes/{controlplaneid}/core-entities/consumers/{consumerid}
PUT
Upsertconsumer — Upsert a Consumer
/v1/v2/control-planes/{controlplaneid}/core-entities/consumers/{consumerid}
DELETE
Removeconsumerfromallconsumergroups — Remove consumer from all consumer groups
/v1/v2/control-planes/{controlplaneid}/core-entities/consumers/{consumerid}/consumer-groups
GET
Listconsumergroupsforconsumer — List all Consumer Groups a Consumer belongs to
/v1/v2/control-planes/{controlplaneid}/core-entities/consumers/{consumerid}/consumer-groups
POST
Addconsumertospecificconsumergroup — Add consumer to a specific consumer group
/v1/v2/control-planes/{controlplaneid}/core-entities/consumers/{consumerid}/consumer-groups
DELETE
Removeconsumerfromconsumergroup — Remove consumer from consumer group
/v1/v2/control-planes/{controlplaneid}/core-entities/consumers/{consumerid}/consumer-groups/{consumergroupid}

MCP Tools

list-all-consumers

List all Consumers

read-only idempotent
create-new-consumer

Create a new Consumer

delete-consumer

Delete a Consumer

idempotent
get-consumer

Get a Consumer

read-only idempotent
upsert-consumer

Upsert a Consumer

idempotent
remove-consumer-all-consumer-groups

Remove consumer from all consumer groups

idempotent
list-all-consumer-groups-consumer

List all Consumer Groups a Consumer belongs to

read-only idempotent
add-consumer-specific-consumer-group

Add consumer to a specific consumer group

remove-consumer-consumer-group

Remove consumer from consumer group

idempotent

Capability Spec

konnect-platform-consumers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Konnect API - Go SDK — Consumers
  description: 'Konnect API - Go SDK — Consumers. 9 operations. Lead operation: List all Consumers. Self-contained Naftiko
    capability covering one Kong business surface.'
  tags:
  - Kong
  - Consumers
  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-consumers
    baseUri: https://global.api.konghq.com
    description: Konnect API - Go SDK — Consumers business capability. Self-contained, no shared references.
    resources:
    - name: v2-control-planes-controlPlaneId-core-entities-consumers
      path: /v2/control-planes/{controlPlaneId}/core-entities/consumers
      operations:
      - name: listconsumer
        method: GET
        description: List all Consumers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createconsumer
        method: POST
        description: Create a new Consumer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v2-control-planes-controlPlaneId-core-entities-consumers-ConsumerId
      path: /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerId}
      operations:
      - name: deleteconsumer
        method: DELETE
        description: Delete a Consumer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getconsumer
        method: GET
        description: Get a Consumer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: upsertconsumer
        method: PUT
        description: Upsert a Consumer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v2-control-planes-controlPlaneId-core-entities-consumers-ConsumerId-consumer_gro
      path: /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerId}/consumer_groups
      operations:
      - name: removeconsumerfromallconsumergroups
        method: DELETE
        description: Remove consumer from all consumer groups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: listconsumergroupsforconsumer
        method: GET
        description: List all Consumer Groups a Consumer belongs to
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addconsumertospecificconsumergroup
        method: POST
        description: Add consumer to a specific consumer group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v2-control-planes-controlPlaneId-core-entities-consumers-ConsumerId-consumer_gro
      path: /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerId}/consumer_groups/{ConsumerGroupId}
      operations:
      - name: removeconsumerfromconsumergroup
        method: DELETE
        description: Remove consumer from consumer group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.KONG_API_KEY}}'
  exposes:
  - type: rest
    namespace: konnect-platform-consumers-rest
    port: 8080
    description: REST adapter for Konnect API - Go SDK — Consumers. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/control-planes/{controlplaneid}/core-entities/consumers
      name: v2-control-planes-controlplaneid-core-entities-consumers
      description: REST surface for v2-control-planes-controlPlaneId-core-entities-consumers.
      operations:
      - method: GET
        name: listconsumer
        description: List all Consumers
        call: konnect-platform-consumers.listconsumer
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createconsumer
        description: Create a new Consumer
        call: konnect-platform-consumers.createconsumer
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/control-planes/{controlplaneid}/core-entities/consumers/{consumerid}
      name: v2-control-planes-controlplaneid-core-entities-consumers-consumerid
      description: REST surface for v2-control-planes-controlPlaneId-core-entities-consumers-ConsumerId.
      operations:
      - method: DELETE
        name: deleteconsumer
        description: Delete a Consumer
        call: konnect-platform-consumers.deleteconsumer
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getconsumer
        description: Get a Consumer
        call: konnect-platform-consumers.getconsumer
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: upsertconsumer
        description: Upsert a Consumer
        call: konnect-platform-consumers.upsertconsumer
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/control-planes/{controlplaneid}/core-entities/consumers/{consumerid}/consumer-groups
      name: v2-control-planes-controlplaneid-core-entities-consumers-consumerid-consumer-gro
      description: REST surface for v2-control-planes-controlPlaneId-core-entities-consumers-ConsumerId-consumer_gro.
      operations:
      - method: DELETE
        name: removeconsumerfromallconsumergroups
        description: Remove consumer from all consumer groups
        call: konnect-platform-consumers.removeconsumerfromallconsumergroups
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listconsumergroupsforconsumer
        description: List all Consumer Groups a Consumer belongs to
        call: konnect-platform-consumers.listconsumergroupsforconsumer
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addconsumertospecificconsumergroup
        description: Add consumer to a specific consumer group
        call: konnect-platform-consumers.addconsumertospecificconsumergroup
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/control-planes/{controlplaneid}/core-entities/consumers/{consumerid}/consumer-groups/{consumergroupid}
      name: v2-control-planes-controlplaneid-core-entities-consumers-consumerid-consumer-gro
      description: REST surface for v2-control-planes-controlPlaneId-core-entities-consumers-ConsumerId-consumer_gro.
      operations:
      - method: DELETE
        name: removeconsumerfromconsumergroup
        description: Remove consumer from consumer group
        call: konnect-platform-consumers.removeconsumerfromconsumergroup
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: konnect-platform-consumers-mcp
    port: 9090
    transport: http
    description: MCP adapter for Konnect API - Go SDK — Consumers. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-all-consumers
      description: List all Consumers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-consumers.listconsumer
      outputParameters:
      - type: object
        mapping: $.
    - name: create-new-consumer
      description: Create a new Consumer
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: konnect-platform-consumers.createconsumer
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-consumer
      description: Delete a Consumer
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: konnect-platform-consumers.deleteconsumer
      outputParameters:
      - type: object
        mapping: $.
    - name: get-consumer
      description: Get a Consumer
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-consumers.getconsumer
      outputParameters:
      - type: object
        mapping: $.
    - name: upsert-consumer
      description: Upsert a Consumer
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: konnect-platform-consumers.upsertconsumer
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-consumer-all-consumer-groups
      description: Remove consumer from all consumer groups
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: konnect-platform-consumers.removeconsumerfromallconsumergroups
      outputParameters:
      - type: object
        mapping: $.
    - name: list-all-consumer-groups-consumer
      description: List all Consumer Groups a Consumer belongs to
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-consumers.listconsumergroupsforconsumer
      outputParameters:
      - type: object
        mapping: $.
    - name: add-consumer-specific-consumer-group
      description: Add consumer to a specific consumer group
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: konnect-platform-consumers.addconsumertospecificconsumergroup
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-consumer-consumer-group
      description: Remove consumer from consumer group
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: konnect-platform-consumers.removeconsumerfromconsumergroup
      outputParameters:
      - type: object
        mapping: $.