Mews · Capability

Connector API — Customers

Connector API — Customers. 8 operations. Lead operation: Add customer. Self-contained Naftiko capability covering one Mews business surface.

Run with Naftiko MewsCustomers

What You Can Do

POST
Customersadd — Add customer
/v1/api/connector/v1/customers/add
POST
Customersaddfile — Add customer file
/v1/api/connector/v1/customers/addfile
POST
Customersgetall — Get all customers
/v1/api/connector/v1/customers/getall
POST
Customersgetopenitems — Get customers open items
/v1/api/connector/v1/customers/getopenitems
POST
Customersgetrelationships — Get customers relationships
/v1/api/connector/v1/customers/getrelationships
POST
Customersmerge — Merge customers
/v1/api/connector/v1/customers/merge
POST
Customerssearch — Search customers
/v1/api/connector/v1/customers/search
POST
Customersupdate — Update customer
/v1/api/connector/v1/customers/update

MCP Tools

add-customer

Add customer

add-customer-file

Add customer file

get-all-customers

Get all customers

read-only
get-customers-open-items

Get customers open items

read-only
get-customers-relationships

Get customers relationships

read-only
merge-customers

Merge customers

search-customers

Search customers

read-only
update-customer

Update customer

Capability Spec

connector-customers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Connector API — Customers
  description: 'Connector API — Customers. 8 operations. Lead operation: Add customer. Self-contained Naftiko capability covering
    one Mews business surface.'
  tags:
  - Mews
  - Customers
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MEWS_API_KEY: MEWS_API_KEY
capability:
  consumes:
  - type: http
    namespace: connector-customers
    baseUri: https://api.mews.com
    description: Connector API — Customers business capability. Self-contained, no shared references.
    resources:
    - name: api-connector-v1-customers-add
      path: /api/connector/v1/customers/add
      operations:
      - name: customersadd
        method: POST
        description: Add customer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-customers-addFile
      path: /api/connector/v1/customers/addFile
      operations:
      - name: customersaddfile
        method: POST
        description: Add customer file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-customers-getAll
      path: /api/connector/v1/customers/getAll
      operations:
      - name: customersgetall
        method: POST
        description: Get all customers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-customers-getOpenItems
      path: /api/connector/v1/customers/getOpenItems
      operations:
      - name: customersgetopenitems
        method: POST
        description: Get customers open items
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-customers-getRelationships
      path: /api/connector/v1/customers/getRelationships
      operations:
      - name: customersgetrelationships
        method: POST
        description: Get customers relationships
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-customers-merge
      path: /api/connector/v1/customers/merge
      operations:
      - name: customersmerge
        method: POST
        description: Merge customers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-customers-search
      path: /api/connector/v1/customers/search
      operations:
      - name: customerssearch
        method: POST
        description: Search customers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-customers-update
      path: /api/connector/v1/customers/update
      operations:
      - name: customersupdate
        method: POST
        description: Update customer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: connector-customers-rest
    port: 8080
    description: REST adapter for Connector API — Customers. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/connector/v1/customers/add
      name: api-connector-v1-customers-add
      description: REST surface for api-connector-v1-customers-add.
      operations:
      - method: POST
        name: customersadd
        description: Add customer
        call: connector-customers.customersadd
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/customers/addfile
      name: api-connector-v1-customers-addfile
      description: REST surface for api-connector-v1-customers-addFile.
      operations:
      - method: POST
        name: customersaddfile
        description: Add customer file
        call: connector-customers.customersaddfile
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/customers/getall
      name: api-connector-v1-customers-getall
      description: REST surface for api-connector-v1-customers-getAll.
      operations:
      - method: POST
        name: customersgetall
        description: Get all customers
        call: connector-customers.customersgetall
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/customers/getopenitems
      name: api-connector-v1-customers-getopenitems
      description: REST surface for api-connector-v1-customers-getOpenItems.
      operations:
      - method: POST
        name: customersgetopenitems
        description: Get customers open items
        call: connector-customers.customersgetopenitems
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/customers/getrelationships
      name: api-connector-v1-customers-getrelationships
      description: REST surface for api-connector-v1-customers-getRelationships.
      operations:
      - method: POST
        name: customersgetrelationships
        description: Get customers relationships
        call: connector-customers.customersgetrelationships
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/customers/merge
      name: api-connector-v1-customers-merge
      description: REST surface for api-connector-v1-customers-merge.
      operations:
      - method: POST
        name: customersmerge
        description: Merge customers
        call: connector-customers.customersmerge
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/customers/search
      name: api-connector-v1-customers-search
      description: REST surface for api-connector-v1-customers-search.
      operations:
      - method: POST
        name: customerssearch
        description: Search customers
        call: connector-customers.customerssearch
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/customers/update
      name: api-connector-v1-customers-update
      description: REST surface for api-connector-v1-customers-update.
      operations:
      - method: POST
        name: customersupdate
        description: Update customer
        call: connector-customers.customersupdate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: connector-customers-mcp
    port: 9090
    transport: http
    description: MCP adapter for Connector API — Customers. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: add-customer
      description: Add customer
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-customers.customersadd
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: add-customer-file
      description: Add customer file
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-customers.customersaddfile
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-all-customers
      description: Get all customers
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: connector-customers.customersgetall
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-customers-open-items
      description: Get customers open items
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: connector-customers.customersgetopenitems
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-customers-relationships
      description: Get customers relationships
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: connector-customers.customersgetrelationships
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: merge-customers
      description: Merge customers
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-customers.customersmerge
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: search-customers
      description: Search customers
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: connector-customers.customerssearch
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-customer
      description: Update customer
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-customers.customersupdate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.