I am currently on the automation of creating my quotes on Sage, via a form on my website.
However, I cannot request a token without going through the authentication box on sage.com. Is there a way to pass login credentials to Sage implicitly? Is it possible to automate the quote creation process without human intervention?
Thank you for your help
Hi valentin diogo
sorry for not responding earlier to your question.
In order to fulfill all OAuth2 specifications, you need at least one human interaction when authenticating an API client. This is when you retrieve the auth token (the user needs to log in and click Allow).
After you have exchanged this auth token against your first access token and refresh token, there is no need for any human interaction anymore, because you can use the refresh token to get a new access token (refresh tokens are valid for 30 days).
In conclusion, as long as you have a valid refresh token, no further human interaction is needed to use the API.
I hope this helps.
Thank you for your help.
I was thinking of using the api to automate the creation of quotes for my own company and therefore through my own authentication to my account.
I don't know if this is possible with the api.
Sorry for my formulation, I don't know if it's very clear.
Thanks again for your help.
sure, you can use the API for exactly this. But there is no way to not go through the initial auth process, even if you are the only one using your integration.