Hi everyone,
I’m trying to integrate my n8n Cloud workflow with my Neo4j AuraDB instance. My goal is to send Cypher queries from n8n using an HTTP Request node. However, I keep encountering issues when trying to use the REST API.
What I’ve Tried:
- Endpoint:
• I’m using the URL:
https://<your-instance>.databases.neo4j.io/db/neo4j/query/v2
(Replacing and assuming the database name is “neo4j”.)
- Authentication & Headers:
• I’m using Basic Auth with my AuraDB credentials.
• I have explicitly set the headers:
• Content-Type: application/json
• Accept: application/json
- Payloads:
• I initially tried:
{
"query": "RETURN 1 AS test",
"parameters": {},
"resultDataContents": ["row"]
}
• I also attempted variations (adding optional fields like “includeStats”: false), but all return errors.
- Error Messages:
• When I test with Postman, I get a 403 Forbidden error with the message “Denied by administrative rules.”
• In n8n, I get a 400 Bad Request error with the message “Bad Request - please check your parameters [item 0].”
My Understanding:
It seems that Neo4j AuraDB is optimized for Bolt connections and is blocking REST API calls for security reasons. Unfortunately, n8n Cloud does not allow me to install additional libraries (like the official neo4j-driver) to connect via Bolt directly. The options I’ve considered so far are:
• Setting up a proxy service (to convert HTTP requests from n8n into Bolt queries),
• Self-hosting n8n (to install the Neo4j driver and use a Code node for direct Bolt connectivity).
My Question:
Is there any configuration or workaround available to enable REST access for Neo4j AuraDB so that I can use n8n Cloud directly? Or, what is the best practice for integrating Neo4j AuraDB with a no-code/low-code workflow platform like n8n given these constraints?
Any advice or guidance would be greatly appreciated.
Thanks in advance!