Revert · Capability

Revert Unified API — CRM Companies

Revert Unified API — CRM Companies. 4 operations. Lead operation: List CRM Companies. Self-contained Naftiko capability covering one Revert business surface.

Run with Naftiko RevertCRM Companies

What You Can Do

GET
Getcrmcompanies — List CRM Companies
/v1/crm/companies
POST
Createcrmcompany — Create CRM Company
/v1/crm/companies
GET
Getcrmcompany — Get CRM Company
/v1/crm/companies/{id}
PATCH
Updatecrmcompany — Update CRM Company
/v1/crm/companies/{id}

MCP Tools

list-crm-companies

List CRM Companies

read-only idempotent
create-crm-company

Create CRM Company

get-crm-company

Get CRM Company

read-only idempotent
update-crm-company

Update CRM Company

idempotent

Capability Spec

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