WSO2 · Capability

WSO2 API Manager - Admin — Platform Gateways

WSO2 API Manager - Admin — Platform Gateways. 5 operations. Lead operation: Get all platform gateways. Self-contained Naftiko capability covering one Wso2 business surface.

Run with Naftiko Wso2Platform Gateways

What You Can Do

GET
Getplatformgateways — Get all platform gateways
/v1/gateways
POST
Createplatformgateway — Register a platform gateway
/v1/gateways
PUT
Updateplatformgateway — Update a platform gateway
/v1/gateways/{gatewayid}
DELETE
Deleteplatformgateway — Delete a platform gateway
/v1/gateways/{gatewayid}
POST
Regenerateplatformgatewaytoken — Regenerate registration token for a platform gateway
/v1/gateways/{gatewayid}/regenerate-token

MCP Tools

get-all-platform-gateways

Get all platform gateways

read-only idempotent
register-platform-gateway

Register a platform gateway

update-platform-gateway

Update a platform gateway

idempotent
delete-platform-gateway

Delete a platform gateway

idempotent
regenerate-registration-token-platform-gateway

Regenerate registration token for a platform gateway

Capability Spec

admin-platform-gateways.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WSO2 API Manager - Admin — Platform Gateways
  description: 'WSO2 API Manager - Admin — Platform Gateways. 5 operations. Lead operation: Get all platform gateways. Self-contained
    Naftiko capability covering one Wso2 business surface.'
  tags:
  - Wso2
  - Platform Gateways
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WSO2_API_KEY: WSO2_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-platform-gateways
    baseUri: https://apis.wso2.com/api/am/admin/v4
    description: WSO2 API Manager - Admin — Platform Gateways business capability. Self-contained, no shared references.
    resources:
    - name: gateways
      path: /gateways
      operations:
      - name: getplatformgateways
        method: GET
        description: Get all platform gateways
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createplatformgateway
        method: POST
        description: Register a platform gateway
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: gateways-gatewayId
      path: /gateways/{gatewayId}
      operations:
      - name: updateplatformgateway
        method: PUT
        description: Update a platform gateway
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: gatewayId
          in: path
          type: string
          description: Gateway UUID
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteplatformgateway
        method: DELETE
        description: Delete a platform gateway
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: gatewayId
          in: path
          type: string
          description: Gateway UUID
          required: true
    - name: gateways-gatewayId-regenerate-token
      path: /gateways/{gatewayId}/regenerate-token
      operations:
      - name: regenerateplatformgatewaytoken
        method: POST
        description: Regenerate registration token for a platform gateway
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: gatewayId
          in: path
          type: string
          description: Gateway UUID
          required: true
    authentication:
      type: bearer
      token: '{{env.WSO2_API_KEY}}'
  exposes:
  - type: rest
    namespace: admin-platform-gateways-rest
    port: 8080
    description: REST adapter for WSO2 API Manager - Admin — Platform Gateways. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/gateways
      name: gateways
      description: REST surface for gateways.
      operations:
      - method: GET
        name: getplatformgateways
        description: Get all platform gateways
        call: admin-platform-gateways.getplatformgateways
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createplatformgateway
        description: Register a platform gateway
        call: admin-platform-gateways.createplatformgateway
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gateways/{gatewayid}
      name: gateways-gatewayid
      description: REST surface for gateways-gatewayId.
      operations:
      - method: PUT
        name: updateplatformgateway
        description: Update a platform gateway
        call: admin-platform-gateways.updateplatformgateway
        with:
          gatewayId: rest.gatewayId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteplatformgateway
        description: Delete a platform gateway
        call: admin-platform-gateways.deleteplatformgateway
        with:
          gatewayId: rest.gatewayId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gateways/{gatewayid}/regenerate-token
      name: gateways-gatewayid-regenerate-token
      description: REST surface for gateways-gatewayId-regenerate-token.
      operations:
      - method: POST
        name: regenerateplatformgatewaytoken
        description: Regenerate registration token for a platform gateway
        call: admin-platform-gateways.regenerateplatformgatewaytoken
        with:
          gatewayId: rest.gatewayId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-platform-gateways-mcp
    port: 9090
    transport: http
    description: MCP adapter for WSO2 API Manager - Admin — Platform Gateways. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-all-platform-gateways
      description: Get all platform gateways
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-platform-gateways.getplatformgateways
      outputParameters:
      - type: object
        mapping: $.
    - name: register-platform-gateway
      description: Register a platform gateway
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-platform-gateways.createplatformgateway
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-platform-gateway
      description: Update a platform gateway
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: admin-platform-gateways.updateplatformgateway
      with:
        gatewayId: tools.gatewayId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-platform-gateway
      description: Delete a platform gateway
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: admin-platform-gateways.deleteplatformgateway
      with:
        gatewayId: tools.gatewayId
      outputParameters:
      - type: object
        mapping: $.
    - name: regenerate-registration-token-platform-gateway
      description: Regenerate registration token for a platform gateway
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-platform-gateways.regenerateplatformgatewaytoken
      with:
        gatewayId: tools.gatewayId
      outputParameters:
      - type: object
        mapping: $.