# Connect Reverse ETL Source to HubSpot Audience


<blockquote class="announcement">
  <div class="tip-quote">
    
    <div class="tip-text"><p>The <strong>HubSpot Audience</strong> destination is in <strong>Private Beta</strong>.</p>
<p>Reach out to <a href="mailto:support@rudderstack.com" >Customer Success</a> to enable it for your workspace.</p>
</div>
  </div>
</blockquote>

<p>This guide takes you through the steps to connect a <a href="https://www.rudderstack.com/docs/sources/reverse-etl/" >Reverse ETL source</a> to your HubSpot Audience destination.</p>

<blockquote class="warning">
  <div class="tip-quote">
    
    <div class="tip-text">Before you start, make sure to complete the <a href="https://www.rudderstack.com/docs/destinations/reverse-etl-destinations/hubspot-audience/#prerequisites" >prerequisites</a> — authenticate with a HubSpot Service Key that has the required scopes.</div>
  </div>
</blockquote>

<!DOCTYPE html>
<html lang="en">
<blockquote class="tip">
  <div class="tip-quote">
    
    <div class="tip-text">Start the connection from a warehouse table, SQL model, or existing audience source. HubSpot Audience accepts warehouse sources only.</div>
  </div>
</blockquote>
</html>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="setup">Setup</h2><ol>
<li>Set up and configure your <a href="https://www.rudderstack.com/docs/sources/reverse-etl/" >Reverse ETL source</a>.</li>
<li>On the source <strong>Overview</strong> tab, click <strong>Add destination</strong> &gt; <strong>Create new destination</strong>, or select an existing HubSpot Audience destination.</li>
<li>Select <strong>HubSpot Audience</strong> and click <strong>Continue</strong>.</li>
<li>Enter a unique destination name.</li>
<li>In the <strong>HubSpot account</strong> section, select an existing account or add a new one with an account name and Service Key:</li>
</ol>
<table>
  <thead>
      <tr>
          <th>Setting</th>
          <th><div>Description</div></th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Account name</td>
          <td>Enter an account name.</td>
      </tr>
      <tr>
          <td>Service Key</td>
          <td>Enter a HubSpot Service Key with the scopes in <a href="https://www.rudderstack.com/docs/destinations/reverse-etl-destinations/hubspot-audience/#prerequisites" >Prerequisites</a>.</td>
      </tr>
  </tbody>
</table>
<ol start="6">
<li>Configure the list and identifier mappings described below.</li>
</ol>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="mapping-settings">Mapping settings</h2><p>This section lists the settings to correctly map data from your Reverse ETL source to the HubSpot Audience destination.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="choose-a-list">Choose a list</h3><p>Choose how the connection targets a HubSpot static contact list. <strong>Use existing list</strong> is the default.</p>
<ul>
<li><strong>Use existing list</strong>: Select a static contact list. Active lists do not appear in the picker.</li>
<li><strong>Create new list</strong>: Enter a list name. RudderStack creates an empty HubSpot static contact list when you finish setup, then saves the generated list ID on the connection.</li>
</ul>
<p>HubSpot requires a unique list name in the portal. If HubSpot rejects the name (for example, because it is already in use) or the Service Key lacks <code>crm.lists.write</code>, fix the name or permissions and try again. RudderStack does not rename HubSpot lists after the connection is created.</p>

<!DOCTYPE html>
<html lang="en">
<blockquote class="tip">
  <div class="tip-quote">
    
    <div class="tip-text"><p>If setup creates the HubSpot list but saving the RudderStack connection fails, select that list with <strong>Use existing list</strong> and continue. Do not create another list for the same connection.</p>
<p>If RudderStack cannot confirm whether HubSpot created the list, check HubSpot for an empty list with that name before creating again. Recovery prompts in the UI do not survive a page reload.</p>
</div>
  </div>
</blockquote>
</html>
<p>The connection stays locked to the selected list. Editing a connection keeps that list fixed. To sync a different list, create a new connection. The previous list and its memberships stay unchanged. Lists created during setup are not deleted automatically when you disconnect.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="sync-mode">Sync mode</h3><p>RudderStack supports only <a href="https://www.rudderstack.com/docs/data-pipelines/reverse-etl/developer-guides/sync-modes/#mirror-mode" >Mirror mode</a> for this destination.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="map-identifiers">Map identifiers</h3><p>Map warehouse columns to HubSpot contact identifiers. At least one complete identifier mapping is required.</p>
<table>
  <thead>
      <tr>
          <th>Identifier</th>
          <th>Behavior</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>HubSpot Record ID (used first)</td>
          <td>Used first when the mapped value is present.</td>
      </tr>
      <tr>
          <td>Email (used when Record ID is empty)</td>
          <td>Used only when the Record ID is empty.</td>
      </tr>
  </tbody>
