Hi @King_Samuel_David thanks for your suggestion. I am not using Zoho Node, since that one supports just Zoho CRM Scope (we need different scopes for other services).
Problem with manual HTTP request is that the token needs renewal and we need Zoho Auth to refresh the token automatically. Your solution would work with static token. for an hour or so.
Access Tokens have limited validity. In most general cases the access tokens expire in one hour. Until then, the access token has unlimited usage. Once it expires, your app will have to use the refresh token to request for a new access token. Redirect to the following POST URL with the given params to get a new access token
https://accounts.zoho.com/oauth/v2/token?
Parameter
Description
refresh_token
REFRESH TOKEN which is obtained in the above step
client_id
Client ID obtained during Client Registration
client_secret
Client secret obtained during Client Registration
redirect_uri
This param should be same redirect url mentioned while registering Client
Hi, just want to shed light on this. So you won’t be able to get it work with oauth2 in n8n. I have tried the Zoho Mail api which had the same issue. The output of the Zoho API isn’t what n8n expects so after 1 hour it stops no matter what.
A work around that would work is to use multiple nodes to refresh the token and then save it.