> ## 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

> Create a HubSpot list/segment, including active DYNAMIC segments with filters. Includes SDK V2 examples, input constraints, response fields, and Deepline cost.

Create a HubSpot list/segment, including active DYNAMIC segments with filters.

> [!NOTE]
>
> Tool ID: `hubspot_create_list`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'hubspot_create_list',
  {
    "name": "Example"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute hubspot_create_list --input '{
  "name": "Example"
}' --json
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe hubspot_create_list --json` for the complete live contract.

## Input reference

Create a HubSpot list/segment. Defaults to a manual contact list. Use `DYNAMIC` with `property_filters` for a property-based active segment.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `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`. Allowed: `MANUAL`, `DYNAMIC`, `SNAPSHOT`. |
| `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. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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 reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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>

## Deepline cost

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

## Related documentation

* [HubSpot provider guide](https://deepline.com/docs/providers/hubspot/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.