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 AutomationSalesHubSpotArazzoWorkflows

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: associationStatus, companyId, contactId
1
createContact
{$sourceDescriptions.contactsApi.url}#/paths/~1crm~1objects~12026-03~1contacts/post
Create the contact record using the supplied contact properties.
2
createCompany
{$sourceDescriptions.companiesApi.url}#/paths/~1crm~1objects~12026-03~1companies/post
Create the company record using the supplied company properties.
3
associateContactToCompany
{$sourceDescriptions.associationsApi.url}#/paths/~1crm~1objects~12026-03~1{fromObjectType}~1{fromObjectId}~1associations~1default~1{toObjectType}~1{toObjectId}/put
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/_original/hubspot-crm-associations-openapi.json
  type: openapi
- name: companiesApi
  url: ../openapi/_original/hubspot-crm-companies-openapi.json
  type: openapi
- name: contactsApi
  url: ../openapi/_original/hubspot-crm-contacts-openapi.json
  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.
    operationPath: '{$sourceDescriptions.contactsApi.url}#/paths/~1crm~1objects~12026-03~1contacts/post'
    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.
    operationPath: '{$sourceDescriptions.companiesApi.url}#/paths/~1crm~1objects~12026-03~1companies/post'
    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.
    operationPath: '{$sourceDescriptions.associationsApi.url}#/paths/~1crm~1objects~12026-03~1{fromObjectType}~1{fromObjectId}~1associations~1default~1{toObjectType}~1{toObjectId}/put'
    parameters:
    - name: fromObjectType
      in: path
      value: contacts
    - name: fromObjectId
      in: path
      value: $steps.createContact.outputs.contactId
    - name: toObjectType
      in: path
      value: companies
    - name: toObjectId
      in: path
      value: $steps.createCompany.outputs.companyId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      associationStatus: $response.body#/status
  outputs:
    contactId: $steps.createContact.outputs.contactId
    companyId: $steps.createCompany.outputs.companyId
    associationStatus: $steps.associateContactToCompany.outputs.associationStatus

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"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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