Kong · Capability

Kong Enterprise Admin API — Vaults

Kong Enterprise Admin API — Vaults. 4 operations. Lead operation: Create a new Vault. Self-contained Naftiko capability covering one Kong business surface.

Run with Naftiko KongVaults

What You Can Do

POST
Createvault — Create a new Vault
/v1/{workspace}/vaults
DELETE
Deletevault — Delete a Vault
/v1/{workspace}/vaults/{vaultidorprefix}
GET
Getvault — Get a Vault
/v1/{workspace}/vaults/{vaultidorprefix}
PUT
Upsertvault — Upsert a Vault
/v1/{workspace}/vaults/{vaultidorprefix}

MCP Tools

create-new-vault

Create a new Vault

delete-vault

Delete a Vault

idempotent
get-vault

Get a Vault

read-only idempotent
upsert-vault

Upsert a Vault

idempotent

Capability Spec

gateway-admin-vaults.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Kong Enterprise Admin API — Vaults
  description: 'Kong Enterprise Admin API — Vaults. 4 operations. Lead operation: Create a new Vault. Self-contained Naftiko
    capability covering one Kong business surface.'
  tags:
  - Kong
  - Vaults
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KONG_API_KEY: KONG_API_KEY
capability:
  consumes:
  - type: http
    namespace: gateway-admin-vaults
    baseUri: ''
    description: Kong Enterprise Admin API — Vaults business capability. Self-contained, no shared references.
    resources:
    - name: workspace-vaults
      path: /{workspace}/vaults
      operations:
      - name: createvault
        method: POST
        description: Create a new Vault
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: workspace-vaults-VaultIdOrPrefix
      path: /{workspace}/vaults/{VaultIdOrPrefix}
      operations:
      - name: deletevault
        method: DELETE
        description: Delete a Vault
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getvault
        method: GET
        description: Get a Vault
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: upsertvault
        method: PUT
        description: Upsert a Vault
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Kong-Admin-Token
      value: '{{env.KONG_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: gateway-admin-vaults-rest
    port: 8080
    description: REST adapter for Kong Enterprise Admin API — Vaults. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/{workspace}/vaults
      name: workspace-vaults
      description: REST surface for workspace-vaults.
      operations:
      - method: POST
        name: createvault
        description: Create a new Vault
        call: gateway-admin-vaults.createvault
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{workspace}/vaults/{vaultidorprefix}
      name: workspace-vaults-vaultidorprefix
      description: REST surface for workspace-vaults-VaultIdOrPrefix.
      operations:
      - method: DELETE
        name: deletevault
        description: Delete a Vault
        call: gateway-admin-vaults.deletevault
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getvault
        description: Get a Vault
        call: gateway-admin-vaults.getvault
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: upsertvault
        description: Upsert a Vault
        call: gateway-admin-vaults.upsertvault
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gateway-admin-vaults-mcp
    port: 9090
    transport: http
    description: MCP adapter for Kong Enterprise Admin API — Vaults. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: create-new-vault
      description: Create a new Vault
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gateway-admin-vaults.createvault
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-vault
      description: Delete a Vault
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: gateway-admin-vaults.deletevault
      outputParameters:
      - type: object
        mapping: $.
    - name: get-vault
      description: Get a Vault
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gateway-admin-vaults.getvault
      outputParameters:
      - type: object
        mapping: $.
    - name: upsert-vault
      description: Upsert a Vault
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: gateway-admin-vaults.upsertvault
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.