> For the complete documentation index, see [llms.txt](https://docs.anedot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anedot.com/integrations/crm-donor-management/hubspot.md).

# HubSpot

Connect Anedot to HubSpot to send contacts and optional Deals from your Action Pages, manage your connection, and review field mapping and payload data.

The **HubSpot** integration sends contacts, and optional Deals, from your Action Pages to HubSpot, a CRM for contacts, marketing, and deals. It lives in **Settings > Integrations**, and this article covers how to connect Anedot to HubSpot, manage your connection, how data relays work, where to find your data, field mapping, and payload data.

## Before You Begin

* You need **Integrations: Edit permissions** to add, edit, push or delete a connection. Integrations: Edit permissions also require **Action Pages: View permissions** and **Integrations: View permissions**. See [Permission Sets](https://docs.anedot.com/settings/access/permission-sets.md).
* You need a HubSpot account you can sign in to and authorize.
* If you want Anedot to create Deals, you need the internal ID of the Deal Stage you want to use. You can also use a Pipeline internal ID.
* If you want Anedot to fill custom Deal properties, create them in HubSpot first and have their internal names ready.

## Connect Anedot to HubSpot

Connecting HubSpot has two stages. First, gather your IDs in HubSpot. Then create the connection in Anedot and authorize HubSpot.

### Step 1: Create Custom Deal Properties and Copy Your IDs in HubSpot

This step is for sending Deals, including custom Deal properties. To send only contacts, continue to Step 2.

To create a custom Deal property in HubSpot:

1. In your HubSpot account, click the settings icon in the top navigation bar.
2. In the left sidebar menu, go to **Properties**.
3. Click the **Select an object** dropdown menu, then select **Deal properties**.
4. Above the table, click **Create property**.
5. In the right panel, enter a **Property label**.
6. Click **Field type** and select the type shown for that property in the [Custom Deal Properties](https://docs.anedot.com/integrations/crm-donor-management/hubspot.md#custom-deal-properties) table.
7. Click **Create property**.
8. Open the property, and in the Details section, click the edit icon next to **Internal name**.
9. Copy the internal name. This is the ID you'll enter in Anedot.

Repeat these steps for each custom Deal property you want Anedot to fill.

{% hint style="info" %}
HubSpot doesn't let you change a property's internal name after the property is created.
{% endhint %}

To copy a Pipeline ID and Deal Stage ID in HubSpot:

1. In your HubSpot account, click the settings icon in the top navigation bar.
2. In the left sidebar menu, in the **Data Management** section, click **Objects**.
3. Click the **Select an object** dropdown menu and select **Deals**.
4. Select the **Pipelines** tab.
5. Click the name of the pipeline you want.
6. Click the code icon to view the pipeline's internal name, and copy it. This is the Pipeline ID you'll enter in Anedot.
7. Hover over the stage you want and click the code icon to view its internal name, and copy it. This is the Deal Stage ID you'll enter in Anedot.

You now have the IDs you need for the Anedot connection.

### Step 2: Create the Connection in Anedot and Authorize HubSpot

To create the HubSpot connection:

1. Go to **Settings > Integrations**.
2. Click **New integration**.
3. Choose **HubSpot**, or enter "HubSpot" in the search box. HubSpot appears under the Email Marketing category with the description "Authorize HubSpot and optionally map custom properties."
4. Choose which Action Pages to include:
   * Leave **All Action Pages** checked to include every page, including future pages. (Optional) In **Exclude Pages**, enter a comma separated list of Action Page IDs, with no spaces, to leave those pages out.
   * Uncheck **All Action Pages** and choose pages in **Selected pages** to include only the pages you pick.
5. Leave **Team** set to **All teams**.
6. (Optional) In **Pipeline (Internal ID)**, enter your Pipeline ID. If this field is empty, Anedot sends the value `default`.
7. (Optional) In **Deal Stage (Internal ID)**, enter your Deal Stage ID. Anedot creates Deals only when this field is set.
8. (Optional) In **Custom properties (Deal Stage required)**, enter the HubSpot internal name for each custom property you created. Use the field type shown for each one.
9. Click **Continue to provider**. You'll see "Redirecting to provider." and your browser opens HubSpot.
10. In HubSpot, authorize Anedot to access your contacts and deals.

After you authorize, you return to **Settings > Integrations** and the connection appears in your list. Anedot doesn't send anything to HubSpot when the connection is created. Records are sent as new activity comes in on the included pages.

{% hint style="info" %}
Custom properties are sent only on Deals, so they need a Deal Stage. Properties without a HubSpot ID are ignored.
{% endhint %}

{% hint style="info" %}
Until you add a name, the list shows the connection as **Integration** followed by its ID, such as "Integration 42". Enter a **Name** the first time you edit the connection.
{% endhint %}

## Manage Your Connection

Each HubSpot connection in **Settings > Integrations** shows a status of **Enabled** or **Disabled**, along with **Edit**, **Push unsent**, and **Delete** buttons.

### Edit Your Connection

To edit a HubSpot connection:

1. Go to **Settings > Integrations**.
2. Click **Edit** on the HubSpot connection.
3. Enter a **Name** for the connection. A name is required to save.
4. (Optional) Update which Action Pages are included.
5. Leave **Team** set to **All teams**.
6. (Optional) Uncheck **Enabled** to stop new live sends, or check it to start sending again.
7. Leave the **Credentials/details JSON** box as it is.
8. Click **Save integration**.

You'll see "Integration updated." and your changes apply to new sends.

{% hint style="warning" %}
Your HubSpot authorization, Pipeline ID, Deal Stage ID, and custom property IDs aren't shown as fields in **Edit**. To change any of them, or to use a different HubSpot account, delete the connection and connect again.
{% endhint %}

### Push Unsent Records

**Push unsent** sends submissions and successful recurring charges in a date range that haven't already been sent successfully. Records that were already sent successfully aren't sent again.

To push unsent records:

1. Go to **Settings > Integrations**.
2. Click **Push unsent** on the HubSpot connection.
3. Choose a **Start date** and **End date**. The range can be up to 31 days, and the start date must be within the last 12 months.
4. Start the push.

You'll see "Push started." and Anedot begins sending the records in that range. Wait about five minutes between pushes. For the full steps, see [Push Unsent](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md#push-unsent) in Webhooks (API).

### Delete Your Connection

To delete a HubSpot connection:

1. Go to **Settings > Integrations**.
2. Click **Delete** on the HubSpot connection.
3. Confirm when you see "Delete this integration?"

You'll see "Integration deleted." and Anedot stops sending to HubSpot for that connection. Records already in HubSpot aren't changed.

{% hint style="danger" %}
Deleting a connection can't be undone. To send data to HubSpot again, connect again and authorize HubSpot.
{% endhint %}

## Data Relays

### What Anedot Sends

Every send starts with a HubSpot contact. If the contact has an email, HubSpot matches on email and updates the existing contact. If there's no email, HubSpot creates a new contact each time.

When **Deal Stage (Internal ID)** is set and the payment has completed, Anedot also creates a Deal and associates it with the contact.

| Activity                     | What Anedot Sends                                                                                     |
| ---------------------------- | ----------------------------------------------------------------------------------------------------- |
| Donation Page donation       | A contact, and a Deal when Deal Stage is set                                                          |
| Paid Event Page registration | A contact, and a Deal when Deal Stage is set, once the payment completes                              |
| Free Event Page registration | A contact only                                                                                        |
| Lead Page submission         | A contact only, when the submission is created                                                        |
| Recurring donation           | A contact for each successful recurring charge, and a new Deal for each charge when Deal Stage is set |

A gift split across multiple Funds creates one Deal for the submission or charge, using the total amount. To learn more about recurring schedules, see [Commitments](https://docs.anedot.com/finance/management-and-reporting/commitments.md).

When Deal Stage is blank, Anedot still sends the contact, including email. It doesn't create a Deal, and it doesn't send custom Deal properties or `hubspot_` fields.

#### Custom Fields Sent on the Deal

Custom field answers whose label starts with `hubspot_` are sent on the Deal, with that prefix removed, when Deal Stage is set. You can add these as Hidden custom fields named `hubspot_` plus the HubSpot internal name, such as `hubspot_account_id`. See [Hidden Fields](https://docs.anedot.com/action-pages/page-builder/hidden-fields.md).

{% hint style="warning" %}
Avoid setting up more than one HubSpot connection for the same Deal data. Each matching connection can create its own Deal in HubSpot.
{% endhint %}

### Records Anedot Skips

Anedot doesn't send these to HubSpot, and no row appears in **Settings > Integration Requests** for them:

* Refunds, voids, chargebacks, ACH returns, and settled events.
* Abandoned Actions.
* Later edits to a submission or donor that was already sent.
* Commitment changes, such as a cancellation. Recurring charges themselves are sent as described above.
* A donation whose payment hasn't completed yet. It's sent when the payment completes.
* New live submissions while **Enabled** is unchecked.
* Pages outside the connection's Action Page selection.
* Activity after a connection is deleted.
* A Deal, custom Deal properties, or `hubspot_` fields when Deal Stage isn't set. The contact is still sent.

### Delivery And Retries

Each send to HubSpot appears in **Settings > Integration Requests**. When Deal Stage is set and the contact is sent successfully, you'll see two rows: a contact row, then a Deal row. Each row shows the request body, request headers, response body, and response status. See [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md).

| Status      | What It Means                                                                                                                                              |
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Success** | HubSpot accepted the request with an HTTP 2xx status.                                                                                                      |
| **Failure** | HubSpot responded with an error. Fix the cause, then use **Push unsent**.                                                                                  |
| **Error**   | Anedot couldn't complete the request, or HubSpot had a temporary problem. The request can be tried again automatically. The row may show "No HTTP status." |

Users with the **Integration sync failed** notification turned on get an email when a row shows Failure. This email isn't sent for Error rows. See [Notifications](https://docs.anedot.com/get-started/security/notifications.md).

Repeated authorization failures can turn the connection off, and the list then shows **Disabled**. To start sending again, click **Edit**, check **Enabled**, and click **Save integration**. If the connection turns off again, delete it and connect again.

## Find Your Data in HubSpot

After Anedot sends a contact or Deal, you'll find it in Contacts and Deals in your HubSpot account. What HubSpot does with a record after it accepts it is set by HubSpot.

To confirm a record left Anedot, look for its Success row in **Settings > Integration Requests**.

## Field Mapping

### Contact Properties

Anedot sends these on every contact. Blank values are left out, and country isn't sent.

| Anedot Value                                             | HubSpot Property |
| -------------------------------------------------------- | ---------------- |
| Email                                                    | `email`          |
| First name                                               | `firstname`      |
| Last name                                                | `lastname`       |
| Phone, when present                                      | `phone`          |
| Address line 1 and line 2, joined with a comma and space | `address`        |
| City                                                     | `city`           |
| State / region                                           | `state`          |
| Postal code                                              | `zip`            |

### Deal Properties

Anedot sends these only when Deal Stage is set and the payment has completed.

| Anedot Value                                                                                                                                       | HubSpot Property               |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
| Total amount as a dollar string, such as `"25.00"`                                                                                                 | `amount`                       |
| Full name (title, first, middle, last, and suffix, when present), then a space, a hyphen, a space, and the amount, for example `Annie Dot - 25.00` | `dealname`                     |
| The Pipeline ID you entered, or `default` if Pipeline is empty                                                                                     | `pipeline`                     |
| Date created, ISO 8601 in UTC, for example `2026-11-12T15:04:05Z`                                                                                  | `closedate`                    |
| The Deal Stage ID you entered                                                                                                                      | `dealstage`                    |
| Mapped custom properties, when you entered their internal IDs                                                                                      | The internal names you entered |
| Association to the contact: `HUBSPOT_DEFINED`, association type 3                                                                                  | associations                   |

### Custom Deal Properties

Create each property in HubSpot with the field type shown, then enter its internal name in the matching field on the Anedot create form. These are sent only on the Deal, and only when Deal Stage is set. Properties without an ID aren't sent.

| Anedot Field                    | HubSpot Field Type | Value Sent                    |
| ------------------------------- | ------------------ | ----------------------------- |
| **Action Page Name**            | single-line text   | The Action Page name, or null |
| **Communication Consent Email** | single checkbox    | true or false                 |
| **Communication Consent Phone** | single checkbox    | true or false                 |
| **Transaction ID**              | single-line text   | The Anedot record ID          |
| **Recurring**                   | single checkbox    | true or false                 |
| **Source Code**                 | single-line text   | The source code, or null      |
| **UTM Campaign**                | single-line text   | The UTM value, or null        |
| **UTM Content**                 | single-line text   | The UTM value, or null        |
| **UTM Medium**                  | single-line text   | The UTM value, or null        |
| **UTM Source**                  | single-line text   | The UTM value, or null        |
| **UTM Term**                    | single-line text   | The UTM value, or null        |

To learn how source codes and UTM values are captured, see [URL Parameters](https://docs.anedot.com/action-pages/advanced-features/url-parameter.md).

## Payload Data

These examples are the request bodies as shown in **Settings > Integration Requests** for a $25 one-time donation from Annie Dot, with Deal Stage set, Pipeline empty, and no custom property IDs. Values in angle brackets are placeholders. A Success row has an HTTP 2xx status.

Contact request body:

```json
{
  "properties": {
    "zip": "70801",
    "city": "Baton Rouge",
    "email": "annie.dot@example.com",
    "phone": "2255550123",
    "state": "LA",
    "address": "123 Main St",
    "lastname": "Dot",
    "firstname": "Annie"
  }
}
```

Deal request body:

```json
{
  "properties": {
    "amount": "25.00",
    "dealname": "Annie Dot - 25.00",
    "pipeline": "default",
    "closedate": "2026-11-12T15:04:05Z",
    "dealstage": "66041629"
  },
  "associations": [
    { "to": { "id": "<HubSpot contact id>" }, "types": [ { "associationTypeId": 3, "associationCategory": "HUBSPOT_DEFINED" } ] }
  ]
}
```

## Troubleshooting

### A Contact or Deal Isn't in HubSpot

Check **Settings > Integration Requests** for the record. Confirm the page is included in the connection's Action Page selection, that **Enabled** is checked, and that the activity is a type Anedot sends. For Deals, confirm **Deal Stage (Internal ID)** was set when you connected and that the payment completed.

### A Row Shows Failure

Review the response body on the row to see what HubSpot returned. Fix the cause, then use **Push unsent** to send the record again.

### A Row Shows Error

Anedot couldn't complete the request, or HubSpot had a temporary problem. The request can be tried again automatically.

### The Connection Shows Disabled

Click **Edit**, check **Enabled**, and click **Save integration**. If the connection turns off again, delete it and connect again.

### You Can't Save the Connection

When creating a connection, you'll see "Select at least one Action Page, or choose All Action Pages." if no pages are included. If you see "Action pages are still loading. Try again in a moment." or "Action pages must load before you can save this integration.", wait for the page list to load and try again. When editing, enter a **Name**, since it's required to save.

### HubSpot Authorization Doesn't Finish

If you see a message such as "OAuth setup failed" or "OAuth setup is missing information", the connection wasn't created. Start again from **Settings > Integrations** and complete the authorization in HubSpot.

### You Need a Different HubSpot Account, Pipeline, Deal Stage, or Custom Property IDs

Delete the connection and connect again with the new account or IDs.

### You See Duplicate Deals

Check **Settings > Integrations** for more than one HubSpot connection that includes the same pages. Each matching connection can create its own Deal, so keep one connection for the same Deal data.

If the issue continues, contact our Support team at <help@anedot.com>.

## Related Articles

* [Integrations](https://docs.anedot.com/integrations.md)
* [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md)
* [Webhooks (API)](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md)
* [Permission Sets](https://docs.anedot.com/settings/access/permission-sets.md)
* [Hidden Fields](https://docs.anedot.com/action-pages/page-builder/hidden-fields.md)
* [Teams](https://docs.anedot.com/settings/access/teams.md)
* [Commitments](https://docs.anedot.com/finance/management-and-reporting/commitments.md)
* [Notifications](https://docs.anedot.com/get-started/security/notifications.md)
* [URL Parameters](https://docs.anedot.com/action-pages/advanced-features/url-parameter.md)
* [CRM & Donor Management](https://docs.anedot.com/integrations/crm-donor-management.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.anedot.com/integrations/crm-donor-management/hubspot.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
