User Management

Get HubSpot integration status

Answers whether the signed-in user's organization has HubSpot connected, so the Integrations page can show the connection to every user, and whether HubSpot export is available to the user, so the export menu can show or hide the option. The id must be the signed-in user's own. Every value is read from the stored organization connection - no request is made to HubSpot, and neither the access token nor the refresh token is returned. Unlike the organization endpoint this is not restricted to account administrators.

get/api/user/{id}/integration/hubspot

Request

Path parameters

idinteger required

User ID

Response

HubSpot integration status

connectedboolean

True when the user's organization has a connected portal whose token is still valid, whatever the user's permissions

has_set_hubspot_integrationboolean

True when the user's organization has a connected portal whose token is still valid and the user holds the HubSpot integration permission

hubspot_connectedboolean

True when the user has signed in to their organization's connected HubSpot account themselves, so their exports can use their own sign-in and set them as Contact Owner. False means the next HubSpot export should ask them to sign in.

token_invalid_atstring date-time nullable

Set when the connection needs to be set up again

Changes

No recorded changes to this operation across all 2 revisions of this API.