Skip to main content
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
}
Supported products
Requires one of the following products or higher.
Marketing Hub
Marketing HubFree
Sales Hub
Sales HubFree
Service Hub
Service HubFree
Content Hub
Content HubFree

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