How to connect n8n node in docker

I have n8n installed with docker.

Adding n8n node that reads many workflows It won’t connect.

Created api and set the base url to localhost/api/V1 but it won’t conect

1 Like

Others may need a LOT more info about your setup, components, and goals, to offer a suggestion. There are guidelines for this every time you click “New Topic”, so you might want to fill in all of those to get a dialogue going that wont waste your, or their, time.

1 Like

Hey @Hadas Welcome to the n8n community

To get the n8n node working from your Docker-hosted instance, you need two key things:

  1. The correct Base URL
  2. The correct API key header

Currently, localhost/api/V1 is incorrect because:

  • It’s missing the port number.
  • The path should be /api/v1 (lowercase v) case-sensitive.

1. Set the correct Base URL

Depending on how you access n8n:

  • If you access n8n locally at http://localhost:5678, use:
    http://localhost:5678/api/v1

  • If you use a domain like https://n8n.example.com, use:
    https://n8n.example.com/api/v1

Note: The built-in n8n node doesn’t support SSL. If your instance is only reachable via HTTPS, use an HTTP Request node instead.

2. Generate and use an API key

  • In n8n UI, go to Settings → n8n API, create an API key, and copy it.
  • In the n8n credential setup:
    • Enter the Base URL above.
    • Enter the API Key you copied; it’s sent as X-N8N-API-KEY.

Using it in the “Get Many Workflows” node

  • Resource: Workflow
  • Operation: Get Many
  • Credentials: select the API key credential you created.

Troubleshooting tips

  • Ensure the URL path is exactly /api/v1 (lowercase v).
  • Match the host/port with your n8n instance.
  • Check the exact error message (404, connection refused, etc.) for clues.

If you share the error message, I can help troubleshoot further.

2 Likes

Ok, since I installed inside docker than the base url had to be:
http://host.docker.internal:5678/api/v1/
So now it is ok. Thanks everyone

Hey @Hadas If that worked for you kindly mark that as a solution

1 Like

I wished I could know how. I do not see any button to mark this as a solution.

No worries! Just mark it whenever you figure it out!
Cheers!

I asked ai and the reply was that it depands on the trust level I have from the community so therefore the checkbox doesn’t appear for me.

Ah! Anyways Cheers for the solution you got haha :smile: