HubSpot · Arazzo Workflow

HubSpot Create a Deal With Associations

Version 1.0.0

Create a deal and associate it to an existing contact and company.

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

Provider

hubspot

Workflows

create-deal-with-associations
Create a deal and associate it to a contact and a company.
Creates a deal from the supplied property map and then associates it to an existing contact record and an existing company record.
3 steps inputs: companyAssociationType, companyId, contactAssociationType, contactId, dealProperties outputs: companyAssociationId, contactAssociationId, dealId
1
createDeal
createDeal
Create the deal record using the supplied deal properties such as dealname, amount, pipeline, and dealstage.
2
associateDealToContact
createDealAssociation
Associate the new deal with the supplied contact record.
3
associateDealToCompany
createDealAssociation
Associate the new deal with the supplied company record.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: HubSpot Create a Deal With Associations
  summary: Create a deal and associate it to an existing contact and company.
  description: >-
    Opens a new deal in HubSpot CRM and wires it to the people and accounts it
    belongs to. The workflow creates the deal record from the supplied
    properties and then writes a deal-to-contact association followed by a
    deal-to-company association. 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-410.30
  - 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-410.30
      capability_name: Opportunity & Pipeline Management
      spec: hubspot-deals-api-openapi.yml
      confidence: 0.82
    - capability_id: BC-420.10
      capability_name: Customer Data Management
      spec: hubspot-associations-api-openapi.yml
      confidence: 0.7
    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: dealsApi
  url: ../openapi/hubspot-deals-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-deal-with-associations
  summary: Create a deal and associate it to a contact and a company.
  description: >-
    Creates a deal from the supplied property map and then associates it to an
    existing contact record and an existing company record.
  inputs:
    type: object
    required:
    - dealProperties
    - contactId
    - companyId
    properties:
      dealProperties:
        type: object
        description: The map of deal property name/value pairs to write.
      contactId:
        type: string
        description: The ID of the contact to associate with the deal.
      companyId:
        type: string
        description: The ID of the company to associate with the deal.
      contactAssociationType:
        type: string
        description: The association type linking the deal to the contact.
        default: contact
      companyAssociationType:
        type: string
        description: The association type linking the deal to the company.
        default: company
  steps:
  - stepId: createDeal
    description: >-
      Create the deal record using the supplied deal properties such as
      dealname, amount, pipeline, and dealstage.
    operationId: createDeal
    requestBody:
      contentType: application/json
      payload:
        properties: $inputs.dealProperties
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      dealId: $response.body#/id
  - stepId: associateDealToContact
    description: >-
      Associate the new deal with the supplied contact record.
    operationId: createDealAssociation
    parameters:
    - name: dealId
      in: path
      value: $steps.createDeal.outputs.dealId
    - name: toObjectType
      in: path
      value: contacts
    - name: toObjectId
      in: path
      value: $inputs.contactId
    - name: associationType
      in: path
      value: $inputs.contactAssociationType
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      contactAssociationId: $response.body#/id
  - stepId: associateDealToCompany
    description: >-
      Associate the new deal with the supplied company record.
    operationId: createDealAssociation
    parameters:
    - name: dealId
      in: path
      value: $steps.createDeal.outputs.dealId
    - name: toObjectType
      in: path
      value: companies
    - name: toObjectId
      in: path
      value: $inputs.companyId
    - name: associationType
      in: path
      value: $inputs.companyAssociationType
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      companyAssociationId: $response.body#/id
  outputs:
    dealId: $steps.createDeal.outputs.dealId
    contactAssociationId: $steps.associateDealToContact.outputs.contactAssociationId
    companyAssociationId: $steps.associateDealToCompany.outputs.companyAssociationId

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-deal-with-associations-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.