naftiko: 1.0.0-alpha2 info: label: Courier — Automations description: 'Courier — Automations. 3 operations. Lead operation: List Automations. Self-contained Naftiko capability covering one Courier business surface.' tags: - Courier - Automations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: COURIER_API_KEY: COURIER_API_KEY capability: consumes: - type: http namespace: courier-automations baseUri: https://api.courier.com description: Courier — Automations business capability. Self-contained, no shared references. resources: - name: automations path: /automations operations: - name: automationslist method: GET description: List Automations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: cursor in: query type: string description: A cursor token for pagination. Use the cursor from the previous response to fetch the next page of results. - name: version in: query type: string description: The version of templates to retrieve. Accepted values are published (for published templates) or draft (for draft templates). Defaults to published. - name: automations-invoke path: /automations/invoke operations: - name: automationsinvokeadhocautomation method: POST description: Invoke an Ad Hoc Automation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: automations-templateId-invoke path: /automations/{templateId}/invoke operations: - name: automationsinvokeautomationtemplate method: POST description: Invoke an Automation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: templateId in: path type: string description: A unique identifier representing the automation template to be invoked. This could be the Automation Template ID or the Automation Template Alias. required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.COURIER_API_KEY}}' exposes: - type: rest namespace: courier-automations-rest port: 8080 description: REST adapter for Courier — Automations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/automations name: automations description: REST surface for automations. operations: - method: GET name: automationslist description: List Automations call: courier-automations.automationslist with: cursor: rest.cursor version: rest.version outputParameters: - type: object mapping: $. - path: /v1/automations/invoke name: automations-invoke description: REST surface for automations-invoke. operations: - method: POST name: automationsinvokeadhocautomation description: Invoke an Ad Hoc Automation call: courier-automations.automationsinvokeadhocautomation with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/automations/{templateid}/invoke name: automations-templateid-invoke description: REST surface for automations-templateId-invoke. operations: - method: POST name: automationsinvokeautomationtemplate description: Invoke an Automation call: courier-automations.automationsinvokeautomationtemplate with: templateId: rest.templateId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: courier-automations-mcp port: 9090 transport: http description: MCP adapter for Courier — Automations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-automations description: List Automations hints: readOnly: true destructive: false idempotent: true call: courier-automations.automationslist with: cursor: tools.cursor version: tools.version outputParameters: - type: object mapping: $. - name: invoke-ad-hoc-automation description: Invoke an Ad Hoc Automation hints: readOnly: false destructive: false idempotent: false call: courier-automations.automationsinvokeadhocautomation with: body: tools.body outputParameters: - type: object mapping: $. - name: invoke-automation description: Invoke an Automation hints: readOnly: false destructive: false idempotent: false call: courier-automations.automationsinvokeautomationtemplate with: templateId: tools.templateId body: tools.body outputParameters: - type: object mapping: $.