Loops · Capability

Loops OpenAPI Spec — Contacts

Loops OpenAPI Spec — Contacts. 6 operations. Lead operation: Create a contact. Self-contained Naftiko capability covering one Loops business surface.

Run with Naftiko LoopsContacts

What You Can Do

POST
Post — Create a contact
/v1/contacts/create
POST
Post — Delete a contact
/v1/contacts/delete
GET
Get — Find a contact
/v1/contacts/find
GET
Get — Get suppression status for a contact
/v1/contacts/suppression
DELETE
Delete — Remove a contact from suppression list
/v1/contacts/suppression
PUT
Put — Update a contact
/v1/contacts/update

MCP Tools

create-contact

Create a contact

delete-contact

Delete a contact

find-contact

Find a contact

read-only idempotent
get-suppression-status-contact

Get suppression status for a contact

read-only idempotent
remove-contact-suppression-list

Remove a contact from suppression list

idempotent
update-contact

Update a contact

idempotent

Capability Spec

loops-contacts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Loops OpenAPI Spec — Contacts
  description: 'Loops OpenAPI Spec — Contacts. 6 operations. Lead operation: Create a contact. Self-contained Naftiko capability
    covering one Loops business surface.'
  tags:
  - Loops
  - Contacts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LOOPS_API_KEY: LOOPS_API_KEY
capability:
  consumes:
  - type: http
    namespace: loops-contacts
    baseUri: https://app.loops.so/api/v1
    description: Loops OpenAPI Spec — Contacts business capability. Self-contained, no shared references.
    resources:
    - name: contacts-create
      path: /contacts/create
      operations:
      - name: post
        method: POST
        description: Create a contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: contacts-delete
      path: /contacts/delete
      operations:
      - name: post
        method: POST
        description: Delete a contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: contacts-find
      path: /contacts/find
      operations:
      - name: get
        method: GET
        description: Find a contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: email
          in: query
          type: string
          description: Email address (URI-encoded)
        - name: userId
          in: query
          type: string
    - name: contacts-suppression
      path: /contacts/suppression
      operations:
      - name: get
        method: GET
        description: Get suppression status for a contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: email
          in: query
          type: string
          description: Email address (URI-encoded)
        - name: userId
          in: query
          type: string
      - name: delete
        method: DELETE
        description: Remove a contact from suppression list
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: email
          in: query
          type: string
          description: Email address (URI-encoded)
        - name: userId
          in: query
          type: string
    - name: contacts-update
      path: /contacts/update
      operations:
      - name: put
        method: PUT
        description: Update a contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.LOOPS_API_KEY}}'
  exposes:
  - type: rest
    namespace: loops-contacts-rest
    port: 8080
    description: REST adapter for Loops OpenAPI Spec — Contacts. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/contacts/create
      name: contacts-create
      description: REST surface for contacts-create.
      operations:
      - method: POST
        name: post
        description: Create a contact
        call: loops-contacts.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/delete
      name: contacts-delete
      description: REST surface for contacts-delete.
      operations:
      - method: POST
        name: post
        description: Delete a contact
        call: loops-contacts.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/find
      name: contacts-find
      description: REST surface for contacts-find.
      operations:
      - method: GET
        name: get
        description: Find a contact
        call: loops-contacts.get
        with:
          email: rest.email
          userId: rest.userId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/suppression
      name: contacts-suppression
      description: REST surface for contacts-suppression.
      operations:
      - method: GET
        name: get
        description: Get suppression status for a contact
        call: loops-contacts.get
        with:
          email: rest.email
          userId: rest.userId
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Remove a contact from suppression list
        call: loops-contacts.delete
        with:
          email: rest.email
          userId: rest.userId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/update
      name: contacts-update
      description: REST surface for contacts-update.
      operations:
      - method: PUT
        name: put
        description: Update a contact
        call: loops-contacts.put
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: loops-contacts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Loops OpenAPI Spec — Contacts. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: create-contact
      description: Create a contact
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: loops-contacts.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-contact
      description: Delete a contact
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: loops-contacts.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: find-contact
      description: Find a contact
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: loops-contacts.get
      with:
        email: tools.email
        userId: tools.userId
      outputParameters:
      - type: object
        mapping: $.
    - name: get-suppression-status-contact
      description: Get suppression status for a contact
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: loops-contacts.get
      with:
        email: tools.email
        userId: tools.userId
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-contact-suppression-list
      description: Remove a contact from suppression list
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: loops-contacts.delete
      with:
        email: tools.email
        userId: tools.userId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-contact
      description: Update a contact
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: loops-contacts.put
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.