HubSpot · Capability

HubSpot CRM Contacts API — Contacts

HubSpot CRM Contacts API — Contacts. 6 operations. Lead operation: Hubspot List Contacts. Self-contained Naftiko capability covering one Hubspot business surface.

Run with Naftiko HubspotContacts

What You Can Do

GET
Listcontacts — Hubspot List Contacts
/v1/crm/v3/objects/contacts
POST
Createcontact — Hubspot Create a Contact
/v1/crm/v3/objects/contacts
POST
Searchcontacts — Hubspot Search Contacts
/v1/crm/v3/objects/contacts/search
GET
Getcontact — Hubspot Get a Contact
/v1/crm/v3/objects/contacts/{contactid}
PATCH
Updatecontact — Hubspot Update a Contact
/v1/crm/v3/objects/contacts/{contactid}
DELETE
Deletecontact — Hubspot Archive a Contact
/v1/crm/v3/objects/contacts/{contactid}

MCP Tools

hubspot-list-contacts

Hubspot List Contacts

read-only idempotent
hubspot-create-contact

Hubspot Create a Contact

hubspot-search-contacts

Hubspot Search Contacts

read-only
hubspot-get-contact

Hubspot Get a Contact

read-only idempotent
hubspot-update-contact

Hubspot Update a Contact

idempotent
hubspot-archive-contact

Hubspot Archive a Contact

idempotent

Capability Spec

crm-contacts-contacts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HubSpot CRM Contacts API — Contacts
  description: 'HubSpot CRM Contacts API — Contacts. 6 operations. Lead operation: Hubspot List Contacts. Self-contained Naftiko
    capability covering one Hubspot business surface.'
  tags:
  - Hubspot
  - Contacts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HUBSPOT_API_KEY: HUBSPOT_API_KEY
capability:
  consumes:
  - type: http
    namespace: crm-contacts-contacts
    baseUri: https://api.hubapi.com
    description: HubSpot CRM Contacts API — Contacts business capability. Self-contained, no shared references.
    resources:
    - name: crm-v3-objects-contacts
      path: /crm/v3/objects/contacts
      operations:
      - name: listcontacts
        method: GET
        description: Hubspot List Contacts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: The maximum number of results to return per page.
        - name: after
          in: query
          type: string
          description: The cursor for pagination to get the next page of results.
        - name: properties
          in: query
          type: string
          description: A comma-separated list of property names to return.
        - name: archived
          in: query
          type: boolean
          description: Whether to return archived contacts.
      - name: createcontact
        method: POST
        description: Hubspot 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: crm-v3-objects-contacts-search
      path: /crm/v3/objects/contacts/search
      operations:
      - name: searchcontacts
        method: POST
        description: Hubspot Search Contacts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: crm-v3-objects-contacts-contactId
      path: /crm/v3/objects/contacts/{contactId}
      operations:
      - name: getcontact
        method: GET
        description: Hubspot Get a Contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: contactId
          in: path
          type: string
          description: The ID of the contact to retrieve.
          required: true
        - name: properties
          in: query
          type: string
          description: A comma-separated list of property names to return.
        - name: archived
          in: query
          type: boolean
          description: Whether to return archived contacts.
      - name: updatecontact
        method: PATCH
        description: Hubspot Update a Contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: contactId
          in: path
          type: string
          description: The ID of the contact to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecontact
        method: DELETE
        description: Hubspot Archive a Contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: contactId
          in: path
          type: string
          description: The ID of the contact to archive.
          required: true
    authentication:
      type: bearer
      token: '{{env.HUBSPOT_API_KEY}}'
  exposes:
  - type: rest
    namespace: crm-contacts-contacts-rest
    port: 8080
    description: REST adapter for HubSpot CRM Contacts API — Contacts. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/crm/v3/objects/contacts
      name: crm-v3-objects-contacts
      description: REST surface for crm-v3-objects-contacts.
      operations:
      - method: GET
        name: listcontacts
        description: Hubspot List Contacts
        call: crm-contacts-contacts.listcontacts
        with:
          limit: rest.limit
          after: rest.after
          properties: rest.properties
          archived: rest.archived
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcontact
        description: Hubspot Create a Contact
        call: crm-contacts-contacts.createcontact
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/crm/v3/objects/contacts/search
      name: crm-v3-objects-contacts-search
      description: REST surface for crm-v3-objects-contacts-search.
      operations:
      - method: POST
        name: searchcontacts
        description: Hubspot Search Contacts
        call: crm-contacts-contacts.searchcontacts
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/crm/v3/objects/contacts/{contactid}
      name: crm-v3-objects-contacts-contactid
      description: REST surface for crm-v3-objects-contacts-contactId.
      operations:
      - method: GET
        name: getcontact
        description: Hubspot Get a Contact
        call: crm-contacts-contacts.getcontact
        with:
          contactId: rest.contactId
          properties: rest.properties
          archived: rest.archived
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecontact
        description: Hubspot Update a Contact
        call: crm-contacts-contacts.updatecontact
        with:
          contactId: rest.contactId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecontact
        description: Hubspot Archive a Contact
        call: crm-contacts-contacts.deletecontact
        with:
          contactId: rest.contactId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: crm-contacts-contacts-mcp
    port: 9090
    transport: http
    description: MCP adapter for HubSpot CRM Contacts API — Contacts. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: hubspot-list-contacts
      description: Hubspot List Contacts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: crm-contacts-contacts.listcontacts
      with:
        limit: tools.limit
        after: tools.after
        properties: tools.properties
        archived: tools.archived
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-create-contact
      description: Hubspot Create a Contact
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: crm-contacts-contacts.createcontact
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-search-contacts
      description: Hubspot Search Contacts
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: crm-contacts-contacts.searchcontacts
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-get-contact
      description: Hubspot Get a Contact
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: crm-contacts-contacts.getcontact
      with:
        contactId: tools.contactId
        properties: tools.properties
        archived: tools.archived
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-update-contact
      description: Hubspot Update a Contact
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: crm-contacts-contacts.updatecontact
      with:
        contactId: tools.contactId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-archive-contact
      description: Hubspot Archive a Contact
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: crm-contacts-contacts.deletecontact
      with:
        contactId: tools.contactId
      outputParameters:
      - type: object
        mapping: $.