I’m calling a trustpilot endpoint (https://invitations-api.trustpilot.com/v1/private/business-units/60520db4bc25b30001dadc3a/email-invitations) with an access token in the header.
This all works fine, but the accesstoken is only valid for 4 days.
I can request a new access token before every call, but requesting an access token too often results in an error:
It’s also possible to refresh the access token using the refresh token, but the refresh is also only valid for one time.
Does anyone have any pointers on how to go around these issues?
It sounds like you’re using a “Webhooks by Zapier” step to access Trustpilot’s API directly, is that right?
If so, I’d look at switching to the official Trustpilot integration. https://zapier.com/apps/trustpilot/integrations#triggers-and-actions The integration looks like it supports a refresh flow, so you won’t have to renew the tokens yourself.