POST
/
oauth
/
v1
/
token
Refresh an access token
curl --request POST \
  --url https://api.hubapi.com/oauth/v1/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=authorization_code \
  --data 'code=<string>' \
  --data 'redirect_uri=<string>' \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>' \
  --data 'refresh_token=<string>'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "id_token": "<string>",
  "token_type": "<string>",
  "expires_in": 123
}
サポートされる製品
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub無料ツール
Sales HubSales Hub無料ツール
Service HubService Hub無料ツール
Content HubContent Hub無料ツール

Body

application/x-www-form-urlencoded
grant_type
enum<string>
Available options:
authorization_code,
refresh_token
code
string
redirect_uri
string
client_id
string
client_secret
string
refresh_token
string

Response

successful operation

access_token
string
required
refresh_token
string
required
token_type
string
required
expires_in
integer
required
id_token
string