HomeGuidesAPI ReferenceChangelogDiscussions
Discussions

Discussions

Ask a Question
Back to All

Authoriation code for API

Hello I am creating a bot to automate a few functionalities with Factorial. I get the authorization code from the Oauth application page as specified in the documentation:

You can also request an authorization code directly from the Oauth application page, useful in cases
of integrations with a single user like an external API.

But when I try to get the access token for a second time it returns a 400 error code and I have to generate a new authorization code from the website, and it will only work for the first request.

My question is:
How can I get an authorization code that doesn´t change for every request, so I can use it from my server application without the need to change it every time?