Close · Capability

API Endpoints — subpackage_contacts

API Endpoints — subpackage_contacts. 5 operations. Lead operation: List contacts. Self-contained Naftiko capability covering one Close business surface.

Run with Naftiko Closesubpackage_contacts

What You Can Do

GET
List — List contacts
/v1/contact
POST
Create — Create a new contact
/v1/contact
GET
Get — Fetch a single contact
/v1/contact/{id}
PUT
Update — Update an existing contact
/v1/contact/{id}
DELETE
Delete — Delete a contact
/v1/contact/{id}

MCP Tools

list-contacts

List contacts

read-only idempotent
create-new-contact

Create a new contact

fetch-single-contact

Fetch a single contact

read-only idempotent
update-existing-contact

Update an existing contact

idempotent
delete-contact

Delete a contact

idempotent

Capability Spec

close-subpackage-contacts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Endpoints — subpackage_contacts
  description: 'API Endpoints — subpackage_contacts. 5 operations. Lead operation: List contacts. Self-contained Naftiko capability
    covering one Close business surface.'
  tags:
  - Close
  - subpackage_contacts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CLOSE_API_KEY: CLOSE_API_KEY
capability:
  consumes:
  - type: http
    namespace: close-subpackage-contacts
    baseUri: https://api.close.com/api/v1
    description: API Endpoints — subpackage_contacts business capability. Self-contained, no shared references.
    resources:
    - name: contact
      path: /contact/
      operations:
      - name: list
        method: GET
        description: List contacts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: _limit
          in: query
          type: integer
          description: Number of results to return.
        - name: _skip
          in: query
          type: integer
          description: Number of results to skip before returning, for pagination.
        - name: _fields
          in: query
          type: string
          description: Comma-separated list of fields to include in the response.
        - name: lead_id
          in: query
          type: string
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
      - name: create
        method: POST
        description: Create a new contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: _fields
          in: query
          type: string
          description: Comma-separated list of fields to include in the response.
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: contact-id
      path: /contact/{id}/
      operations:
      - name: get
        method: GET
        description: Fetch a single contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: _fields
          in: query
          type: string
          description: Comma-separated list of fields to include in the response.
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
      - name: update
        method: PUT
        description: Update an existing contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: _fields
          in: query
          type: string
          description: Comma-separated list of fields to include in the response.
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: delete
        method: DELETE
        description: Delete a contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
    authentication:
      type: bearer
      token: '{{env.CLOSE_API_KEY}}'
  exposes:
  - type: rest
    namespace: close-subpackage-contacts-rest
    port: 8080
    description: REST adapter for API Endpoints — subpackage_contacts. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/contact
      name: contact
      description: REST surface for contact.
      operations:
      - method: GET
        name: list
        description: List contacts
        call: close-subpackage-contacts.list
        with:
          _limit: rest._limit
          _skip: rest._skip
          _fields: rest._fields
          lead_id: rest.lead_id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: create
        description: Create a new contact
        call: close-subpackage-contacts.create
        with:
          _fields: rest._fields
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contact/{id}
      name: contact-id
      description: REST surface for contact-id.
      operations:
      - method: GET
        name: get
        description: Fetch a single contact
        call: close-subpackage-contacts.get
        with:
          id: rest.id
          _fields: rest._fields
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: update
        description: Update an existing contact
        call: close-subpackage-contacts.update
        with:
          id: rest.id
          _fields: rest._fields
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete a contact
        call: close-subpackage-contacts.delete
        with:
          id: rest.id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: close-subpackage-contacts-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Endpoints — subpackage_contacts. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-contacts
      description: List contacts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: close-subpackage-contacts.list
      with:
        _limit: tools._limit
        _skip: tools._skip
        _fields: tools._fields
        lead_id: tools.lead_id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: create-new-contact
      description: Create a new contact
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: close-subpackage-contacts.create
      with:
        _fields: tools._fields
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fetch-single-contact
      description: Fetch a single contact
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: close-subpackage-contacts.get
      with:
        id: tools.id
        _fields: tools._fields
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: update-existing-contact
      description: Update an existing contact
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: close-subpackage-contacts.update
      with:
        id: tools.id
        _fields: tools._fields
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-contact
      description: Delete a contact
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: close-subpackage-contacts.delete
      with:
        id: tools.id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.