# HubSpot

## Connection Requirements

{% stepper %}
{% step %}

### Domain

The domain of the Hubspot server you want to connect to. Requests will be directed to this address.

> 🔵 **Default: api.hubapi.com**
> {% endstep %}

{% step %}

### Authorization Code

The code returned in the redirect URL after the user installs the Hubspot app.
{% endstep %}

{% step %}

### Redirect URI

The Hubspot app’s set redirect URL.
{% endstep %}

{% step %}

### Client ID

The Hubspot app’s client ID.
{% endstep %}

{% step %}

### Client Secret

The Hubspot app’s client secret.
{% endstep %}
{% endstepper %}

<details>

<summary>How to get OAuth Credentials</summary>

How to get client\_id, client\_secret, redirect\_uri, and authorization code for HubSpot:

* Create a Public App: Go to your HubSpot Developer Account and create a new Public App.
* Client ID / Client Secret: These are shown in the app’s Auth or Credentials section.
* Redirect URI: Add your redirect URL under the app’s Auth settings.
* Authorization Code: Open the app’s Install URL (which includes `client_id`, `redirect_uri`, and scopes).
* After the user authorizes the app, the URL will redirect with a code parameter — this is your authorization code.

</details>

{% hint style="warning" %}
⚠️ Attention

Please perform a **connection test** to ensure there is a valid connection to the host.\
When the discovery operation is finalized, you will be able to see the details on the **Assets** page.
{% endhint %}


---

# 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.octoxlabs.com/adapters/adapters/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.
