We are attempting to connect FreeAgent to n8n Cloud for a read-only property management and rent-monitoring workflow.
After numerous unsuccessful attempts, FreeAgent’s support team has referred us to this forum (support ticket #1338939).
Application details
-
Application name: ZLET Rent Monitoring
-
Application ID: 13698
-
Client ID: aoxJWDaD3fLDneQvDnQ5Dg
-
Environment: Production
-
Integration platform: n8n Cloud
-
OAuth grant type: Authorization Code
OAuth configuration
Authorization URL:
https://api.freeagent.com/v2/approve_app
Token URL:
https://api.freeagent.com/v2/token_endpoint
Redirect URI:
https://oauth.n8n.cloud/oauth2/callback
Scope: Blank
Problem
The FreeAgent login and application approval stages work successfully.
The application is also visible under Approved Applications within our FreeAgent account.
However, when n8n attempts to exchange the authorisation code for access and refresh tokens, the connection fails.
We have encountered two errors:
-
With Header authentication, n8n reports:
Expected JSON response from OAuth2 token endpoint (content-type: text/html; charset=utf-8) but received: HTTP Basic: Access denied. -
With Body authentication, n8n reports:
invalid_grant
Troubleshooting already completed
-
Confirmed the Client ID matches the FreeAgent Developer Dashboard.
-
Confirmed the redirect URI matches exactly.
-
Decoded the live authorisation URL and verified that it contains the correct redirect URI.
-
Generated a new OAuth Client Secret on 21 October 2026 at 09:41:39 UTC.
-
Re-entered the credentials in n8n.
-
Tested both Header and Body authentication.
-
Verified the application is approved in the FreeAgent company account.
None of these steps has produced a successful n8n connection.
Request
Could a FreeAgent engineer inspect the token endpoint logs for application 13698 on 21 October 2026 and identify why the token exchange is failing?
In particular:
-
Is the authorisation code being rejected because the redirect URI is absent or different in the token exchange?
-
Are the client credentials being rejected, or is the authorisation code invalid, expired or already consumed?
-
Is there a known compatibility issue with n8n Cloud’s OAuth2 API credential?
-
Can you confirm the exact supported configuration for n8n, including the token request’s authentication and encoding requirements?
The token exchange is handled internally by n8n, so we have not yet captured the raw outgoing POST request. The exact request timestamps and originating IP address are also not currently available.
We would appreciate a specific technical diagnosis rather than repeating configuration changes already tested.
We can supply additional sanitised diagnostic information as required. We will not post Client Secrets, authorisation codes or access tokens publicly.
Thank you.