naftiko: 1.0.0-alpha2 info: label: Optimizely Campaign REST API — Unsubscribes description: 'Optimizely Campaign REST API — Unsubscribes. 2 operations. Lead operation: List unsubscribes. Self-contained Naftiko capability covering one Optimizely business surface.' tags: - Optimizely - Unsubscribes created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OPTIMIZELY_API_KEY: OPTIMIZELY_API_KEY capability: consumes: - type: http namespace: campaign-unsubscribes baseUri: https://api.campaign.episerver.net/rest description: Optimizely Campaign REST API — Unsubscribes business capability. Self-contained, no shared references. resources: - name: clientId-unsubscribes path: /{clientId}/unsubscribes operations: - name: listunsubscribes method: GET description: List unsubscribes outputRawFormat: json outputParameters: - name: result type: object value: $. - name: addunsubscribe method: POST description: Add an unsubscribe outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: basic username: '{{env.OPTIMIZELY_USER}}' password: '{{env.OPTIMIZELY_PASS}}' exposes: - type: rest namespace: campaign-unsubscribes-rest port: 8080 description: REST adapter for Optimizely Campaign REST API — Unsubscribes. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/{clientid}/unsubscribes name: clientid-unsubscribes description: REST surface for clientId-unsubscribes. operations: - method: GET name: listunsubscribes description: List unsubscribes call: campaign-unsubscribes.listunsubscribes outputParameters: - type: object mapping: $. - method: POST name: addunsubscribe description: Add an unsubscribe call: campaign-unsubscribes.addunsubscribe with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: campaign-unsubscribes-mcp port: 9090 transport: http description: MCP adapter for Optimizely Campaign REST API — Unsubscribes. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-unsubscribes description: List unsubscribes hints: readOnly: true destructive: false idempotent: true call: campaign-unsubscribes.listunsubscribes outputParameters: - type: object mapping: $. - name: add-unsubscribe description: Add an unsubscribe hints: readOnly: false destructive: false idempotent: false call: campaign-unsubscribes.addunsubscribe with: body: tools.body outputParameters: - type: object mapping: $.