Hi All,
Is refresh token supported in device flow? When authorizing using device flow, the API response have a refresh token but when I checked the API docs it is not stated on how to generate new access token using a refresh token (Device Flow)
Thank you.
Solved! Go to Solution.
Hello user463795,
Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.
I can confirm that refresh tokens are supported with the Device authorization flow. Below I’m including instructions on how to utilize them. These steps have not yet been added to the Device flow documentation but we hope to have them added soon:
Assuming that the offline_access scope is verified in your authorization request, you will receive a refresh_token along with an access_token in your token request. The refresh_token will only expire after 180 days if never used. You can exchange the refresh_token for a new token set once the access_token expires with the following method:
Send a POST request to the https://authz.constantcontact.com/oauth2/default/v1/token endpoint with the following query parameters and header.
Query Parameters:
refresh_token (value = your refresh token)
grant_type (value = refresh_token)
client_id (value = your client_id)
Header:
Content-Type: application/x-www-form-urlencoded
Please have a look and let us know if you have any other questions!
Regards,
Hello user463795,
Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.
I can confirm that refresh tokens are supported with the Device authorization flow. Below I’m including instructions on how to utilize them. These steps have not yet been added to the Device flow documentation but we hope to have them added soon:
Assuming that the offline_access scope is verified in your authorization request, you will receive a refresh_token along with an access_token in your token request. The refresh_token will only expire after 180 days if never used. You can exchange the refresh_token for a new token set once the access_token expires with the following method:
Send a POST request to the https://authz.constantcontact.com/oauth2/default/v1/token endpoint with the following query parameters and header.
Query Parameters:
refresh_token (value = your refresh token)
grant_type (value = refresh_token)
client_id (value = your client_id)
Header:
Content-Type: application/x-www-form-urlencoded
Please have a look and let us know if you have any other questions!
Regards,
Thanks!
Announcements
Join our list to be notified of new features and updates to our V3 API.
Sign Up