naftiko: 1.0.0-alpha2 info: label: Courier — Audit Events description: 'Courier — Audit Events. 2 operations. Lead operation: Get all audit events. Self-contained Naftiko capability covering one Courier business surface.' tags: - Courier - Audit Events created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: COURIER_API_KEY: COURIER_API_KEY capability: consumes: - type: http namespace: courier-audit-events baseUri: https://api.courier.com description: Courier — Audit Events business capability. Self-contained, no shared references. resources: - name: audit-events path: /audit-events operations: - name: auditeventslist method: GET description: Get all audit events outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: cursor in: query type: string description: A unique identifier that allows for fetching the next set of audit events. - name: audit-events-audit-event-id path: /audit-events/{audit-event-id} operations: - name: auditeventsget method: GET description: Get an audit event outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: audit-event-id in: path type: string description: A unique identifier associated with the audit event you wish to retrieve required: true authentication: type: bearer token: '{{env.COURIER_API_KEY}}' exposes: - type: rest namespace: courier-audit-events-rest port: 8080 description: REST adapter for Courier — Audit Events. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/audit-events name: audit-events description: REST surface for audit-events. operations: - method: GET name: auditeventslist description: Get all audit events call: courier-audit-events.auditeventslist with: cursor: rest.cursor outputParameters: - type: object mapping: $. - path: /v1/audit-events/{audit-event-id} name: audit-events-audit-event-id description: REST surface for audit-events-audit-event-id. operations: - method: GET name: auditeventsget description: Get an audit event call: courier-audit-events.auditeventsget with: audit-event-id: rest.audit-event-id outputParameters: - type: object mapping: $. - type: mcp namespace: courier-audit-events-mcp port: 9090 transport: http description: MCP adapter for Courier — Audit Events. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-all-audit-events description: Get all audit events hints: readOnly: true destructive: false idempotent: true call: courier-audit-events.auditeventslist with: cursor: tools.cursor outputParameters: - type: object mapping: $. - name: get-audit-event description: Get an audit event hints: readOnly: true destructive: false idempotent: true call: courier-audit-events.auditeventsget with: audit-event-id: tools.audit-event-id outputParameters: - type: object mapping: $.