Kong · Capability

Kong Enterprise Admin API — HMAC-auth credentials

Kong Enterprise Admin API — HMAC-auth credentials. 3 operations. Lead operation: Create a new HMAC-auth credential associated with a Consumer. Self-contained Naftiko capability covering one Kong business surface.

Run with Naftiko KongHMAC-auth credentials

What You Can Do

POST
Createhmacauthwithconsumer — Create a new HMAC-auth credential associated with a Consumer
/v1/{workspace}/consumers/{consumeridfornestedentities}/hmac-auth
DELETE
Deletehmacauthwithconsumer — Delete a a HMAC-auth credential associated with a Consumer
/v1/{workspace}/consumers/{consumeridfornestedentities}/hmac-auth/{hmacauthid}
GET
Gethmacauthwithconsumer — Get a HMAC-auth credential associated with a Consumer
/v1/{workspace}/consumers/{consumeridfornestedentities}/hmac-auth/{hmacauthid}

MCP Tools

create-new-hmac-auth-credential

Create a new HMAC-auth credential associated with a Consumer

delete-hmac-auth-credential-associated

Delete a a HMAC-auth credential associated with a Consumer

idempotent
get-hmac-auth-credential-associated

Get a HMAC-auth credential associated with a Consumer

read-only idempotent

Capability Spec

gateway-admin-hmac-auth-credentials.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Kong Enterprise Admin API — HMAC-auth credentials
  description: 'Kong Enterprise Admin API — HMAC-auth credentials. 3 operations. Lead operation: Create a new HMAC-auth credential
    associated with a Consumer. Self-contained Naftiko capability covering one Kong business surface.'
  tags:
  - Kong
  - HMAC-auth credentials
  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-hmac-auth-credentials
    baseUri: ''
    description: Kong Enterprise Admin API — HMAC-auth credentials business capability. Self-contained, no shared references.
    resources:
    - name: workspace-consumers-ConsumerIdForNestedEntities-hmac-auth
      path: /{workspace}/consumers/{ConsumerIdForNestedEntities}/hmac-auth
      operations:
      - name: createhmacauthwithconsumer
        method: POST
        description: Create a new HMAC-auth credential associated with a Consumer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: workspace-consumers-ConsumerIdForNestedEntities-hmac-auth-HMACAuthId
      path: /{workspace}/consumers/{ConsumerIdForNestedEntities}/hmac-auth/{HMACAuthId}
      operations:
      - name: deletehmacauthwithconsumer
        method: DELETE
        description: Delete a a HMAC-auth credential associated with a Consumer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: gethmacauthwithconsumer
        method: GET
        description: Get a HMAC-auth credential associated with a Consumer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: Kong-Admin-Token
      value: '{{env.KONG_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: gateway-admin-hmac-auth-credentials-rest
    port: 8080
    description: REST adapter for Kong Enterprise Admin API — HMAC-auth credentials. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/{workspace}/consumers/{consumeridfornestedentities}/hmac-auth
      name: workspace-consumers-consumeridfornestedentities-hmac-auth
      description: REST surface for workspace-consumers-ConsumerIdForNestedEntities-hmac-auth.
      operations:
      - method: POST
        name: createhmacauthwithconsumer
        description: Create a new HMAC-auth credential associated with a Consumer
        call: gateway-admin-hmac-auth-credentials.createhmacauthwithconsumer
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{workspace}/consumers/{consumeridfornestedentities}/hmac-auth/{hmacauthid}
      name: workspace-consumers-consumeridfornestedentities-hmac-auth-hmacauthid
      description: REST surface for workspace-consumers-ConsumerIdForNestedEntities-hmac-auth-HMACAuthId.
      operations:
      - method: DELETE
        name: deletehmacauthwithconsumer
        description: Delete a a HMAC-auth credential associated with a Consumer
        call: gateway-admin-hmac-auth-credentials.deletehmacauthwithconsumer
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: gethmacauthwithconsumer
        description: Get a HMAC-auth credential associated with a Consumer
        call: gateway-admin-hmac-auth-credentials.gethmacauthwithconsumer
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gateway-admin-hmac-auth-credentials-mcp
    port: 9090
    transport: http
    description: MCP adapter for Kong Enterprise Admin API — HMAC-auth credentials. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: create-new-hmac-auth-credential
      description: Create a new HMAC-auth credential associated with a Consumer
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gateway-admin-hmac-auth-credentials.createhmacauthwithconsumer
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-hmac-auth-credential-associated
      description: Delete a a HMAC-auth credential associated with a Consumer
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: gateway-admin-hmac-auth-credentials.deletehmacauthwithconsumer
      outputParameters:
      - type: object
        mapping: $.
    - name: get-hmac-auth-credential-associated
      description: Get a HMAC-auth credential associated with a Consumer
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gateway-admin-hmac-auth-credentials.gethmacauthwithconsumer
      outputParameters:
      - type: object
        mapping: $.