> ## 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: Enroll Contact In Sequence

> Enroll a HubSpot contact in a sales sequence, sending from a chosen inbox. Includes SDK V2 examples, input constraints, response fields, and Deepline cost.

Enroll a HubSpot contact in a sales sequence, sending from a chosen inbox.

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

## 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_enroll_contact_in_sequence',
  {
    "sequence_id": "sequence_123",
    "contact_id": "contact_123",
    "sender_email": "jane.doe@example.com",
    "user_id": "user_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute hubspot_enroll_contact_in_sequence --input '{
  "sequence_id": "sequence_123",
  "contact_id": "contact_123",
  "sender_email": "jane.doe@example.com",
  "user_id": "user_123"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "already_enrolled": true,
    "enrollment": {},
    "current_enrollment": {}
  }
}
```

Use `deepline describe hubspot_enroll_contact_in_sequence --json` for the latest machine-readable contract.

## Input reference

Enroll a HubSpot contact in a sales sequence.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.sequence_id` | `string` | Yes | — | HubSpot sales sequence ID. |
| `payload.contact_id` | `string` | Yes | — | HubSpot contact ID to enroll. |
| `payload.sender_email` | `string` | Yes | — | Email address of the sender. Must be a connected inbox in HubSpot. |
| `payload.user_id` | `string` | Yes | — | HubSpot user ID of the enrolling user. Use hubspot\_list\_owners to find user IDs. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Enroll a HubSpot contact in a sales sequence.",
    "properties": {
      "sequence_id": {
        "type": "string",
        "description": "HubSpot sales sequence ID."
      },
      "contact_id": {
        "type": "string",
        "description": "HubSpot contact ID to enroll."
      },
      "sender_email": {
        "type": "string",
        "description": "Email address of the sender. Must be a connected inbox in HubSpot."
      },
      "user_id": {
        "type": "string",
        "description": "HubSpot user ID of the enrolling user. Use hubspot_list_owners to find user IDs."
      }
    },
    "required": [
      "sequence_id",
      "contact_id",
      "sender_email",
      "user_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.already_enrolled` | `boolean` | Yes | — | Whether the contact was already enrolled before this call. |
| `result.data.enrollment` | `object \| null` | Yes | — | — |
| `result.data.current_enrollment` | `object \| null` | Yes | — | — |
| `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.",
        "properties": {
          "already_enrolled": {
            "type": "boolean",
            "description": "Whether the contact was already enrolled before this call."
          },
          "enrollment": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "current_enrollment": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          }
        },
        "required": [
          "already_enrolled",
          "enrollment",
          "current_enrollment"
        ],
        "additionalProperties": false
      },
      "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.