Set Api workflow every 24hrs

Guys, im trying to set an api to get a token that expires everyday. I’ve tried everything and it’s just not working. I set a recurring event type token which is the database that saves this token, only when current workflow creation date +24hrs > token expires date, then a schedule an api workflow. But it’s just not working at all, don’t know what to do anymore.

A good reminder: the token is just one for que entire system, its not something for which user or something like that

You can set a recursive backend workflow. It would upon being called, renew the token, then call itself again in 24 hours. This is one possible way to set it up.

1 Like

there’s any way to automate the first call?

I like to make sure i can control these backend workflows, so my main idea is to create an admin page where i can initiate these recursive backend workflows i.e. schedule an api workflow on button press. That way if anything were to stop them, i can restart them.

1 Like