HubSpot · Arazzo Workflow

HubSpot Search and Add to a List

Version 1.0.0

Search CRM objects with a filter, then add the matches to a static list.

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

Provider

hubspot

Workflows

search-and-add-to-list
Search CRM objects by a property filter and add a match to a static list.
Searches the supplied CRM object type for a record matching a property filter, then adds the matched record to the supplied static list.
2 steps inputs: filterOperator, filterProperty, filterValue, listId, objectType outputs: matchedRecordId, recordIdsAdded
1
searchObjects
searchCRMObjects
Search the supplied CRM object type for records where the filter property matches the supplied value.
2
addToList
addListMembers
Add the matched record to the supplied static list by its record ID.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: HubSpot Search and Add to a List
  summary: Search CRM objects with a filter, then add the matches to a static list.
  description: >-
    Builds a targeted segment in HubSpot CRM. The workflow runs a search against
    a CRM object type using a single property filter, captures the matching
    record ID, and then adds that record to a static list by its ID. 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.20
  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.20
      capability_name: Customer Segmentation Management
      spec: hubspot-memberships-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: membershipsApi
  url: ../openapi/hubspot-memberships-api-openapi.yml
  type: openapi
- name: searchApi
  url: ../openapi/hubspot-search-api-openapi.yml
  type: openapi
workflows:
- workflowId: search-and-add-to-list
  summary: Search CRM objects by a property filter and add a match to a static list.
  description: >-
    Searches the supplied CRM object type for a record matching a property
    filter, then adds the matched record to the supplied static list.
  inputs:
    type: object
    required:
    - objectType
    - filterProperty
    - filterValue
    - listId
    properties:
      objectType:
        type: string
        description: >-
          The CRM object type to search (e.g. contacts, companies, deals,
          tickets).
      filterProperty:
        type: string
        description: The property name to filter the search on (e.g. email).
      filterValue:
        type: string
        description: The value the filter property must equal.
      listId:
        type: string
        description: The ID of the static list to add the matched record to.
      filterOperator:
        type: string
        description: The filter operator to apply against the property value.
        default: EQ
  steps:
  - stepId: searchObjects
    description: >-
      Search the supplied CRM object type for records where the filter property
      matches the supplied value.
    operationId: searchCRMObjects
    parameters:
    - name: objectType
      in: path
      value: $inputs.objectType
    requestBody:
      contentType: application/json
      payload:
        filterGroups:
        - filters:
          - propertyName: $inputs.filterProperty
            operator: $inputs.filterOperator
            value: $inputs.filterValue
        limit: 100
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      total: $response.body#/total
      matchedRecordId: $response.body#/results/0/id
    onSuccess:
    - name: matchesFound
      type: goto
      stepId: addToList
      criteria:
      - context: $response.body
        condition: $.results.length > 0
        type: jsonpath
  - stepId: addToList
    description: >-
      Add the matched record to the supplied static list by its record ID.
    operationId: addListMembers
    parameters:
    - name: listId
      in: path
      value: $inputs.listId
    requestBody:
      contentType: application/json
      payload:
        recordIdsToAdd:
        - $steps.searchObjects.outputs.matchedRecordId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      recordIdsAdded: $response.body#/recordIdsAdded
      recordIdsAlreadyMember: $response.body#/recordIdsAlreadyMember
  outputs:
    matchedRecordId: $steps.searchObjects.outputs.matchedRecordId
    recordIdsAdded: $steps.addToList.outputs.recordIdsAdded

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-search-and-add-to-list-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.