naftiko: 1.0.0-alpha2 info: label: m3ter API — BillGroupingKey description: 'm3ter API — BillGroupingKey. 5 operations. Lead operation: List Bill Grouping Keys. Self-contained Naftiko capability covering one M3ter business surface.' tags: - M3ter - BillGroupingKey created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: M3TER_API_KEY: M3TER_API_KEY capability: consumes: - type: http namespace: m3ter-billgroupingkey baseUri: https://api.m3ter.com description: m3ter API — BillGroupingKey business capability. Self-contained, no shared references. resources: - name: organizations-orgId-picklists-billgroupingkeys path: /organizations/{orgId}/picklists/billgroupingkeys operations: - name: listbillgroupingkeys method: GET description: List Bill Grouping Keys outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: orgId in: path type: string description: UUID of the Organization. The Organization represents your company as a direct customer of the m3ter service. required: true - name: pageSize in: query type: integer description: Number of Bill Grouping Keys to retrieve per page. - name: nextToken in: query type: string description: '`nextToken` for multi page retrievals' - name: ids in: query type: array description: List of Bill Grouping Key IDs to retrieve. - name: codes in: query type: array description: List of Bill Grouping Key codes to retrieve. - name: archived in: query type: boolean description: Filter by archived flag - name: createbillgroupingkey method: POST description: Create BillGroupingKey outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: orgId in: path type: string description: UUID of the Organization.The Organization represents your company as a direct customer of the m3ter service. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: organizations-orgId-picklists-billgroupingkeys-id path: /organizations/{orgId}/picklists/billgroupingkeys/{id} operations: - name: getbillgroupingkey method: GET description: Retrieve BillGroupingKey outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: orgId in: path type: string description: UUID of the Organization. The Organization represents your company as a direct customer of the m3ter service. required: true - name: id in: path type: string description: The UUID of the Bill Grouping Key to retrieve. required: true - name: updatebillgroupingkey method: PUT description: Update BillGroupingKey outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: orgId in: path type: string description: UUID of the Organization. The Organization represents your company as a direct customer of the m3ter service. required: true - name: id in: path type: string description: The UUID of the Bill Grouping Key to update. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletebillgroupingkey method: DELETE description: Delete BillGroupingKey outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: orgId in: path type: string description: UUID of the Organization. The Organization represents your company as a direct customer of the m3ter service. required: true - name: id in: path type: string description: The UUID of the Bill Grouping Key to delete. required: true authentication: type: bearer token: '{{env.M3TER_API_KEY}}' exposes: - type: rest namespace: m3ter-billgroupingkey-rest port: 8080 description: REST adapter for m3ter API — BillGroupingKey. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/organizations/{orgid}/picklists/billgroupingkeys name: organizations-orgid-picklists-billgroupingkeys description: REST surface for organizations-orgId-picklists-billgroupingkeys. operations: - method: GET name: listbillgroupingkeys description: List Bill Grouping Keys call: m3ter-billgroupingkey.listbillgroupingkeys with: orgId: rest.orgId pageSize: rest.pageSize nextToken: rest.nextToken ids: rest.ids codes: rest.codes archived: rest.archived outputParameters: - type: object mapping: $. - method: POST name: createbillgroupingkey description: Create BillGroupingKey call: m3ter-billgroupingkey.createbillgroupingkey with: orgId: rest.orgId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/organizations/{orgid}/picklists/billgroupingkeys/{id} name: organizations-orgid-picklists-billgroupingkeys-id description: REST surface for organizations-orgId-picklists-billgroupingkeys-id. operations: - method: GET name: getbillgroupingkey description: Retrieve BillGroupingKey call: m3ter-billgroupingkey.getbillgroupingkey with: orgId: rest.orgId id: rest.id outputParameters: - type: object mapping: $. - method: PUT name: updatebillgroupingkey description: Update BillGroupingKey call: m3ter-billgroupingkey.updatebillgroupingkey with: orgId: rest.orgId id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletebillgroupingkey description: Delete BillGroupingKey call: m3ter-billgroupingkey.deletebillgroupingkey with: orgId: rest.orgId id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: m3ter-billgroupingkey-mcp port: 9090 transport: http description: MCP adapter for m3ter API — BillGroupingKey. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-bill-grouping-keys description: List Bill Grouping Keys hints: readOnly: true destructive: false idempotent: true call: m3ter-billgroupingkey.listbillgroupingkeys with: orgId: tools.orgId pageSize: tools.pageSize nextToken: tools.nextToken ids: tools.ids codes: tools.codes archived: tools.archived outputParameters: - type: object mapping: $. - name: create-billgroupingkey description: Create BillGroupingKey hints: readOnly: false destructive: false idempotent: false call: m3ter-billgroupingkey.createbillgroupingkey with: orgId: tools.orgId body: tools.body outputParameters: - type: object mapping: $. - name: retrieve-billgroupingkey description: Retrieve BillGroupingKey hints: readOnly: true destructive: false idempotent: true call: m3ter-billgroupingkey.getbillgroupingkey with: orgId: tools.orgId id: tools.id outputParameters: - type: object mapping: $. - name: update-billgroupingkey description: Update BillGroupingKey hints: readOnly: false destructive: false idempotent: true call: m3ter-billgroupingkey.updatebillgroupingkey with: orgId: tools.orgId id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: delete-billgroupingkey description: Delete BillGroupingKey hints: readOnly: false destructive: true idempotent: true call: m3ter-billgroupingkey.deletebillgroupingkey with: orgId: tools.orgId id: tools.id outputParameters: - type: object mapping: $.