naftiko: 1.0.0-alpha2 info: label: Konnect API - Go SDK — Keys description: 'Konnect API - Go SDK — Keys. 10 operations. Lead operation: List all Keys associated with a KeySet. Self-contained Naftiko capability covering one Kong business surface.' tags: - Kong - Keys 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-keys baseUri: https://global.api.konghq.com description: Konnect API - Go SDK — Keys business capability. Self-contained, no shared references. resources: - name: v2-control-planes-controlPlaneId-core-entities-key-sets-KeySetId-keys path: /v2/control-planes/{controlPlaneId}/core-entities/key-sets/{KeySetId}/keys operations: - name: listkeywithkeyset method: GET description: List all Keys associated with a KeySet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createkeywithkeyset method: POST description: Create a new Key associated with a KeySet 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-key-sets-KeySetId-keys-KeyId path: /v2/control-planes/{controlPlaneId}/core-entities/key-sets/{KeySetId}/keys/{KeyId} operations: - name: deletekeywithkeyset method: DELETE description: Delete a a Key associated with a KeySet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getkeywithkeyset method: GET description: Get a Key associated with a KeySet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: upsertkeywithkeyset method: PUT description: Upsert a Key associated with a KeySet 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-keys path: /v2/control-planes/{controlPlaneId}/core-entities/keys operations: - name: listkey method: GET description: List all Keys outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createkey method: POST description: Create a new Key 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-keys-KeyId path: /v2/control-planes/{controlPlaneId}/core-entities/keys/{KeyId} operations: - name: deletekey method: DELETE description: Delete a Key outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getkey method: GET description: Get a Key outputRawFormat: json outputParameters: - name: result type: object value: $. - name: upsertkey method: PUT description: Upsert a Key outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - 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-keys-rest port: 8080 description: REST adapter for Konnect API - Go SDK — Keys. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v2/control-planes/{controlplaneid}/core-entities/key-sets/{keysetid}/keys name: v2-control-planes-controlplaneid-core-entities-key-sets-keysetid-keys description: REST surface for v2-control-planes-controlPlaneId-core-entities-key-sets-KeySetId-keys. operations: - method: GET name: listkeywithkeyset description: List all Keys associated with a KeySet call: konnect-platform-keys.listkeywithkeyset outputParameters: - type: object mapping: $. - method: POST name: createkeywithkeyset description: Create a new Key associated with a KeySet call: konnect-platform-keys.createkeywithkeyset with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v2/control-planes/{controlplaneid}/core-entities/key-sets/{keysetid}/keys/{keyid} name: v2-control-planes-controlplaneid-core-entities-key-sets-keysetid-keys-keyid description: REST surface for v2-control-planes-controlPlaneId-core-entities-key-sets-KeySetId-keys-KeyId. operations: - method: DELETE name: deletekeywithkeyset description: Delete a a Key associated with a KeySet call: konnect-platform-keys.deletekeywithkeyset outputParameters: - type: object mapping: $. - method: GET name: getkeywithkeyset description: Get a Key associated with a KeySet call: konnect-platform-keys.getkeywithkeyset outputParameters: - type: object mapping: $. - method: PUT name: upsertkeywithkeyset description: Upsert a Key associated with a KeySet call: konnect-platform-keys.upsertkeywithkeyset with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v2/control-planes/{controlplaneid}/core-entities/keys name: v2-control-planes-controlplaneid-core-entities-keys description: REST surface for v2-control-planes-controlPlaneId-core-entities-keys. operations: - method: GET name: listkey description: List all Keys call: konnect-platform-keys.listkey outputParameters: - type: object mapping: $. - method: POST name: createkey description: Create a new Key call: konnect-platform-keys.createkey with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v2/control-planes/{controlplaneid}/core-entities/keys/{keyid} name: v2-control-planes-controlplaneid-core-entities-keys-keyid description: REST surface for v2-control-planes-controlPlaneId-core-entities-keys-KeyId. operations: - method: DELETE name: deletekey description: Delete a Key call: konnect-platform-keys.deletekey outputParameters: - type: object mapping: $. - method: GET name: getkey description: Get a Key call: konnect-platform-keys.getkey outputParameters: - type: object mapping: $. - method: PUT name: upsertkey description: Upsert a Key call: konnect-platform-keys.upsertkey with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: konnect-platform-keys-mcp port: 9090 transport: http description: MCP adapter for Konnect API - Go SDK — Keys. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-all-keys-associated-keyset description: List all Keys associated with a KeySet hints: readOnly: true destructive: false idempotent: true call: konnect-platform-keys.listkeywithkeyset outputParameters: - type: object mapping: $. - name: create-new-key-associated-keyset description: Create a new Key associated with a KeySet hints: readOnly: false destructive: false idempotent: false call: konnect-platform-keys.createkeywithkeyset with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-key-associated-keyset description: Delete a a Key associated with a KeySet hints: readOnly: false destructive: true idempotent: true call: konnect-platform-keys.deletekeywithkeyset outputParameters: - type: object mapping: $. - name: get-key-associated-keyset description: Get a Key associated with a KeySet hints: readOnly: true destructive: false idempotent: true call: konnect-platform-keys.getkeywithkeyset outputParameters: - type: object mapping: $. - name: upsert-key-associated-keyset description: Upsert a Key associated with a KeySet hints: readOnly: false destructive: false idempotent: true call: konnect-platform-keys.upsertkeywithkeyset with: body: tools.body outputParameters: - type: object mapping: $. - name: list-all-keys description: List all Keys hints: readOnly: true destructive: false idempotent: true call: konnect-platform-keys.listkey outputParameters: - type: object mapping: $. - name: create-new-key description: Create a new Key hints: readOnly: false destructive: false idempotent: false call: konnect-platform-keys.createkey with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-key description: Delete a Key hints: readOnly: false destructive: true idempotent: true call: konnect-platform-keys.deletekey outputParameters: - type: object mapping: $. - name: get-key description: Get a Key hints: readOnly: true destructive: false idempotent: true call: konnect-platform-keys.getkey outputParameters: - type: object mapping: $. - name: upsert-key description: Upsert a Key hints: readOnly: false destructive: false idempotent: true call: konnect-platform-keys.upsertkey with: body: tools.body outputParameters: - type: object mapping: $.