naftiko: 1.0.0-alpha2 info: label: Revert Unified API — CRM Notes description: 'Revert Unified API — CRM Notes. 4 operations. Lead operation: List CRM Notes. Self-contained Naftiko capability covering one Revert business surface.' tags: - Revert - CRM Notes created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: REVERT_API_KEY: REVERT_API_KEY capability: consumes: - type: http namespace: unified-crm-notes baseUri: https://api.revert.dev description: Revert Unified API — CRM Notes business capability. Self-contained, no shared references. resources: - name: crm-notes path: /crm/notes operations: - name: getcrmnotes method: GET description: List CRM Notes outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createcrmnote method: POST description: Create CRM Note outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: crm-notes-id path: /crm/notes/{id} operations: - name: getcrmnote method: GET description: Get CRM Note outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: updatecrmnote method: PATCH description: Update CRM Note outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: x-revert-api-token value: '{{env.REVERT_API_KEY}}' placement: header exposes: - type: rest namespace: unified-crm-notes-rest port: 8080 description: REST adapter for Revert Unified API — CRM Notes. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/crm/notes name: crm-notes description: REST surface for crm-notes. operations: - method: GET name: getcrmnotes description: List CRM Notes call: unified-crm-notes.getcrmnotes outputParameters: - type: object mapping: $. - method: POST name: createcrmnote description: Create CRM Note call: unified-crm-notes.createcrmnote with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/crm/notes/{id} name: crm-notes-id description: REST surface for crm-notes-id. operations: - method: GET name: getcrmnote description: Get CRM Note call: unified-crm-notes.getcrmnote with: id: rest.id outputParameters: - type: object mapping: $. - method: PATCH name: updatecrmnote description: Update CRM Note call: unified-crm-notes.updatecrmnote with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: unified-crm-notes-mcp port: 9090 transport: http description: MCP adapter for Revert Unified API — CRM Notes. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-crm-notes description: List CRM Notes hints: readOnly: true destructive: false idempotent: true call: unified-crm-notes.getcrmnotes outputParameters: - type: object mapping: $. - name: create-crm-note description: Create CRM Note hints: readOnly: false destructive: false idempotent: false call: unified-crm-notes.createcrmnote with: body: tools.body outputParameters: - type: object mapping: $. - name: get-crm-note description: Get CRM Note hints: readOnly: true destructive: false idempotent: true call: unified-crm-notes.getcrmnote with: id: tools.id outputParameters: - type: object mapping: $. - name: update-crm-note description: Update CRM Note hints: readOnly: false destructive: false idempotent: true call: unified-crm-notes.updatecrmnote with: id: tools.id body: tools.body outputParameters: - type: object mapping: $.