function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Technology RadarTechnology Radar 

How do you create an API Access token that does not expire

How do you create an API Access token that does not expire
SubratSubrat (Salesforce Developers) 
Hello ,

I would request you to please go through this discussion which might help you with your requirement -> https://stackoverflow.com/questions/49627699/never-expire-salesforce-session

--> https://salesforce.stackexchange.com/questions/73512/oauth-access-token-expiration

If the above information helps , please mark this as best Answer.
Thank you.
ayesha javedayesha javed
To create an API access token that doesn't expire, you need to follow certain steps. An API access token is used to authenticate your requests to an API. By default, most API access tokens expire after a certain amount of time for security reasons. However, some API providers allow you to create access tokens that don't expire. Here are the steps:
First, find out if the API provider you're working with allows for non-expiring tokens.
If they do, you'll need to generate the token using their API console or a command-line interface.
When generating the token, look for an option to set the expiration time to "never" or "infinite."
Once you've generated the token, (#) make sure to store it in a safe place and never share it with anyone.
That's it! You now have an API access token that doesn't expire, which you can use to make authenticated requests to the API.