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: $.