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

# Using a private app to set up a HubSpot + Mobly integration (Legacy Integration)

Get the integration between Mobly and HubSpot set up so your leads can sync automatically

In order for Mobly to send your leads directly to your HubSpot instance and kick off the cool automated flows you have programmed, we first need to set up the integration in the backend so our systems can talk to each other directly. Don't worry - this process should take no longer than 15 minutes!

### Creating your own private app

1. Click on the "Settings" icon in the upper nav bar.

   ![](//d33v4339jhl8k0.cloudfront.net/docs/assets/67f00b47b96c282fea91b6f6/images/688bee3296b2af505543161e/file-ViB8EZdojj.png)
2. Navigate to the "Integrations" tab under "Account Management".

   ![](//d33v4339jhl8k0.cloudfront.net/docs/assets/67f00b47b96c282fea91b6f6/images/688bede3222eb379b8c3469c/file-ZLjlC3VVUh.png)
3. Under "Integrations", click on "Private Apps".
4. Click on "Create a Private App".

   ![](//d33v4339jhl8k0.cloudfront.net/docs/assets/67f00b47b96c282fea91b6f6/images/688bee77db50db39f4e3e3a4/file-1ocYBeyUH9.png)
5. Fill in the Basic Info section with helpful information for your organization.
   1. We recommend naming the app something easy like "yourCompanyName-MOBLY".

      ![](//d33v4339jhl8k0.cloudfront.net/docs/assets/67f00b47b96c282fea91b6f6/images/688beeb9d77b850c2bba98e7/file-obiZ3zKhsz.png)
6. Edit the Scopes of your new private app.
   1. We recommend turning on all CRM permissions. In order for Mobly to add the necessary information for your leads, you'll need to grant the following permissions:
      1. *crm.objects.lists* - Read and Write
      2. *crm.objects.contacts* - Read and Write
      3. *crm.objects.custom* - Write
      4. *crm.objects.owners* - Read and Write
      5. *crm.schemas.contacts* - Read
      6. timeline - Write

         ![](//d33v4339jhl8k0.cloudfront.net/docs/assets/67f00b47b96c282fea91b6f6/images/688bf0a7022475126eef15be/file-IxWz1xATja.png)
7. Click "Create app".
8. HubSpot will provide you with a token. Click "Show Token" to view the full text and then click "Copy".

   ![](//d33v4339jhl8k0.cloudfront.net/docs/assets/67f00b47b96c282fea91b6f6/images/688bf1bcdb50db39f4e3e3aa/file-BPJdrliuP0.png)
9. Enter the token on the Integrations page in the Mobly Hub. Remember, this token is sensitive and shouldn't be shared with anyone other than Mobly for the purpose of setting up the integration.

   ![](//d33v4339jhl8k0.cloudfront.net/docs/assets/67f00b47b96c282fea91b6f6/images/688bf31b222eb379b8c346a8/file-rMMYsyYk8U.jpg)

Next, you'll work with the Mobly team to map Mobly fields to your customized HubSpot fields. We can map over 20 fields to your CRM, helping with both attribution and future engagement. To prepare for the integration setup call, create the following new fields on the Contact object:

**Field Name**

**Field Type**

Mobly Event

Open text field

Mobly Scanner

Open text field

Mobly Description

Open text field

These fields will house Mobly-specific information about where the lead was scanned, who scanned the lead, and the description added by the scanner. By creating these fields in advance, you'll be well-prepared for a smooth integration process with the Mobly team.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.getmobly.com/help-center/integrations/crm/legacy/hubspot-private-app-legacy.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
