Kong · Capability

Konnect API - Go SDK — Routes

Konnect API - Go SDK — Routes. 10 operations. Lead operation: List all Routes. Self-contained Naftiko capability covering one Kong business surface.

Run with Naftiko KongRoutes

What You Can Do

GET
Listroute — List all Routes
/v1/v2/control-planes/{controlplaneid}/core-entities/routes
POST
Createroute — Create a new Route
/v1/v2/control-planes/{controlplaneid}/core-entities/routes
DELETE
Deleteroute — Delete a Route
/v1/v2/control-planes/{controlplaneid}/core-entities/routes/{routeid}
GET
Getroute — Get a Route
/v1/v2/control-planes/{controlplaneid}/core-entities/routes/{routeid}
PUT
Upsertroute — Upsert a Route
/v1/v2/control-planes/{controlplaneid}/core-entities/routes/{routeid}
GET
Listroutewithservice — List all Routes associated with a Service
/v1/v2/control-planes/{controlplaneid}/core-entities/services/{serviceid}/routes
POST
Createroutewithservice — Create a new Route associated with a Service
/v1/v2/control-planes/{controlplaneid}/core-entities/services/{serviceid}/routes
DELETE
Deleteroutewithservice — Delete a a Route associated with a Service
/v1/v2/control-planes/{controlplaneid}/core-entities/services/{serviceid}/routes/{routeid}
GET
Getroutewithservice — Get a Route associated with a Service
/v1/v2/control-planes/{controlplaneid}/core-entities/services/{serviceid}/routes/{routeid}
PUT
Upsertroutewithservice — Upsert a Route associated with a Service
/v1/v2/control-planes/{controlplaneid}/core-entities/services/{serviceid}/routes/{routeid}

MCP Tools

list-all-routes

List all Routes

read-only idempotent
create-new-route

Create a new Route

delete-route

Delete a Route

idempotent
get-route

Get a Route

read-only idempotent
upsert-route

Upsert a Route

idempotent
list-all-routes-associated-service

List all Routes associated with a Service

read-only idempotent
create-new-route-associated-service

Create a new Route associated with a Service

delete-route-associated-service

Delete a a Route associated with a Service

idempotent
get-route-associated-service

Get a Route associated with a Service

read-only idempotent
upsert-route-associated-service

Upsert a Route associated with a Service

idempotent

Capability Spec

