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

> Create a deal in HubSpot CRM with name, amount, close date, stage, owner, and linked records. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Create a deal in HubSpot CRM with name, amount, close date, stage, owner, and linked records.

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

## 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_deal',
  {
    "name": "Example",
    "amount": "example",
    "close_date": "2026-01-15T12:00:00Z"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute hubspot_create_deal --input '{
  "name": "Example",
  "amount": "example",
  "close_date": "2026-01-15T12:00:00Z"
}' --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": {
    "id": "id_123"
  }
}
```

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

## Input reference

Create a HubSpot deal record.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.name` | `string` | No | — | — |
| `payload.amount` | `string` | No | — | — |
| `payload.close_date` | `string` | No | — | — |
| `payload.deal_description` | `string` | No | — | — |
| `payload.owner` | `string` | No | — | — |
| `payload.deal_stage` | `string` | No | — | — |
| `payload.deal_probability` | `string` | No | — | — |
| `payload.associations` | `array` | No | — | — |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Create a HubSpot deal record.",
    "properties": {
      "name": {
        "type": "string"
      },
      "amount": {
        "type": "string"
      },
      "close_date": {
        "type": "string"
      },
      "deal_description": {
        "type": "string"
      },
      "owner": {
        "type": "string"
      },
      "deal_stage": {
        "type": "string"
      },
      "deal_probability": {
        "type": "string"
      },
      "associations": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "to": {
              "type": "number"
            },
            "types": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "association_category": {
                    "type": "string"
                  },
                  "association_type_Id": {
                    "type": "number"
                  }
                },
                "required": [
                  "association_category",
                  "association_type_Id"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "to",
            "types"
          ],
          "additionalProperties": false
        }
      }
    },
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.id` | `string` | Yes | — | — |
| `result.data.name` | `string` | No | — | — |
| `result.data.amount` | `string` | No | — | — |
| `result.data.close_date` | `string` | No | — | — |
| `result.data.deal_description` | `string` | No | — | — |
| `result.data.owner` | `string` | No | — | — |
| `result.data.deal_stage` | `string` | No | — | — |
| `result.data.deal_probability` | `string` | No | — | — |
| `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": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "amount": {
            "type": "string"
          },
          "close_date": {
            "type": "string"
          },
          "deal_description": {
            "type": "string"
          },
          "owner": {
            "type": "string"
          },
          "deal_stage": {
            "type": "string"
          },
          "deal_probability": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "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.