User

Finish connecting a HubSpot portal

Exchanges the authorization code HubSpot redirected back with, stores the organization's tokens and answers the connected portal. Requires integration-hubspot and account-administrator.

post/api/integration/hubspot/access-token

Request

Request body

codestring required

The authorization code HubSpot sent to the redirect URI

statestring required

The state HubSpot sent back, as issued by the authorize-url endpoint

Response

The connected HubSpot portal.

portal_idinteger nullable
portal_domainstring nullable
granted_scopesstring[]
token_expires_atstring date-time nullable

Changes

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