# Upcoming: API Key Sunset

**URL:** <https://community.hubspot.com/t/upcoming-api-key-sunset/58154>\
**Category:** Developer Announcements\
**Tags:** api\
**Created:** [June 1, 2022, 4:44pm UTC](https://community.hubspot.com/t/upcoming-api-key-sunset/58154 "2022-06-01T16:44:19Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![mzweng](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mzweng/32/52390_2.png) [@mzweng](https://community.hubspot.com/u/mzweng)\
**Post date:** [June 2, 2022, 9:16am UTC](https://community.hubspot.com/t/upcoming-api-key-sunset/58154/13 "2022-06-02T09:16:10Z")

</div>

We are using the HubSpot APIs and API keys within HubSpot’s serverless functions. How can we adapt to this change for this scenario?  
How can we implement a token-refresh, if there’s no persistence in the serverless environment?

---

_[View the full topic](https://community.hubspot.com/t/upcoming-api-key-sunset/58154)._
