Microsoft Power Platform REST API — Licensing

Microsoft Power Platform REST API — Licensing. 5 operations. Lead operation: List Billing Policies. Self-contained Naftiko capability covering one Power Platform business surface.

Run with Naftiko Power PlatformLicensing

What You Can Do

GET
Listbillingpolicies — List Billing Policies
/v1/licensing/billingpolicies
POST
Createbillingpolicy — Create Billing Policy
/v1/licensing/billingpolicies
GET
Getbillingpolicy — Get Billing Policy
/v1/licensing/billingpolicies/{billingpolicyid}
PATCH
Updatebillingpolicy — Update Billing Policy
/v1/licensing/billingpolicies/{billingpolicyid}
DELETE
Deletebillingpolicy — Delete Billing Policy
/v1/licensing/billingpolicies/{billingpolicyid}

MCP Tools

list-billing-policies

List Billing Policies

read-only idempotent
create-billing-policy

Create Billing Policy

get-billing-policy

Get Billing Policy

read-only idempotent
update-billing-policy

Update Billing Policy

idempotent
delete-billing-policy

Delete Billing Policy

idempotent

Capability Spec

power-platform-licensing.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Power Platform REST API — Licensing
  description: 'Microsoft Power Platform REST API — Licensing. 5 operations. Lead operation: List Billing Policies. Self-contained
    Naftiko capability covering one Power Platform business surface.'
  tags:
  - Power Platform
  - Licensing
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POWER_PLATFORM_API_KEY: POWER_PLATFORM_API_KEY
capability:
  consumes:
  - type: http
    namespace: power-platform-licensing
    baseUri: https://api.powerplatform.com
    description: Microsoft Power Platform REST API — Licensing business capability. Self-contained, no shared references.
    resources:
    - name: licensing-billingPolicies
      path: /licensing/billingPolicies
      operations:
      - name: listbillingpolicies
        method: GET
        description: List Billing Policies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: api-version
          in: query
          type: string
          description: The API version to use for this request.
          required: true
        - name: $top
          in: query
          type: integer
          description: The maximum number of billing policies to return.
      - name: createbillingpolicy
        method: POST
        description: Create Billing Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: api-version
          in: query
          type: string
          description: The API version to use for this request.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: licensing-billingPolicies-billingPolicyId
      path: /licensing/billingPolicies/{billingPolicyId}
      operations:
      - name: getbillingpolicy
        method: GET
        description: Get Billing Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: billingPolicyId
          in: path
          type: string
          description: The unique identifier of the billing policy.
          required: true
        - name: api-version
          in: query
          type: string
          description: The API version to use for this request.
          required: true
      - name: updatebillingpolicy
        method: PATCH
        description: Update Billing Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: billingPolicyId
          in: path
          type: string
          description: The unique identifier of the billing policy to update.
          required: true
        - name: api-version
          in: query
          type: string
          description: The API version to use for this request.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletebillingpolicy
        method: DELETE
        description: Delete Billing Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: billingPolicyId
          in: path
          type: string
          description: The unique identifier of the billing policy to delete.
          required: true
        - name: api-version
          in: query
          type: string
          description: The API version to use for this request.
          required: true
    authentication:
      type: bearer
      token: '{{env.POWER_PLATFORM_API_KEY}}'
  exposes:
  - type: rest
    namespace: power-platform-licensing-rest
    port: 8080
    description: REST adapter for Microsoft Power Platform REST API — Licensing. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/licensing/billingpolicies
      name: licensing-billingpolicies
      description: REST surface for licensing-billingPolicies.
      operations:
      - method: GET
        name: listbillingpolicies
        description: List Billing Policies
        call: power-platform-licensing.listbillingpolicies
        with:
          api-version: rest.api-version
          $top: rest.$top
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createbillingpolicy
        description: Create Billing Policy
        call: power-platform-licensing.createbillingpolicy
        with:
          api-version: rest.api-version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/licensing/billingpolicies/{billingpolicyid}
      name: licensing-billingpolicies-billingpolicyid
      description: REST surface for licensing-billingPolicies-billingPolicyId.
      operations:
      - method: GET
        name: getbillingpolicy
        description: Get Billing Policy
        call: power-platform-licensing.getbillingpolicy
        with:
          billingPolicyId: rest.billingPolicyId
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatebillingpolicy
        description: Update Billing Policy
        call: power-platform-licensing.updatebillingpolicy
        with:
          billingPolicyId: rest.billingPolicyId
          api-version: rest.api-version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletebillingpolicy
        description: Delete Billing Policy
        call: power-platform-licensing.deletebillingpolicy
        with:
          billingPolicyId: rest.billingPolicyId
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: power-platform-licensing-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Power Platform REST API — Licensing. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-billing-policies
      description: List Billing Policies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: power-platform-licensing.listbillingpolicies
      with:
        api-version: tools.api-version
        $top: tools.$top
      outputParameters:
      - type: object
        mapping: $.
    - name: create-billing-policy
      description: Create Billing Policy
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: power-platform-licensing.createbillingpolicy
      with:
        api-version: tools.api-version
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-billing-policy
      description: Get Billing Policy
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: power-platform-licensing.getbillingpolicy
      with:
        billingPolicyId: tools.billingPolicyId
        api-version: tools.api-version
      outputParameters:
      - type: object
        mapping: $.
    - name: update-billing-policy
      description: Update Billing Policy
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: power-platform-licensing.updatebillingpolicy
      with:
        billingPolicyId: tools.billingPolicyId
        api-version: tools.api-version
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-billing-policy
      description: Delete Billing Policy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: power-platform-licensing.deletebillingpolicy
      with:
        billingPolicyId: tools.billingPolicyId
        api-version: tools.api-version
      outputParameters:
      - type: object
        mapping: $.