Kong · Capability

Konnect API - Go SDK — API Publication

Konnect API - Go SDK — API Publication. 8 operations. Lead operation: Publish API Package. Self-contained Naftiko capability covering one Kong business surface.

Run with Naftiko KongAPI Publication

What You Can Do

PUT
Publishapipackagetoportal — Publish API Package
/v1/v3/api-packages/{apipackageid}/publications/{portalid}
GET
Fetchapipackagepublication — Get an API Package Publication
/v1/v3/api-packages/{apipackageid}/publications/{portalid}
DELETE
Deleteapipackagepublication — Delete API Package Publication
/v1/v3/api-packages/{apipackageid}/publications/{portalid}
GET
Listapipublications — List Publications
/v1/v3/api-publications
PUT
Publishapitoportal — Publish API
/v1/v3/apis/{apiid}/publications/{portalid}
GET
Fetchpublication — Get a Publication
/v1/v3/apis/{apiid}/publications/{portalid}
DELETE
Deletepublication — Delete Publication
/v1/v3/apis/{apiid}/publications/{portalid}
GET
Listportalapipublications — List Portal API Publications
/v1/v3/portals/{portalid}/api-publications

MCP Tools

publish-api-package

Publish API Package

idempotent
get-api-package-publication

Get an API Package Publication

read-only idempotent
delete-api-package-publication

Delete API Package Publication

idempotent
list-publications

List Publications

read-only idempotent
publish-api

Publish API

idempotent
get-publication

Get a Publication

read-only idempotent
delete-publication

Delete Publication

idempotent
list-portal-api-publications

List Portal API Publications

read-only idempotent

Capability Spec

konnect-platform-api-publication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Konnect API - Go SDK — API Publication
  description: 'Konnect API - Go SDK — API Publication. 8 operations. Lead operation: Publish API Package. Self-contained
    Naftiko capability covering one Kong business surface.'
  tags:
  - Kong
  - API Publication
  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-api-publication
    baseUri: https://global.api.konghq.com
    description: Konnect API - Go SDK — API Publication business capability. Self-contained, no shared references.
    resources:
    - name: v3-api-packages-apiPackageId-publications-portalId
      path: /v3/api-packages/{apiPackageId}/publications/{portalId}
      operations:
      - name: publishapipackagetoportal
        method: PUT
        description: Publish API Package
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: fetchapipackagepublication
        method: GET
        description: Get an API Package Publication
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteapipackagepublication
        method: DELETE
        description: Delete API Package Publication
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v3-api-publications
      path: /v3/api-publications
      operations:
      - name: listapipublications
        method: GET
        description: List Publications
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v3-apis-apiId-publications-portalId
      path: /v3/apis/{apiId}/publications/{portalId}
      operations:
      - name: publishapitoportal
        method: PUT
        description: Publish API
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: fetchpublication
        method: GET
        description: Get a Publication
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletepublication
        method: DELETE
        description: Delete Publication
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v3-portals-portalId-api-publications
      path: /v3/portals/{portalId}/api-publications
      operations:
      - name: listportalapipublications
        method: GET
        description: List Portal API Publications
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.KONG_API_KEY}}'
  exposes:
  - type: rest
    namespace: konnect-platform-api-publication-rest
    port: 8080
    description: REST adapter for Konnect API - Go SDK — API Publication. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v3/api-packages/{apipackageid}/publications/{portalid}
      name: v3-api-packages-apipackageid-publications-portalid
      description: REST surface for v3-api-packages-apiPackageId-publications-portalId.
      operations:
      - method: PUT
        name: publishapipackagetoportal
        description: Publish API Package
        call: konnect-platform-api-publication.publishapipackagetoportal
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: fetchapipackagepublication
        description: Get an API Package Publication
        call: konnect-platform-api-publication.fetchapipackagepublication
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteapipackagepublication
        description: Delete API Package Publication
        call: konnect-platform-api-publication.deleteapipackagepublication
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/api-publications
      name: v3-api-publications
      description: REST surface for v3-api-publications.
      operations:
      - method: GET
        name: listapipublications
        description: List Publications
        call: konnect-platform-api-publication.listapipublications
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/apis/{apiid}/publications/{portalid}
      name: v3-apis-apiid-publications-portalid
      description: REST surface for v3-apis-apiId-publications-portalId.
      operations:
      - method: PUT
        name: publishapitoportal
        description: Publish API
        call: konnect-platform-api-publication.publishapitoportal
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: fetchpublication
        description: Get a Publication
        call: konnect-platform-api-publication.fetchpublication
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletepublication
        description: Delete Publication
        call: konnect-platform-api-publication.deletepublication
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/portals/{portalid}/api-publications
      name: v3-portals-portalid-api-publications
      description: REST surface for v3-portals-portalId-api-publications.
      operations:
      - method: GET
        name: listportalapipublications
        description: List Portal API Publications
        call: konnect-platform-api-publication.listportalapipublications
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: konnect-platform-api-publication-mcp
    port: 9090
    transport: http
    description: MCP adapter for Konnect API - Go SDK — API Publication. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: publish-api-package
      description: Publish API Package
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: konnect-platform-api-publication.publishapipackagetoportal
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-api-package-publication
      description: Get an API Package Publication
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-api-publication.fetchapipackagepublication
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-api-package-publication
      description: Delete API Package Publication
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: konnect-platform-api-publication.deleteapipackagepublication
      outputParameters:
      - type: object
        mapping: $.
    - name: list-publications
      description: List Publications
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-api-publication.listapipublications
      outputParameters:
      - type: object
        mapping: $.
    - name: publish-api
      description: Publish API
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: konnect-platform-api-publication.publishapitoportal
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-publication
      description: Get a Publication
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-api-publication.fetchpublication
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-publication
      description: Delete Publication
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: konnect-platform-api-publication.deletepublication
      outputParameters:
      - type: object
        mapping: $.
    - name: list-portal-api-publications
      description: List Portal API Publications
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: konnect-platform-api-publication.listportalapipublications
      outputParameters:
      - type: object
        mapping: $.