HubSpot · Arazzo Workflow

HubSpot Associate Two CRM Records

Version 1.0.0

Create an association between two CRM objects, then list it back to verify.

1 workflow 1 source API 1 provider
View Spec View on GitHub AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationSalesArazzoWorkflows

Provider

hubspot

Workflows

associate-records
Create an association between two CRM objects and list it back.
Creates a typed association from a source CRM object to a target CRM object, then reads the source object's associations to confirm the relationship.
2 steps inputs: associationCategory, associationTypeId, fromObjectId, fromObjectType, toObjectId, toObjectType outputs: associatedTo, fromId
1
createAssociation
createObjectAssociation
Create a typed association from the source object to the target object using the supplied association category and type ID.
2
listAssociations
listObjectAssociations
List the source object's associations to the target object type to verify the association was created.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: HubSpot Associate Two CRM Records
  summary: Create an association between two CRM objects, then list it back to verify.
  description: >-
    Establishes and confirms a relationship between any two HubSpot CRM records
    using the v4 associations API. The workflow creates an association from a
    source object to a target object using the supplied association type, and
    then lists the source object's associations to the target object type to
    verify the link was written. Every step spells out its request inline so the
    flow can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
sourceDescriptions:
- name: objectAssociationsApi
  url: ../openapi/hubspot-object-associations-api-openapi.yml
  type: openapi
workflows:
- workflowId: associate-records
  summary: Create an association between two CRM objects and list it back.
  description: >-
    Creates a typed association from a source CRM object to a target CRM object,
    then reads the source object's associations to confirm the relationship.
  inputs:
    type: object
    required:
    - fromObjectType
    - fromObjectId
    - toObjectType
    - toObjectId
    - associationTypeId
    properties:
      fromObjectType:
        type: string
        description: The type of the source object (e.g. contacts, companies, deals).
      fromObjectId:
        type: string
        description: The ID of the source object.
      toObjectType:
        type: string
        description: The type of the target object.
      toObjectId:
        type: string
        description: The ID of the target object.
      associationTypeId:
        type: integer
        description: The HubSpot association type ID describing the relationship.
      associationCategory:
        type: string
        description: The category of the association type.
        default: HUBSPOT_DEFINED
  steps:
  - stepId: createAssociation
    description: >-
      Create a typed association from the source object to the target object
      using the supplied association category and type ID.
    operationId: createObjectAssociation
    parameters:
    - name: fromObjectType
      in: path
      value: $inputs.fromObjectType
    - name: fromObjectId
      in: path
      value: $inputs.fromObjectId
    - name: toObjectType
      in: path
      value: $inputs.toObjectType
    requestBody:
      contentType: application/json
      payload:
        to:
          id: $inputs.toObjectId
        types:
        - associationCategory: $inputs.associationCategory
          associationTypeId: $inputs.associationTypeId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      fromId: $response.body#/from/id
      associatedTo: $response.body#/to
  - stepId: listAssociations
    description: >-
      List the source object's associations to the target object type to verify
      the association was created.
    operationId: listObjectAssociations
    parameters:
    - name: fromObjectType
      in: path
      value: $inputs.fromObjectType
    - name: fromObjectId
      in: path
      value: $inputs.fromObjectId
    - name: toObjectType
      in: path
      value: $inputs.toObjectType
    - name: limit
      in: query
      value: 100
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      associatedTo: $response.body#/to
  outputs:
    fromId: $steps.createAssociation.outputs.fromId
    associatedTo: $steps.listAssociations.outputs.associatedTo

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/hubspot-associate-records-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.