Kong · Capability

Kong Enterprise Admin API — Targets

Kong Enterprise Admin API — Targets. 1 operations. Lead operation: Create a new Target associated with an Upstream. Self-contained Naftiko capability covering one Kong business surface.

Run with Naftiko KongTargets

What You Can Do

POST
Createtargetwithupstream — Create a new Target associated with an Upstream
/v1/{workspace}/upstreams/{upstreamidfortarget}/targets

MCP Tools

create-new-target-associated-upstream

Create a new Target associated with an Upstream

read-only

Capability Spec

gateway-admin-targets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Kong Enterprise Admin API — Targets
  description: 'Kong Enterprise Admin API — Targets. 1 operations. Lead operation: Create a new Target associated with an
    Upstream. Self-contained Naftiko capability covering one Kong business surface.'
  tags:
  - Kong
  - Targets
  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-targets
    baseUri: ''
    description: Kong Enterprise Admin API — Targets business capability. Self-contained, no shared references.
    resources:
    - name: workspace-upstreams-UpstreamIdForTarget-targets
      path: /{workspace}/upstreams/{UpstreamIdForTarget}/targets
      operations:
      - name: createtargetwithupstream
        method: POST
        description: Create a new Target associated with an Upstream
        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-targets-rest
    port: 8080
    description: REST adapter for Kong Enterprise Admin API — Targets. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/{workspace}/upstreams/{upstreamidfortarget}/targets
      name: workspace-upstreams-upstreamidfortarget-targets
      description: REST surface for workspace-upstreams-UpstreamIdForTarget-targets.
      operations:
      - method: POST
        name: createtargetwithupstream
        description: Create a new Target associated with an Upstream
        call: gateway-admin-targets.createtargetwithupstream
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gateway-admin-targets-mcp
    port: 9090
    transport: http
    description: MCP adapter for Kong Enterprise Admin API — Targets. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: create-new-target-associated-upstream
      description: Create a new Target associated with an Upstream
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: gateway-admin-targets.createtargetwithupstream
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.