Integrate with HubSpot Marketing Software

Integrate with HubSpot Marketing Software

To help increase traffic and leads, you may want to integrate with HubSpot Marketing Software. You can do this using a specialized rule template.

In this example, we will use a rule to add a new contact to a specified list in HubSpot.

Prerequisites

Before connecting your Auth0 app to HubSpot, you must sign up for and configure your account with HubSpot.

Steps

To connect your app to HubSpot, you will:

  1. Get your HubSpot credentials

  2. Create and activate a rule in Auth0

Get your HubSpot credentials

First, you will need to retrieve your HubSpot API Key and the list ID of the HubSpot list to which you want to add a new member.

To learn more, read Access your HubSpot API key.

You can find the ID of any list in HubSpot by navigating to the list in your portal and inspecting the URL. The format of the URL is: https://app.hubspot.com/contacts/{portal id}/lists/{list id}

Once you have retrieved your HubSpot API Key and HubSpot List ID, keep these values on hand because we will use them in the next step.

Create and activate a rule in Auth0

Set up a rule in Auth0. While setting up your rule, select the Add New Contact to HubSpot for Marketing template from the Webhook section, then use the following settings:

Variable Value
HUBSPOT_API_KEY Your HubSpot API Key.
HUBSPOT_NEW_MEMBER_LIST_ID ID of the HubSpot list to which you want to add a new member.

By default, your rule will be activated upon save. Upon authentication, users will now show up as Contacts and be added to the specified list in HubSpot.