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 'client_id=<string>' \
--data 'client_secret=<string>' \
--data 'redirect_uri=<string>' \
--data 'code=<string>'{
"access_token": "<string>",
"refresh_token": "<string>",
"expires_in": 123
}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 'client_id=<string>' \
--data 'client_secret=<string>' \
--data 'redirect_uri=<string>' \
--data 'code=<string>'{
"access_token": "<string>",
"refresh_token": "<string>",
"expires_in": 123
}Supported products
The grant type of the request, must be authorization_code for the initial request to get the access and refresh tokens.
authorization_code The Client ID of your app.
The Client Secret of your app.
The redirect URI that was used when the user authorized your app. This must exactly match the redirect_uri used when initiating the OAuth 2.0 connection.
The code parameter returned to your redirect URI when the user authorized your app.