Hi everyone,
I understand that the refresh token is valid for 180 days. My question is, what happens after that period https://developer.constantcontact.com/api_guide/auth_overview.html#refresh-token ? I was wondering if I were to set up a cron job to update and validate the token, ensuring I get a new refresh token to extend its lifespan and will that work? What I am unclear about is if this is possible or are there some limitations I should be aware of.
My goal is to avoid requiring users to log in and obtain new tokens after 180 days. Any advice on best practices for managing token refresh and automation would be greatly appreciated.
Thanks!
Solved! Go to Solution.
Hello EricD536,
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.
Refresh tokens have a lifespan of 180 days, but they only expire if the token remains unused for that duration of time.
The access token, needed to make endpoint calls, only has a lifespan of 24 hours, so every time you use a refresh token to get a new access token, that 180 day lifespan for the refresh token starts over.
Please have a look and let us know if you have any other questions!
Hello EricD536,
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.
Refresh tokens have a lifespan of 180 days, but they only expire if the token remains unused for that duration of time.
The access token, needed to make endpoint calls, only has a lifespan of 24 hours, so every time you use a refresh token to get a new access token, that 180 day lifespan for the refresh token starts over.
Please have a look and let us know if you have any other questions!
Ahh that makes sense - thank you for answering my question.
Eric
Announcements
Join our list to be notified of new features and updates to our V3 API.
Sign Up