naftiko: 1.0.0-alpha2 info: label: Customer.io Track API — Devices description: 'Customer.io Track API — Devices. 2 operations. Lead operation: Add a customer device. Self-contained Naftiko capability covering one Customer Io business surface.' tags: - Customer Io - Devices created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CUSTOMER_IO_API_KEY: CUSTOMER_IO_API_KEY capability: consumes: - type: http namespace: track-devices baseUri: https://track.customer.io/api/v1 description: Customer.io Track API — Devices business capability. Self-contained, no shared references. resources: - name: customers-identifier-devices path: /customers/{identifier}/devices operations: - name: addcustomerdevice method: PUT description: Add a customer device outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: customers-identifier-devices-device_id path: /customers/{identifier}/devices/{device_id} operations: - name: deletecustomerdevice method: DELETE description: Delete a customer device outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: basic username: '{{env.CUSTOMER_IO_USER}}' password: '{{env.CUSTOMER_IO_PASS}}' exposes: - type: rest namespace: track-devices-rest port: 8080 description: REST adapter for Customer.io Track API — Devices. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/customers/{identifier}/devices name: customers-identifier-devices description: REST surface for customers-identifier-devices. operations: - method: PUT name: addcustomerdevice description: Add a customer device call: track-devices.addcustomerdevice with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/customers/{identifier}/devices/{device-id} name: customers-identifier-devices-device-id description: REST surface for customers-identifier-devices-device_id. operations: - method: DELETE name: deletecustomerdevice description: Delete a customer device call: track-devices.deletecustomerdevice outputParameters: - type: object mapping: $. - type: mcp namespace: track-devices-mcp port: 9090 transport: http description: MCP adapter for Customer.io Track API — Devices. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: add-customer-device description: Add a customer device hints: readOnly: false destructive: false idempotent: true call: track-devices.addcustomerdevice with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-customer-device description: Delete a customer device hints: readOnly: false destructive: true idempotent: true call: track-devices.deletecustomerdevice outputParameters: - type: object mapping: $.