naftiko: 1.0.0-alpha2 info: label: Revert Unified API — CRM Contacts description: 'Revert Unified API — CRM Contacts. 6 operations. Lead operation: List CRM Contacts. Self-contained Naftiko capability covering one Revert business surface.' tags: - Revert - CRM Contacts 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-contacts baseUri: https://api.revert.dev description: Revert Unified API — CRM Contacts business capability. Self-contained, no shared references. resources: - name: crm-contacts path: /crm/contacts operations: - name: getcrmcontacts method: GET description: List CRM Contacts outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createcrmcontact method: POST description: Create CRM Contact outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: crm-contacts-search path: /crm/contacts/search operations: - name: searchcrmcontacts method: POST description: Search CRM Contacts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: crm-contacts-id path: /crm/contacts/{id} operations: - name: getcrmcontact method: GET description: Get CRM Contact outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: updatecrmcontact method: PATCH description: Update CRM Contact 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 - name: crm-proxy path: /crm/proxy operations: - name: crmproxy method: POST description: CRM Proxy Request outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - 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-contacts-rest port: 8080 description: REST adapter for Revert Unified API — CRM Contacts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/crm/contacts name: crm-contacts description: REST surface for crm-contacts. operations: - method: GET name: getcrmcontacts description: List CRM Contacts call: unified-crm-contacts.getcrmcontacts outputParameters: - type: object mapping: $. - method: POST name: createcrmcontact description: Create CRM Contact call: unified-crm-contacts.createcrmcontact with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/crm/contacts/search name: crm-contacts-search description: REST surface for crm-contacts-search. operations: - method: POST name: searchcrmcontacts description: Search CRM Contacts call: unified-crm-contacts.searchcrmcontacts with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/crm/contacts/{id} name: crm-contacts-id description: REST surface for crm-contacts-id. operations: - method: GET name: getcrmcontact description: Get CRM Contact call: unified-crm-contacts.getcrmcontact with: id: rest.id outputParameters: - type: object mapping: $. - method: PATCH name: updatecrmcontact description: Update CRM Contact call: unified-crm-contacts.updatecrmcontact with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/crm/proxy name: crm-proxy description: REST surface for crm-proxy. operations: - method: POST name: crmproxy description: CRM Proxy Request call: unified-crm-contacts.crmproxy with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: unified-crm-contacts-mcp port: 9090 transport: http description: MCP adapter for Revert Unified API — CRM Contacts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-crm-contacts description: List CRM Contacts hints: readOnly: true destructive: false idempotent: true call: unified-crm-contacts.getcrmcontacts outputParameters: - type: object mapping: $. - name: create-crm-contact description: Create CRM Contact hints: readOnly: false destructive: false idempotent: false call: unified-crm-contacts.createcrmcontact with: body: tools.body outputParameters: - type: object mapping: $. - name: search-crm-contacts description: Search CRM Contacts hints: readOnly: true destructive: false idempotent: false call: unified-crm-contacts.searchcrmcontacts with: body: tools.body outputParameters: - type: object mapping: $. - name: get-crm-contact description: Get CRM Contact hints: readOnly: true destructive: false idempotent: true call: unified-crm-contacts.getcrmcontact with: id: tools.id outputParameters: - type: object mapping: $. - name: update-crm-contact description: Update CRM Contact hints: readOnly: false destructive: false idempotent: true call: unified-crm-contacts.updatecrmcontact with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: crm-proxy-request description: CRM Proxy Request hints: readOnly: false destructive: false idempotent: false call: unified-crm-contacts.crmproxy with: body: tools.body outputParameters: - type: object mapping: $.