# 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)


---

# Agent Instructions: 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:

```
GET https://docs.anecdoteai.com/docs/integrations/hubspot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
