Revert · Capability

Revert Unified API — CRM Events

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

Run with Naftiko RevertCRM Events

What You Can Do

GET
Getcrmevents — List CRM Events
/v1/crm/events
POST
Createcrmevent — Create CRM Event
/v1/crm/events
GET
Getcrmevent — Get CRM Event
/v1/crm/events/{id}
PATCH
Updatecrmevent — Update CRM Event
/v1/crm/events/{id}
DELETE
Deletecrmevent — Delete CRM Event
/v1/crm/events/{id}

MCP Tools

list-crm-events

List CRM Events

read-only idempotent
create-crm-event

Create CRM Event

get-crm-event

Get CRM Event

read-only idempotent
update-crm-event

Update CRM Event

idempotent
delete-crm-event

Delete CRM Event

idempotent

Capability Spec

unified-crm-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Revert Unified API — CRM Events
  description: 'Revert Unified API — CRM Events. 5 operations. Lead operation: List CRM Events. Self-contained Naftiko capability
    covering one Revert business surface.'
  tags:
  - Revert
  - CRM Events
  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-events
    baseUri: https://api.revert.dev
    description: Revert Unified API — CRM Events business capability. Self-contained, no shared references.
    resources:
    - name: crm-events
      path: /crm/events
      operations:
      - name: getcrmevents
        method: GET
        description: List CRM Events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcrmevent
        method: POST
        description: Create CRM Event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: crm-events-id
      path: /crm/events/{id}
      operations:
      - name: getcrmevent
        method: GET
        description: Get CRM Event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: updatecrmevent
        method: PATCH
        description: Update CRM Event
        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: deletecrmevent
        method: DELETE
        description: Delete CRM Event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: x-revert-api-token
      value: '{{env.REVERT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: unified-crm-events-rest
    port: 8080
    description: REST adapter for Revert Unified API — CRM Events. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/crm/events
      name: crm-events
      description: REST surface for crm-events.
      operations:
      - method: GET
        name: getcrmevents
        description: List CRM Events
        call: unified-crm-events.getcrmevents
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcrmevent
        description: Create CRM Event
        call: unified-crm-events.createcrmevent
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/crm/events/{id}
      name: crm-events-id
      description: REST surface for crm-events-id.
      operations:
      - method: GET
        name: getcrmevent
        description: Get CRM Event
        call: unified-crm-events.getcrmevent
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecrmevent
        description: Update CRM Event
        call: unified-crm-events.updatecrmevent
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecrmevent
        description: Delete CRM Event
        call: unified-crm-events.deletecrmevent
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: unified-crm-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for Revert Unified API — CRM Events. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-crm-events
      description: List CRM Events
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: unified-crm-events.getcrmevents
      outputParameters:
      - type: object
        mapping: $.
    - name: create-crm-event
      description: Create CRM Event
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: unified-crm-events.createcrmevent
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-crm-event
      description: Get CRM Event
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: unified-crm-events.getcrmevent
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-crm-event
      description: Update CRM Event
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: unified-crm-events.updatecrmevent
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-crm-event
      description: Delete CRM Event
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: unified-crm-events.deletecrmevent
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.