https://retellai.com/?utm_source=discord&utm_medium=seo logo
Is it possible to store an oauth token and refresh...
# ❓・ai-evy-support
m
@AI Evy Is it possible to store an oauth token and refresh it every couple hours?
a
Thanks for tagging me @minus.ace. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, I don't have specific documentation about storing and refreshing OAuth tokens within Retell AI's platform directly. However, from the Discord discussions, it appears that Retell AI agents can execute calls to external APIs using OAuth 2.0 tokens [(1) ]() . One community member suggested that you can hard code the client_id and secret in the function call [(2) ]() [(3) ]() . For storing and automatically refreshing OAuth tokens every couple of hours, this would typically need to be handled in your backend infrastructure rather than within Retell AI itself. You would manage the token lifecycle in your own system and pass the current valid token to your Retell AI agent when making API calls. Check out these potentially useful sources: - [Custom Function]() - [CALLS TO EXTERNAL APIS USING OAUTH 2.0 TOKENS]() Would you like a general answer on implementing OAuth token refresh patterns in your backend?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] CALLS TO EXTERNAL APIS USING OAUTH 2.0 TOKENS](https://discord.com/channels/1186424376300679209/1437480018979717200) [[2] Discord message from @objectsclattering on 2025-11-11](https://discord.com/channels/1186424376300679209/1186462578310910112/1437874573969199117) [[3] Discord message from @objectsclattering on 2025-11-11](https://discord.com/channels/1186424376300679209/1186462578310910112/1437874126705397841) ​