---
title: "Get HubSpot integration settings"
method: GET
path: "/api/organization/{organizationId}/integration/hubspot"
tags: ["Organization"]
---

# Get HubSpot integration settings

`GET /api/organization/{organizationId}/integration/hubspot`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/organization/{organizationId}/integration/hubspot`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/organization/:organizationId/integration/hubspot/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the organization's HubSpot connection state, portal id and domain, field-mapping count, matched-owner count and token_invalid_at. Reads stored columns only - no HubSpot call. Requires integration-hubspot and account-administrator in that organization, or edit-organization.

## Path parameters

- `organizationId` integer, required

## Response `200`

The organization's HubSpot integration settings.

- OrganizationHubspotIntegrationResource
  - `portal_id` integer, nullable
  - `portal_domain` string, nullable
  - `connected` boolean: True when a portal is connected and its token is still valid
  - `token_invalid_at` string, date-time, nullable: Set when the connection needs to be set up again
  - `field_mapping_count` integer
  - `matched_owner_count` integer

## Other responses

- `403`: Forbidden - missing the HubSpot settings permissions for this organization.

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
