> For the complete documentation index, see [llms.txt](https://docs.documint.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.documint.me/integrations/hubspot/connecting-your-documint-account.md).

# Connecting your Documint account

To connect your Documint account to your newly installed HubSpot app, we need to add an API key from your Documint account. Here's how:

#### Create your API key

1. Go to your Documint account and access **Settings > API keys** on the left-hand panel. Then click the **New API key** button
2. Give your key a name and click **Create**
3. Copy your API key to use in HubSpot

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FpPc45s4EOlOrSNeqIusd%2FHS%20Inv%20UC%20step%201.2.gif?alt=media&amp;token=27698abe-5d00-4d24-bbb2-e06cf071498d" alt=""><figcaption></figcaption></figure>

#### Paste your key into HubSpot

1. Go to the marketplace icon in the top right of your HubSpot window, then **Connected Apps**
2. Go to **Documint**
3. Click on **Settings** and then **Add/Edit API Key** button
4. This will bring up a window for you to paste your API key into. Paste it in and save

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FSYwOTSqJxKR9GpgoPX9O%2FHS%20Inv%20UC%20step%201.3.gif?alt=media&amp;token=d28ddb03-0591-40ef-bb1d-4f4292521155" alt=""><figcaption></figcaption></figure>

You are now all connected to your Documint account! 🎊

{% hint style="info" %}
**PLEASE NOTE:** You can use this same method if you ever need or want to update or replace the API key for your Documint account
{% endhint %}


---

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.documint.me/integrations/hubspot/connecting-your-documint-account.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
