Hi Praveen,
I used the following endpoint for the authorisation request:
https://api.freeagent.com/v2/approve_app?client_id=REDACTED&response_type=200
It looks like you’re missing a few query parameters from your authorisation request. You’re correctly supplying your client_id, although you’re missing the response_type=code argument.
Also, contrary to our documentation, you do need to supply your redirect_uri. This paramter used to be optional but we made it compulsory a few years ago to mitigate against potential man in the middle attacks. I’ll get that documentation updated now.
Here’s an example URL that you can copy, just be sure to replace example.com/oauth/callback and [redacted] with the values for your integration.
https://api.freeagent.com/v2/approve_app?redirect_uri=https%3A%2F%2Fexample.com%2Foauth%2Fcallback&response_type=code&client_id=[redacted]
Also does it not need the OAuth secret ? Since there is no mention of that on the API docs .
No, the OAuth Secret isn’t used in the authorisation request, it’s used in the next step where you swap the authorisation token for a refresh and access token.
I hope this helps!