WSO2 · Capability

WSO2 API Manager - Admin — Monetization (Collection)

WSO2 API Manager - Admin — Monetization (Collection). 2 operations. Lead operation: Publish Usage Records. Self-contained Naftiko capability covering one Wso2 business surface.

Run with Naftiko Wso2Monetization (Collection)

What You Can Do

POST
Post — Publish Usage Records
/v1/monetization/publish-usage
GET
Get — Get the Status of Monetization Usage Publisher
/v1/monetization/publish-usage/status

MCP Tools

publish-usage-records

Publish Usage Records

get-status-monetization-usage-publisher

Get the Status of Monetization Usage Publisher

read-only idempotent

Capability Spec

admin-monetization-collection.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WSO2 API Manager - Admin — Monetization (Collection)
  description: 'WSO2 API Manager - Admin — Monetization (Collection). 2 operations. Lead operation: Publish Usage Records.
    Self-contained Naftiko capability covering one Wso2 business surface.'
  tags:
  - Wso2
  - Monetization (Collection)
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WSO2_API_KEY: WSO2_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-monetization-collection
    baseUri: https://apis.wso2.com/api/am/admin/v4
    description: WSO2 API Manager - Admin — Monetization (Collection) business capability. Self-contained, no shared references.
    resources:
    - name: monetization-publish-usage
      path: /monetization/publish-usage
      operations:
      - name: post
        method: POST
        description: Publish Usage Records
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: monetization-publish-usage-status
      path: /monetization/publish-usage/status
      operations:
      - name: get
        method: GET
        description: Get the Status of Monetization Usage Publisher
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.WSO2_API_KEY}}'
  exposes:
  - type: rest
    namespace: admin-monetization-collection-rest
    port: 8080
    description: REST adapter for WSO2 API Manager - Admin — Monetization (Collection). One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/monetization/publish-usage
      name: monetization-publish-usage
      description: REST surface for monetization-publish-usage.
      operations:
      - method: POST
        name: post
        description: Publish Usage Records
        call: admin-monetization-collection.post
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/monetization/publish-usage/status
      name: monetization-publish-usage-status
      description: REST surface for monetization-publish-usage-status.
      operations:
      - method: GET
        name: get
        description: Get the Status of Monetization Usage Publisher
        call: admin-monetization-collection.get
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-monetization-collection-mcp
    port: 9090
    transport: http
    description: MCP adapter for WSO2 API Manager - Admin — Monetization (Collection). One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: publish-usage-records
      description: Publish Usage Records
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-monetization-collection.post
      outputParameters:
      - type: object
        mapping: $.
    - name: get-status-monetization-usage-publisher
      description: Get the Status of Monetization Usage Publisher
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-monetization-collection.get
      outputParameters:
      - type: object
        mapping: $.