- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Regards,
Courtney E.
Tier II API Support Engineer
Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Regards,
Courtney E.
Tier II API Support Engineer
Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ahh that makes sense - thank you for answering my question.
Eric
