naftiko: 1.0.0-alpha2 info: label: Productiv Developer API — Usage Events description: 'Productiv Developer API — Usage Events. 1 operations. Lead operation: Productiv Publish Usage Events. Self-contained Naftiko capability covering one Productiv business surface.' tags: - Productiv - Usage Events created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PRODUCTIV_API_KEY: PRODUCTIV_API_KEY capability: consumes: - type: http namespace: developer-usage-events baseUri: https://public-api.productiv.com description: Productiv Developer API — Usage Events business capability. Self-contained, no shared references. resources: - name: services-push-v1-customer-apps-appId-usage-events path: /services/push/v1/customer/apps/{appId}/usage-events operations: - name: publishusageevents method: POST description: Productiv Publish Usage Events outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: appId in: path type: string description: The unique identifier of the application. required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.PRODUCTIV_API_KEY}}' exposes: - type: rest namespace: developer-usage-events-rest port: 8080 description: REST adapter for Productiv Developer API — Usage Events. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/services/push/v1/customer/apps/{appid}/usage-events name: services-push-v1-customer-apps-appid-usage-events description: REST surface for services-push-v1-customer-apps-appId-usage-events. operations: - method: POST name: publishusageevents description: Productiv Publish Usage Events call: developer-usage-events.publishusageevents with: appId: rest.appId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: developer-usage-events-mcp port: 9090 transport: http description: MCP adapter for Productiv Developer API — Usage Events. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: productiv-publish-usage-events description: Productiv Publish Usage Events hints: readOnly: false destructive: false idempotent: false call: developer-usage-events.publishusageevents with: appId: tools.appId body: tools.body outputParameters: - type: object mapping: $.