> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hubspot Create List: Inputs, Cost & CLI Example

> Create a HubSpot list/segment, including active DYNAMIC segments with filters. Includes inputs, outputs, costs, and Deepline CLI examples for GTM automation.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=hubspot_create_list:{"name":"{{name}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                       | Type                                  | Required | Default | Description                                                                                                                                                                              |
| -------------------------- | ------------------------------------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.name`             | `string`                              | Yes      |         | Public HubSpot list/segment name.                                                                                                                                                        |
| `payload.object_type_id`   | `string`                              | No       | `"0-1"` | HubSpot object type ID. Defaults to `0-1` for contacts.                                                                                                                                  |
| `payload.processing_type`  | `"MANUAL" \| "DYNAMIC" \| "SNAPSHOT"` | No       |         | HubSpot segment processing type. Omit for manual lists without filters; filtered list creates default to `DYNAMIC`.                                                                      |
| `payload.filter_branch`    | `record`                              | No       |         | Advanced HubSpot list filterBranch escape hatch for association, event, or other filters Deepline does not model directly. Prefer `property_filters` for property-based active segments. |
| `payload.property_filters` | `array`                               | No       |         | Structured property filters combined as one AND group under HubSpot's required OR root. Use `hubspot_fetch_properties` first to discover criteria.                                       |

### Allowed values

| Field                     | Allowed values                  |
| ------------------------- | ------------------------------- |
| `payload.processing_type` | `MANUAL`, `DYNAMIC`, `SNAPSHOT` |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Create a HubSpot list/segment. Defaults to a manual contact list; use `DYNAMIC` with `property_filters` for a property-based active segment.",
    "properties": {
      "name": {
        "type": "string",
        "description": "Public HubSpot list/segment name."
      },
      "object_type_id": {
        "type": "string",
        "description": "HubSpot object type ID. Defaults to `0-1` for contacts.",
        "default": "0-1"
      },
      "processing_type": {
        "type": "string",
        "description": "HubSpot segment processing type. Omit for manual lists without filters; filtered list creates default to `DYNAMIC`.",
        "enum": [
          "MANUAL",
          "DYNAMIC",
          "SNAPSHOT"
        ]
      },
      "filter_branch": {
        "type": "object",
        "description": "Advanced HubSpot list filterBranch escape hatch for association, event, or other filters Deepline does not model directly. Prefer `property_filters` for property-based active segments.",
        "additionalProperties": {}
      },
      "property_filters": {
        "type": "array",
        "description": "Structured property filters combined as one AND group under HubSpot's required OR root. Use `hubspot_fetch_properties` first to discover criteria.",
        "items": {
          "type": "object",
          "description": "A structured HubSpot property filter for segment creation. Fetch object properties first to choose valid criteria.",
          "properties": {
            "property": {
              "type": "string",
              "description": "HubSpot property internal name. Use `hubspot_fetch_properties` for the selected object type to discover valid names and option values."
            },
            "operation_type": {
              "type": "string",
              "description": "HubSpot segment filter operation type. Choose based on the property metadata returned by `hubspot_fetch_properties`.",
              "enum": [
                "ALL_PROPERTY",
                "MULTISTRING",
                "NUMBER",
                "BOOL",
                "ENUMERATION",
                "STRING"
              ]
            },
            "operator": {
              "type": "string",
              "description": "HubSpot operator for the operation type, for example `IS_KNOWN`, `IS_EQUAL_TO`, `CONTAINS`, `IS_ANY_OF`, or `IS_BETWEEN`."
            },
            "value": {
              "description": "Single comparison value for scalar operations."
            },
            "values": {
              "type": "array",
              "description": "Comparison values for multi-value operations such as MULTISTRING or ENUMERATION.",
              "items": {}
            },
            "lower_bound": {
              "description": "Lower bound for ranged operations."
            },
            "upper_bound": {
              "description": "Upper bound for ranged operations."
            },
            "include_objects_with_no_value_set": {
              "type": "boolean",
              "description": "Whether HubSpot should include records where the property has no value."
            }
          },
          "required": [
            "property",
            "operation_type",
            "operator"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "name"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `record` | Yes      |         | Provider response payload.                     |
| `result.meta` | `record` | No       |         | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "additionalProperties": {}
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute hubspot_create_list --payload '{
  "name": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Provider API Context

<details>
  <summary>Show provider reference (optional)</summary>

  ```md theme={null}
  Source: https://developers.hubspot.com/docs/api-reference/crm-lists-v3/lists/post-crm-v3-lists-

  specs/crm-lists-v3.json post /crm/v3/lists/
  Create a new list with the provided object list definition.

  &lt;AccordionGroup>
    &lt;Accordion title="Supported products" icon="cubes">
      &lt;SupportedProducts />
    &lt;/Accordion>

    &lt;Accordion title="Required Scopes" icon="key">
      &lt;ScopesList />
    &lt;/Accordion>
  &lt;/AccordionGroup>
  ```
</details>

## Cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.
* Billing mode: `no_bill`.
