HubSpot · Capability

HubSpot CRM Associations API — Batch Association Operations

HubSpot CRM Associations API — Batch Association Operations. 3 operations. Lead operation: Hubspot Batch Archive Associations. Self-contained Naftiko capability covering one Hubspot business surface.

Run with Naftiko HubspotBatch Association Operations

What You Can Do

POST
Batcharchiveassociations — Hubspot Batch Archive Associations
/v1/crm/v4/associations/{fromobjecttype}/{toobjecttype}/batch/archive
POST
Batchcreateassociations — Hubspot Batch Create Associations
/v1/crm/v4/associations/{fromobjecttype}/{toobjecttype}/batch/create
POST
Batchreadassociations — Hubspot Batch Read Associations for Multiple Objects
/v1/crm/v4/associations/{fromobjecttype}/{toobjecttype}/batch/read

MCP Tools

hubspot-batch-archive-associations

Hubspot Batch Archive Associations

hubspot-batch-create-associations

Hubspot Batch Create Associations

hubspot-batch-read-associations-multiple

Hubspot Batch Read Associations for Multiple Objects

Capability Spec

crm-associations-batch-association-operations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HubSpot CRM Associations API — Batch Association Operations
  description: 'HubSpot CRM Associations API — Batch Association Operations. 3 operations. Lead operation: Hubspot Batch Archive
    Associations. Self-contained Naftiko capability covering one Hubspot business surface.'
  tags:
  - Hubspot
  - Batch Association Operations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HUBSPOT_API_KEY: HUBSPOT_API_KEY
capability:
  consumes:
  - type: http
    namespace: crm-associations-batch-association-operations
    baseUri: https://api.hubapi.com
    description: HubSpot CRM Associations API — Batch Association Operations business capability. Self-contained, no shared
      references.
    resources:
    - name: crm-v4-associations-fromObjectType-toObjectType-batch-archive
      path: /crm/v4/associations/{fromObjectType}/{toObjectType}/batch/archive
      operations:
      - name: batcharchiveassociations
        method: POST
        description: Hubspot Batch Archive Associations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fromObjectType
          in: path
          type: string
          description: Type of source objects
          required: true
        - name: toObjectType
          in: path
          type: string
          description: Type of target objects
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: crm-v4-associations-fromObjectType-toObjectType-batch-create
      path: /crm/v4/associations/{fromObjectType}/{toObjectType}/batch/create
      operations:
      - name: batchcreateassociations
        method: POST
        description: Hubspot Batch Create Associations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fromObjectType
          in: path
          type: string
          description: Type of source objects
          required: true
        - name: toObjectType
          in: path
          type: string
          description: Type of target objects
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: crm-v4-associations-fromObjectType-toObjectType-batch-read
      path: /crm/v4/associations/{fromObjectType}/{toObjectType}/batch/read
      operations:
      - name: batchreadassociations
        method: POST
        description: Hubspot Batch Read Associations for Multiple Objects
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fromObjectType
          in: path
          type: string
          description: Type of source objects
          required: true
        - name: toObjectType
          in: path
          type: string
          description: Type of target objects
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.HUBSPOT_API_KEY}}'
  exposes:
  - type: rest
    namespace: crm-associations-batch-association-operations-rest
    port: 8080
    description: REST adapter for HubSpot CRM Associations API — Batch Association Operations. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/crm/v4/associations/{fromobjecttype}/{toobjecttype}/batch/archive
      name: crm-v4-associations-fromobjecttype-toobjecttype-batch-archive
      description: REST surface for crm-v4-associations-fromObjectType-toObjectType-batch-archive.
      operations:
      - method: POST
        name: batcharchiveassociations
        description: Hubspot Batch Archive Associations
        call: crm-associations-batch-association-operations.batcharchiveassociations
        with:
          fromObjectType: rest.fromObjectType
          toObjectType: rest.toObjectType
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/crm/v4/associations/{fromobjecttype}/{toobjecttype}/batch/create
      name: crm-v4-associations-fromobjecttype-toobjecttype-batch-create
      description: REST surface for crm-v4-associations-fromObjectType-toObjectType-batch-create.
      operations:
      - method: POST
        name: batchcreateassociations
        description: Hubspot Batch Create Associations
        call: crm-associations-batch-association-operations.batchcreateassociations
        with:
          fromObjectType: rest.fromObjectType
          toObjectType: rest.toObjectType
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/crm/v4/associations/{fromobjecttype}/{toobjecttype}/batch/read
      name: crm-v4-associations-fromobjecttype-toobjecttype-batch-read
      description: REST surface for crm-v4-associations-fromObjectType-toObjectType-batch-read.
      operations:
      - method: POST
        name: batchreadassociations
        description: Hubspot Batch Read Associations for Multiple Objects
        call: crm-associations-batch-association-operations.batchreadassociations
        with:
          fromObjectType: rest.fromObjectType
          toObjectType: rest.toObjectType
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: crm-associations-batch-association-operations-mcp
    port: 9090
    transport: http
    description: MCP adapter for HubSpot CRM Associations API — Batch Association Operations. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: hubspot-batch-archive-associations
      description: Hubspot Batch Archive Associations
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: crm-associations-batch-association-operations.batcharchiveassociations
      with:
        fromObjectType: tools.fromObjectType
        toObjectType: tools.toObjectType
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-batch-create-associations
      description: Hubspot Batch Create Associations
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: crm-associations-batch-association-operations.batchcreateassociations
      with:
        fromObjectType: tools.fromObjectType
        toObjectType: tools.toObjectType
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-batch-read-associations-multiple
      description: Hubspot Batch Read Associations for Multiple Objects
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: crm-associations-batch-association-operations.batchreadassociations
      with:
        fromObjectType: tools.fromObjectType
        toObjectType: tools.toObjectType
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.