API call 2

Providerhubspot
CallPOST /hubspot/oauth/v1/token
Status200
Subjecthubspot:portal:4242001
When2026-11-11 11:22:22Z (0 ms)

Request headers

Accept-Encodinggzip
AuthorizationBasic …s-v2
Content-Length165
Content-Typeapplication/x-www-form-urlencoded
User-AgentGo-http-client/1.1

Request body

code=sim-cod%E2%80%A620d1&grant_type=authorization_code&redirect_uri=https%3A%2F%2Fhsgo-wt11-tord.dev.precisely.se%2Foauth%2Fv2%2Foauth-callback

Response body

{
  "access_token": "sim-at-…c691",
  "expires_in": 1800,
  "hub_id": 4242001,
  "refresh_token": "na1-920…f58f",
  "scopes": [
    "oauth"
  ],
  "token_type": "bearer",
  "token_use": "access_token",
  "user_id": 101
}

JSON