New user here transferring over from Celigo. I just need a bit of help setting up the refresh token for Plytix. It refreshes every 15 minutes. What would be the best way to set that up on n8n to be used for multiple flows? Thank you! and sorry if the question has been asked before!
Thanks for posting here and welcome to the community!
You can use the HTTP request node to connect to the Plytix API and by default tokens should refresh automatically. So if we get a failed response back on the request we then do a refresh of the token.
I think it’s not possible to set it via credentials, as it’s a custom flow. You can create a separate workflow to obtain the token every time you need it. It’s less secure, but still doable
So unfortunately we only have the tokens refresh when using OAuth. It doesn’t look like Plytix provides that? In this case, @barn4k is right and you will have to come up with a separate workflow that gets the token and returns it and refreshes it if it has expired.
It may be easier to just make a new token on each request or if you are self hosting you could make a credential and use that or you might even be able to use the n8n api to update a credential…
I guess there is many ways to solve this. I hope you will find a way that works for you and when you do, please let us know!
This definitely needed, run into this same issue, the creating credentials endpoint creates new credentials each time even if data created with, is the same.
I believe n8n focusses more on unique IDs. This can be seen in all parts like credentials, workflow etc. For every create call a new unique id is created which is further used for delete , update and other calls.