> ## 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 List Campaigns: Inputs, Cost & CLI Example

> List marketing campaigns with optional filters and paging. Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## 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_list_campaigns:{}' --json
```

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

## Input Schema

| Name                   | Type      | Required | Default | Description                                                     |
| ---------------------- | --------- | -------- | ------- | --------------------------------------------------------------- |
| `payload.name`         | `string`  | No       |         | Filter campaigns by name.                                       |
| `payload.sort`         | `string`  | No       |         | Sort order, for example `-hs_lastmodifieddate`.                 |
| `payload.properties`   | `array`   | No       |         | Campaign properties to return.                                  |
| `payload.limit`        | `integer` | No       |         | Maximum results to return. HubSpot allows values from 1 to 100. |
| `payload.after`        | `string`  | No       |         | Forward paging cursor.                                          |
| `payload.before`       | `string`  | No       |         | Backward paging cursor.                                         |
| `payload.query_params` | `record`  | No       |         |                                                                 |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "List marketing campaigns.",
    "properties": {
      "name": {
        "type": "string",
        "description": "Filter campaigns by name."
      },
      "sort": {
        "type": "string",
        "description": "Sort order, for example `-hs_lastmodifieddate`."
      },
      "properties": {
        "type": "array",
        "description": "Campaign properties to return.",
        "items": {
          "type": "string"
        }
      },
      "limit": {
        "type": "integer",
        "description": "Maximum results to return. HubSpot allows values from 1 to 100.",
        "minimum": 1,
        "maximum": 100
      },
      "after": {
        "type": "string",
        "description": "Forward paging cursor."
      },
      "before": {
        "type": "string",
        "description": "Backward paging cursor."
      },
      "query_params": {
        "type": "object",
        "additionalProperties": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  }
                ]
              }
            }
          ]
        }
      }
    },
    "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_list_campaigns --payload '{}' --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/apps/developer-platform/add-features/ui-extensibility/ui-components/standard-components/list

  Learn about the List component for use in UI extensions.

  The `List` component renders a list of items. Each item in `List` will be wrapped in `&lt;li>` tags. A list can be styled as inline, ordered, or unordered with the `variant` prop.

  &lt;Frame>
    &lt;img alt="ui-components-list-example" />
  &lt;/Frame>

  ```jsx theme={null}
  import { List } from '@hubspot/ui-extensions';

  const Extension() {
    return (
      &lt;List variant="unordered-styled">
        &lt;Link href="www.hubspot.com">List item 1&lt;/Link>
        &lt;Link href="www.developers.hubspot.com">List item 2&lt;/Link>
        &lt;Link href="www.knowledge.hubspot.com">List item 3&lt;/Link>
      &lt;/List>
     );
  }
  ```

  | Prop      | Type                                                                                                                     | Description                                                                       |
  | --------- | ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------- |
  | `variant` | `'unordered'` (default) \| `'unordered-styled'` \| `'ordered'` \| `'ordered-styled'` \| `'inline'` \| `'inline-divided'` | The type of list to render. See [variants section](#variants) below for examples. |

  ## Variants

  By default, lists will be configured as vertically stacked list items without bullets. To customize the styling, use the `variant` prop, as shown below.

  To create a bulleted unordered list:

  &lt;Frame>
    &lt;img alt="ui-components-list-variants_2" />
  &lt;/Frame>

  ```jsx theme={null}
  &lt;List variant="unordered-styled">
    &lt;Link href="www.hubspot.com">List item 1&lt;/Link>
    &lt;Link href="www.developers.hubspot.com">List item 2&lt;/Link>
    &lt;Link href="www.knowledge.hubspot.com">List item 3&lt;/Link>
  &lt;/List>;
  ```

  To create a numbered list without styling:

  &lt;Frame>
    &lt;img alt="ui-components-list-variants_3" />
  &lt;/Frame>

  ```jsx theme={null}
  &lt;List variant="ordered">
    &lt;Link href="www.hubspot.com">List item 1&lt;/Link>
    &lt;Link href="www.developers.hubspot.com">List item 2&lt;/Link>
    &lt;Link href="www.knowledge.hubspot.com">List item 3&lt;/Link>
  &lt;/List>;
  ```

  To create a numbered list with styling:

  &lt;Frame>
    &lt;img alt="ui-components-list-variants_4" />
  &lt;/Frame>

  ```jsx theme={null}
  &lt;List variant="ordered-styled">
    &lt;Link href="www.hubspot.com">List item 1&lt;/Link>
    &lt;Link href="www.developers.hubspot.com">List item 2&lt;/Link>
    &lt;Link href="www.knowledge.hubspot.com">List item 3&lt;/Link>
  &lt;/List>;
  ```

  To stack list items horizontally:

  &lt;Frame>
    &lt;img alt="ui-components-list-variants_5" />
  &lt;/Frame>

  ```jsx theme={null}
  &lt;List variant="inline">
    &lt;Link href="www.hubspot.com">List item 1&lt;/Link>
    &lt;Link href="www.developers.hubspot.com">List item 2&lt;/Link>
    &lt;Link href="www.knowledge.hubspot.com">List item 3&lt;/Link>
  &lt;/List>;
  ```

  To stack list items horizontally with a divider between each item:

  &lt;Frame>
    &lt;img alt="ui-components-list-variants_6" />
  &lt;/Frame>

  ```jsx theme={null}
  &lt;List variant="inline-divided">
    &lt;Link href="www.hubspot.com">List item 1&lt;/Link>
    &lt;Link href="www.developers.hubspot.com">List item 2&lt;/Link>
    &lt;Link href="www.knowledge.hubspot.com">List item 3&lt;/Link>
  &lt;/List>;
  ```

  ## Related components

  * [Text](/apps/developer-platform/add-features/ui-extensibility/ui-components/standard-components/text)
  * [Accordion](/apps/developer-platform/add-features/ui-extensibility/ui-components/standard-components/accordion)
  * [DescriptionList](/apps/developer-platform/add-features/ui-extensibility/ui-components/standard-components/description-list)
  ````
</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`.
