Introduction
By default, a scheduled job refreshes API REST token every day at 06:00 AM. Given the configuration of your XTM instance, such time interval might not be sufficient and you might stumble upon a token expiration issue.
Guidelines
There are two options to solve this problem:
I. Changing the token refreshing interval by adjusting the AEM OSGi configuration
Go to Adobe Experience Manager → Tools → Operations → Web Console.
2. Using the CRTL + F key combination, search for XTM REST Token Refresh Scheduler.
3. Change the CRON expression with the desired value.
EXAMPLE: The value 0 0/5 * ? * * * will refresh the token every 5 minutes.
Please, refer to the following Cron expression generator if you need help with setting up a proper cron expression.
II. Prolong the token life span by making a change in the XTM configuration
If you would like to use this method, a help from the XTM Support team is necessary. Please, reach out to us, by creating a proper ticket, and provide details of your request.