HubSpot · Arazzo Workflow

HubSpot Create a Contact With a Company

Version 1.0.0

Create a contact, create a company, and associate the two records.

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

Provider

hubspot

Workflows

create-contact-with-company
Create a contact and a company, then associate them.
Creates a contact and a company from the supplied property maps and then establishes a contact-to-company association between the two new records.
3 steps inputs: associationType, companyProperties, contactProperties outputs: associationId, companyId, contactId
1
createContact
createContact
Create the contact record using the supplied contact properties.
2
createCompany
createCompany
Create the company record using the supplied company properties.
3
associateContactToCompany
createContactAssociation
Associate the new contact with the new company so the contact appears under the company record.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: HubSpot Create a Contact With a Company
  summary: Create a contact, create a company, and associate the two records.
  description: >-
    Stands up a new contact and a new company in HubSpot CRM and links them
    together so the contact appears under the company. The workflow creates the
    contact record, creates the company record, and then writes the
    contact-to-company association using the supplied association type. 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
  x-realizes-capability-ids:
  - BC-420.10
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-420.10
      capability_name: Customer Data Management
      spec: hubspot-contacts-api-openapi.yml
      confidence: 0.82
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: associationsApi
  url: ../openapi/hubspot-associations-api-openapi.yml
  type: openapi
- name: companiesApi
  url: ../openapi/hubspot-companies-api-openapi.yml
  type: openapi
- name: contactsApi
  url: ../openapi/hubspot-contacts-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-contact-with-company
  summary: Create a contact and a company, then associate them.
  description: >-
    Creates a contact and a company from the supplied property maps and then
    establishes a contact-to-company association between the two new records.
  inputs:
    type: object
    required:
    - contactProperties
    - companyProperties
    properties:
      contactProperties:
        type: object
        description: The map of contact property name/value pairs to write.
      companyProperties:
        type: object
        description: The map of company property name/value pairs to write.
      associationType:
        type: string
        description: The association type linking the contact to the company.
        default: company
  steps:
  - stepId: createContact
    description: >-
      Create the contact record using the supplied contact properties.
    operationId: createContact
    requestBody:
      contentType: application/json
      payload:
        properties: $inputs.contactProperties
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      contactId: $response.body#/id
  - stepId: createCompany
    description: >-
      Create the company record using the supplied company properties.
    operationId: createCompany
    requestBody:
      contentType: application/json
      payload:
        properties: $inputs.companyProperties
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      companyId: $response.body#/id
  - stepId: associateContactToCompany
    description: >-
      Associate the new contact with the new company so the contact appears
      under the company record.
    operationId: createContactAssociation
    parameters:
    - name: contactId
      in: path
      value: $steps.createContact.outputs.contactId
    - name: toObjectType
      in: path
      value: companies
    - name: toObjectId
      in: path
      value: $steps.createCompany.outputs.companyId
    - name: associationType
      in: path
      value: $inputs.associationType
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      associationId: $response.body#/id
      associationType: $response.body#/type
  outputs:
    contactId: $steps.createContact.outputs.contactId
    companyId: $steps.createCompany.outputs.companyId
    associationId: $steps.associateContactToCompany.outputs.associationId

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-create-contact-with-company-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.