</table>
<p>A bad Record ID does not fall back to email.</p>
<p>Note that:</p>
<ul>
<li>Deduplicate the source first. Within a connection, each resolved HubSpot contact must correspond to one warehouse row. If two keys resolve to the same contact and only one leaves, that delete can remove the contact while the other row does not re-add it.</li>
<li>Preview shows warehouse rows only. It does not confirm which HubSpot contacts will match.</li>
<li>Mirror mode only removes contacts represented by this source. Other existing list members stay unchanged.</li>
</ul>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="sync-settings">Sync settings</h2>

<p>RudderStack determines how and when to run a sync based on the <a href="https://www.rudderstack.com/docs/data-pipelines/reverse-etl/developer-guides/sync-schedule-settings/" >sync schedule</a> you set for your Reverse ETL connection.</p>
<table>
  <thead>
      <tr>
          <th>Schedule type</th>
          <th>Description</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Basic</td>
          <td>Run syncs at a set interval, optionally starting from a specified time (UTC). <br /><br />If a start time is set, syncs run from that time until the end of that day.</td>
      </tr>
      <tr>
          <td>CRON</td>
          <td>Run syncs based on a specified CRON expression (in UTC).</td>
      </tr>
      <tr>
          <td>Manual</td>
          <td>Run syncs manually.</td>
      </tr>
  </tbody>
</table>
<!-- end-chunk -->
<!-- begin-chunk -->
<h4 id="sync-observability-settings">Sync observability settings</h4>

<table>
  <thead>
      <tr>
          <th>Setting</th>
          <th>Description</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Retain sync logs</td>
          <td>This setting is toggled on by default and instructs RudderStack to store the sync logs in your warehouse. You can also configure the below settings: <br /><br /><table><tr><th width="20%">Setting</th><th width="80%">Description</th></tr><tr><td>Sync log retention</td><td>Specify the retention period of the <a href="https://www.rudderstack.com/docs/data-pipelines/reverse-etl/developer-guides/sync-observability/#sync-logs" >sync logs</a> in your warehouse. <br /><br />If you set it to 1, then RudderStack deletes any sync log older than a day (in UTC time). </td></tr><tr><td>Snapshot table retention</td><td>Specify the number of <a href="https://www.rudderstack.com/docs/data-pipelines/reverse-etl/developer-guides/sync-observability/#snapshot-table-schema" >snapshot tables</a> to retain. </td></tr></table></td>
      </tr>
      <tr>
          <td>Retry failed records</td>
          <td>This setting is toggled on by default and causes RudderStack to continually <a href="https://www.rudderstack.com/docs/data-pipelines/reverse-etl/developer-guides/sync-observability/#retry-failed-records" >retry sending the failed records</a>.</td>
      </tr>
      <tr>
          <td>Retain and show failures</td>
          <td>This setting is toggled off by default. Turn it on to have RudderStack write the error recorded for every failed record to a <a href="https://www.rudderstack.com/docs/data-pipelines/reverse-etl/developer-guides/rudderstack-schema/#failed-records-table" >failed records table</a> in your warehouse and show it in the sync&rsquo;s <a href="https://www.rudderstack.com/docs/data-pipelines/reverse-etl/developer-guides/sync-observability/#failed-records" >failed records view</a>. It applies from the next sync and can take up to a minute to reach your data plane. <br /><br /><table><tr><th width="20%">Setting</th><th width="80%">Description</th></tr><tr><td>Failure retention</td><td>Number of days RudderStack keeps each sync&rsquo;s failed records in your warehouse. The default is 30 and the minimum is 7.</td></tr></table></td>
      </tr>
  </tbody>
</table>

<blockquote class="warning">
  <div class="tip-quote">
    
    <div class="tip-text">Storing sync logs, snapshot tables, and failed records may incur additional warehouse costs.</div>
  </div>
</blockquote>

<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="see-also">See also</h2><ul>
<li><a href="https://www.rudderstack.com/docs/destinations/reverse-etl-destinations/hubspot-audience/#how-membership-is-written-to-hubspot" >How membership is written to HubSpot</a></li>
<li><a href="https://www.rudderstack.com/docs/destinations/reverse-etl-destinations/hubspot-audience/#if-a-sync-fails" >If a sync fails</a></li>
<li><a href="https://www.rudderstack.com/docs/data-pipelines/reverse-etl/developer-guides/sync-modes/" >Sync Modes</a></li>
</ul>

