Kong · Capability

Konnect API - Go SDK — Keys

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.

Run with Naftiko KongKeys

What You Can Do

GET
Listkeywithkeyset — List all Keys associated with a KeySet
/v1/v2/control-planes/{controlplaneid}/core-entities/key-sets/{keysetid}/keys
POST
Createkeywithkeyset — Create a new Key associated with a KeySet
/v1/v2/control-planes/{controlplaneid}/core-entities/key-sets/{keysetid}/keys
DELETE
Deletekeywithkeyset — Delete a a Key associated with a KeySet
/v1/v2/control-planes/{controlplaneid}/core-entities/key-sets/{keysetid}/keys/{keyid}
GET
Getkeywithkeyset — Get a Key associated with a KeySet
/v1/v2/control-planes/{controlplaneid}/core-entities/key-sets/{keysetid}/keys/{keyid}
PUT
Upsertkeywithkeyset — Upsert a Key associated with a KeySet
/v1/v2/control-planes/{controlplaneid}/core-entities/key-sets/{keysetid}/keys/{keyid}
GET
Listkey — List all Keys
/v1/v2/control-planes/{controlplaneid}/core-entities/keys
POST
Createkey — Create a new Key
/v1/v2/control-planes/{controlplaneid}/core-entities/keys
DELETE
Deletekey — Delete a Key
/v1/v2/control-planes/{controlplaneid}/core-entities/keys/{keyid}
GET
Getkey — Get a Key
/v1/v2/control-planes/{controlplaneid}/core-entities/keys/{keyid}
PUT
Upsertkey — Upsert a Key
/v1/v2/control-planes/{controlplaneid}/core-entities/keys/{keyid}

MCP Tools

list-all-keys-associated-keyset

List all Keys associated with a KeySet

read-only idempotent
create-new-key-associated-keyset

Create a new Key associated with a KeySet

delete-key-associated-keyset

Delete a a Key associated with a KeySet

idempotent
get-key-associated-keyset

Get a Key associated with a KeySet

read-only idempotent
upsert-key-associated-keyset

Upsert a Key associated with a KeySet

idempotent
list-all-keys

List all Keys

read-only idempotent
create-new-key

Create a new Key

delete-key

Delete a Key

idempotent
get-key

Get a Key

read-only idempotent
upsert-key

Upsert a Key

idempotent

Capability Spec

konnect-platform-keys.yaml Raw ↑
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: $.