konnect-platform-routes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Konnect API - Go SDK — Routes
  description: 'Konnect API - Go SDK — Routes. 10 operations. Lead operation: List all Routes. Self-contained Naftiko capability
    covering one Kong business surface.'
  tags:
  - Kong
  - Routes
  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-routes
    baseUri: https://global.api.konghq.com
    description: Konnect API - Go SDK — Routes business capability. Self-contained, no shared references.
    resources:
    - name: v2-control-planes-controlPlaneId-core-entities-routes
      path: /v2/control-planes/{controlPlaneId}/core-entities/routes
      operations:
      - name: listroute
        method: GET
        description: List all Routes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createroute
        method: POST
        description: Create a new Route
        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-routes-RouteId
      path: /v2/control-planes/{controlPlaneId}/core-entities/routes/{RouteId}
      operations:
      - name: deleteroute
        method: DELETE
        description: Delete a Route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getroute
        method: GET
        description: Get a Route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: upsertroute
        method: PUT
        description: Upsert a Route
        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-services-ServiceId-routes
      path: /v2/control-planes/{controlPlaneId}/core-entities/services/{ServiceId}/routes
      operations:
      - name: listroutewithservice
        method: GET
        description: List all Routes associated with a Service
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createroutewithservice
        method: POST
        description: Create a new Route associated with a Service
        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-services-ServiceId-routes-RouteId
      path: /v2/control-planes/{controlPlaneId}/core-entities/services/{ServiceId}/routes/{RouteId}
      operations:
      - name: deleteroutewithservice
        method: DELETE
        description: Delete a a Route associated with a Service
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getroutewithservice
        method: GET
        description: Get a Route associated with a Service
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: upsertroutewithservice
        method: PUT
        description: Upsert a Route associated with a Service
        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-routes-rest
    port: 8080
    description: REST adapter for Konnect API - Go SDK — Routes. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v2/control-planes/{controlplaneid}/core-entities/routes
      name: v2-control-planes-controlplaneid-core-entities-routes
      description: REST surface for v2-control-planes-controlPlaneId-core-entities-routes.
      operations:
      - method: GET
        name: listroute
        description: List all Routes
        call: konnect-platform-routes.listroute
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createroute
        description: Create a new Route
        call: konnect-platform-routes.createroute
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/control-planes/{controlplaneid}/core-entities/routes/{routeid}
      name: v2-control-planes-controlplaneid-core-entities-routes-routeid
      description: REST surface for v2-control-planes-controlPlaneId-core-entities-routes-RouteId.
      operations:
      - method: DELETE
        name: deleteroute
        description: Delete a Route
        call: konnect-platform-routes.deleteroute
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getroute
        description: Get a Route
        call: konnect-platform-routes.getroute
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: upsertroute
        description: Upsert a Route
        call: konnect-platform-routes.upsertroute
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/control-planes/{controlplaneid}/core-entities/services/{serviceid}/routes
      name: v2-control-planes-controlplaneid-core-entities-services-serviceid-routes
      description: REST surface for v2-control-planes-controlPlaneId-core-entities-services-ServiceId-routes.
      operations:
      - method: GET
        name: listroutewithservice
        description: List all Routes associated with a Service
        call: konnect-platform-routes.listroutewithservice
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createroutewithservice
        description: Create a new Route associated with a Service
        call: konnect-platform-routes.createroutewithservice
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/control-planes/{controlplaneid}/core-entities/services/{serviceid}/routes/{routeid}
      name: v2-control-planes-controlplaneid-core-entities-services-serviceid-routes-routeid
      description: REST surface for v2-control-planes-controlPlaneId-core-entities-services-ServiceId-routes-RouteId.
      operations:
      - method: DELETE
        name: deleteroutewithservice
        description: Delete a a Route associated with a Service
        call: konnect-platform-routes.deleteroutewithservice
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getroutewithservice
        description: Get a Route associated with a Service
        call: konnect-platform-routes.getroutewithservice
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: upsertroutewithservice
        description: Upsert a Route associated with a Service
        call: konnect-platform-routes.upsertroutewithservice
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: konnect-platform-routes-mcp
    port: 9090
    transport: http
    description: MCP adapter for Konnect API - Go SDK — Routes. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-all-routes
      description: List all Routes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-routes.listroute
      outputParameters:
      - type: object
        mapping: $.
    - name: create-new-route
      description: Create a new Route
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: konnect-platform-routes.createroute
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-route
      description: Delete a Route
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: konnect-platform-routes.deleteroute
      outputParameters:
      - type: object
        mapping: $.
    - name: get-route
      description: Get a Route
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-routes.getroute
      outputParameters:
      - type: object
        mapping: $.
    - name: upsert-route
      description: Upsert a Route
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: konnect-platform-routes.upsertroute
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-all-routes-associated-service
      description: List all Routes associated with a Service
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-routes.listroutewithservice
      outputParameters:
      - type: object
        mapping: $.
    - name: create-new-route-associated-service
      description: Create a new Route associated with a Service
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: konnect-platform-routes.createroutewithservice
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-route-associated-service
      description: Delete a a Route associated with a Service
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: konnect-platform-routes.deleteroutewithservice
      outputParameters:
      - type: object
        mapping: $.
    - name: get-route-associated-service
      description: Get a Route associated with a Service
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-routes.getroutewithservice
      outputParameters:
      - type: object
        mapping: $.
    - name: upsert-route-associated-service
      description: Upsert a Route associated with a Service
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: konnect-platform-routes.upsertroutewithservice
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.