N8n integration

Hi,
I am trying to use my Free Agent API with n8n but am having issues with setting it up. Here are my connection settings:

When I try to test my connection I am partly sucessful so I get the approval page.

and then approve:

But once I log in and approved the app I get a message saying “This site cant be reached, locahost refused to connect”

I know I can connect ok as I have tested using the curl command (with the latest token) so I know it can get to the API and back again so I dont know what the problem is with this connection setup.

Any thoughts?

change your Authorization url to

https://api.{YOURURL}.sandbox.freeagent.com/v2/approve_app

and access token to
https://api.sandbox.freeagent.com/v2/token_endpoint

this worked for me