Supaglue · Capability

Unified CRM API — Contacts

Unified CRM API — Contacts. 6 operations. Lead operation: Create contact. Self-contained Naftiko capability covering one Supaglue business surface.

Run with Naftiko SupaglueContacts

What You Can Do

POST
Createcontact — Create contact
/v1/contacts
GET
Listcontacts — List contacts
/v1/contacts
POST
Searchcontacts — Search contacts
/v1/contacts/search
POST
Upsertcontact — Upsert contact
/v1/contacts/upsert
GET
Getcontact — Get contact
/v1/contacts/{contact-id}
PATCH
Updatecontact — Update contact
/v1/contacts/{contact-id}

MCP Tools

create-contact

Create contact

list-contacts

List contacts

read-only idempotent
search-contacts

Search contacts

read-only
upsert-contact

Upsert contact

get-contact

Get contact

read-only idempotent
update-contact

Update contact

idempotent

Capability Spec

crm-contacts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Unified CRM API — Contacts
  description: 'Unified CRM API — Contacts. 6 operations. Lead operation: Create contact. Self-contained Naftiko capability
    covering one Supaglue business surface.'
  tags:
  - Supaglue
  - Contacts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SUPAGLUE_API_KEY: SUPAGLUE_API_KEY
capability:
  consumes:
  - type: http
    namespace: crm-contacts
    baseUri: https://api.supaglue.io/crm/v2
    description: Unified CRM API — Contacts business capability. Self-contained, no shared references.
    resources:
    - name: contacts
      path: /contacts
      operations:
      - name: createcontact
        method: POST
        description: Create contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listcontacts
        method: GET
        description: List contacts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: contacts-_search
      path: /contacts/_search
      operations:
      - name: searchcontacts
        method: POST
        description: Search contacts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: contacts-_upsert
      path: /contacts/_upsert
      operations:
      - name: upsertcontact
        method: POST
        description: Upsert contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: contacts-contact_id
      path: /contacts/{contact_id}
      operations:
      - name: getcontact
        method: GET
        description: Get contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecontact
        method: PATCH
        description: Update contact
        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-api-key
      value: '{{env.SUPAGLUE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: crm-contacts-rest
    port: 8080
    description: REST adapter for Unified CRM API — Contacts. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/contacts
      name: contacts
      description: REST surface for contacts.
      operations:
      - method: POST
        name: createcontact
        description: Create contact
        call: crm-contacts.createcontact
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listcontacts
        description: List contacts
        call: crm-contacts.listcontacts
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/search
      name: contacts-search
      description: REST surface for contacts-_search.
      operations:
      - method: POST
        name: searchcontacts
        description: Search contacts
        call: crm-contacts.searchcontacts
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/upsert
      name: contacts-upsert
      description: REST surface for contacts-_upsert.
      operations:
      - method: POST
        name: upsertcontact
        description: Upsert contact
        call: crm-contacts.upsertcontact
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/{contact-id}
      name: contacts-contact-id
      description: REST surface for contacts-contact_id.
      operations:
      - method: GET
        name: getcontact
        description: Get contact
        call: crm-contacts.getcontact
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecontact
        description: Update contact
        call: crm-contacts.updatecontact
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: crm-contacts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Unified CRM API — Contacts. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: create-contact
      description: Create contact
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: crm-contacts.createcontact
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-contacts
      description: List contacts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: crm-contacts.listcontacts
      outputParameters:
      - type: object
        mapping: $.
    - name: search-contacts
      description: Search contacts
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: crm-contacts.searchcontacts
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: upsert-contact
      description: Upsert contact
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: crm-contacts.upsertcontact
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-contact
      description: Get contact
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: crm-contacts.getcontact
      outputParameters:
      - type: object
        mapping: $.
    - name: update-contact
      description: Update contact
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: crm-contacts.updatecontact
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.