# HubSpot

To obtain an API access token in HubSpot, you'll need to create a Private App with the appropriate scopes. Here's a concise guide to help you through the process:

1. **Navigate to Private Apps**:
   * In your HubSpot account, click the settings icon ⚙️ in the main navigation bar.
   * In the left sidebar menu, go to **Integrations > Private Apps**.
2. **Create a New Private App**:
   * Click the **Create a private app** button.
   * In the **Basic Info** tab, provide your app's name, logo, and description, fpr example
     * Anecdote Integration
     * Integration with Anecdote AI Service
3. **Set Scopes**:
   * Navigate to the **Scopes** tab.
   * Assign the following scopes based on your requirements:

     | Stream                      | Required Scope            |
     | --------------------------- | ------------------------- |
     | contact\_lists              | crm.lists.read            |
     | contacts                    | crm.objects.contacts.read |
     | contacts\_list\_memberships | crm.objects.contacts.read |
     | contacts\_form\_submissions | crm.objects.contacts.read |
     | engagements\_emails         | sales-email-read          |
     | forms                       | forms                     |
     | form\_submissions           | forms                     |
     | tickets                     | tickets                   |
4. **Create the App**:
   * After configuring the scopes, click the **Create app** button in the top right corner.
5. **Retrieve the Access Token**:
   * Once the app is created, you'll be directed to its details page.
   * In the **Access token** section, click **Show token** to view and copy your access token.

For more detailed information, refer to [HubSpot's official documentation](https://developers.hubspot.com/docs/guides/apps/private-apps/overview#make-api-calls-with-your-app-s-access-token)
