naftiko: 1.0.0-alpha2 info: label: API Endpoints — subpackage_unsubscribedEmails description: 'API Endpoints — subpackage_unsubscribedEmails. 3 operations. Lead operation: List all unsubscribed emails. Self-contained Naftiko capability covering one Close business surface.' tags: - Close - subpackage_unsubscribedEmails created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CLOSE_API_KEY: CLOSE_API_KEY capability: consumes: - type: http namespace: close-subpackage-unsubscribedemails baseUri: https://api.close.com/api/v1 description: API Endpoints — subpackage_unsubscribedEmails business capability. Self-contained, no shared references. resources: - name: unsubscribe-email path: /unsubscribe/email/ operations: - name: list method: GET description: List all unsubscribed emails outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: Use your API key as the username and leave the password empty. required: true - name: create method: POST description: Unsubscribe an email address outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: Use your API key as the username and leave the password empty. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: unsubscribe-email-email_address path: /unsubscribe/email/{email_address}/ operations: - name: delete method: DELETE description: Resubscribe an email address outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: email_address in: path type: string required: true - name: Authorization in: header type: string description: Use your API key as the username and leave the password empty. required: true authentication: type: bearer token: '{{env.CLOSE_API_KEY}}' exposes: - type: rest namespace: close-subpackage-unsubscribedemails-rest port: 8080 description: REST adapter for API Endpoints — subpackage_unsubscribedEmails. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/unsubscribe/email name: unsubscribe-email description: REST surface for unsubscribe-email. operations: - method: GET name: list description: List all unsubscribed emails call: close-subpackage-unsubscribedemails.list with: Authorization: rest.Authorization outputParameters: - type: object mapping: $. - method: POST name: create description: Unsubscribe an email address call: close-subpackage-unsubscribedemails.create with: Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - path: /v1/unsubscribe/email/{email-address} name: unsubscribe-email-email-address description: REST surface for unsubscribe-email-email_address. operations: - method: DELETE name: delete description: Resubscribe an email address call: close-subpackage-unsubscribedemails.delete with: email_address: rest.email_address Authorization: rest.Authorization outputParameters: - type: object mapping: $. - type: mcp namespace: close-subpackage-unsubscribedemails-mcp port: 9090 transport: http description: MCP adapter for API Endpoints — subpackage_unsubscribedEmails. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-all-unsubscribed-emails description: List all unsubscribed emails hints: readOnly: true destructive: false idempotent: true call: close-subpackage-unsubscribedemails.list with: Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: unsubscribe-email-address description: Unsubscribe an email address hints: readOnly: false destructive: false idempotent: false call: close-subpackage-unsubscribedemails.create with: Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: resubscribe-email-address description: Resubscribe an email address hints: readOnly: false destructive: true idempotent: true call: close-subpackage-unsubscribedemails.delete with: email_address: tools.email_address Authorization: tools.Authorization outputParameters: - type: object mapping: $.