---
title: "Reconnecting a Portal | Jetstack AI Docs"
description: "How to identify and resolve portal connection issues, including OAuth token expiry, scope changes, and the reconnection flow."
url: "https://jetstack.ai/docs/account/portals/reconnecting/"
---

# Reconnecting a Portal

Portal connections in Jetstack AI rely on OAuth tokens that can expire or become invalidated. When this happens, the portal’s connection status changes and you need to re-authorize. Reconnecting is a quick process that restores full access without losing any previously imported assets or configuration.

## Connection Status Indicators

Every portal in the Client Accounts table displays a status indicator showing the health of the OAuth connection:

| Status                 | Indicator | Meaning                                                                                                           |
| ---------------------- | --------- | ----------------------------------------------------------------------------------------------------------------- |
| **Connected**          | Green     | The OAuth connection is active and all tokens are valid. Jetstack AI can make API calls to this portal.           |
| **Needs Reconnection** | Yellow    | The OAuth token has expired or scopes have changed. Jetstack AI cannot make API calls until you re-authorize.     |
| **Disconnected**       | Red       | The connection has been fully revoked, either from Jetstack AI or from HubSpot’s side. Requires a new OAuth flow. |

A yellow **Needs Reconnection** status is the most common situation. It does not mean anything is broken — it simply means the authorization needs to be refreshed.

## Why Portals Need Reconnection

Several situations can cause a portal to enter the **Needs Reconnection** state:

- **Token expiry** — HubSpot refresh tokens can become invalid if the authorizing user’s permissions change or if HubSpot rotates tokens on their end.
- **Scope changes** — If Jetstack AI adds new features that require additional OAuth scopes, existing connections need to be re-authorized with the updated scope set.
- **User deactivation** — If the HubSpot user who originally authorized the connection is deactivated or has their permissions downgraded, the OAuth tokens tied to that user become invalid.
- **Manual revocation in HubSpot** — If someone removes Jetstack AI from **Settings > Integrations > Connected Apps** in HubSpot, the tokens are immediately invalidated.
- **HubSpot account changes** — Portal merges, downgrades, or subscription changes on the HubSpot side can invalidate existing OAuth connections.

## How to Reconnect

1. Navigate to **Client Accounts** in the left sidebar.
2. Locate the portal with a yellow or red status indicator in the table.
3. Click the **Reconnect** button in the Actions column for that portal.
4. You are redirected to HubSpot’s OAuth authorization screen. Select the same portal and review the requested permissions.
5. Click **Connect app** to authorize.
6. HubSpot redirects you back to Jetstack AI. The portal status updates to **Connected** (green).

The reconnection flow is identical to the initial connection flow. Jetstack AI replaces the expired tokens with fresh ones and resumes normal operation.

## What Reconnection Preserves

Reconnecting a portal does **not** reset or delete any of the following:

- **Imported assets** — All assets previously imported from this portal remain in your Jetstack AI library.
- **Deployment history** — Records of past deployments to or from this portal are retained.
- **Activity history** — All tasks, logs, and error details associated with this portal stay intact.
- **Connection type** — The portal’s connection type (Config Only, Config + Audit, Audit Only) is preserved. You do not need to reconfigure it.

Reconnection only refreshes the OAuth tokens. Everything else remains unchanged.

## What Happens if You Ignore It

If a portal stays in the **Needs Reconnection** state:

- **Imports** from this portal will fail immediately with an authentication error.
- **Deployments** to this portal will fail at the first API call.
- **Audits** on this portal cannot be started.
- **Existing data** is unaffected — previously imported assets and completed audits remain available.

There is no deadline or expiration for reconnecting. The portal will remain in the yellow state indefinitely until you either reconnect or remove it.

## Reconnection Requirements

The person completing the reconnection must have:

- **HubSpot Admin access** on the portal being reconnected (Super Admin or Admin role)
- **Jetstack AI account access** with permission to manage portals in the organization

The reconnecting user does not need to be the same person who originally authorized the connection. Any Admin on both the HubSpot portal and the Jetstack AI organization can complete the flow.

## Troubleshooting

If reconnection fails, see [OAuth Connection Flow](https://jetstack.ai/docs/account/portals/oauth) for details on the authorization process. Common issues include pop-up blockers interfering with the redirect, insufficient HubSpot permissions, or temporary HubSpot OAuth service disruptions. For persistent issues, see [Connection & OAuth Troubleshooting](https://jetstack.ai/docs/troubleshooting/connection-oauth).
