> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apexgenius.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect n8n

> Connect one n8n Cloud or reachable self-hosted instance with its URL and public API key.

n8n connects to the signed-in ApexGenius user. It does not use a Salesforce organization or ApexGenius project.

## What you need

* The public URL of the n8n instance
* An n8n public API key
* An n8n plan that includes the public API

n8n states that its public API is unavailable during the n8n free trial. Self-hosted instances must be reachable from the ApexGenius backend. A localhost-only instance or an instance available only through a private VPN cannot be verified by the hosted gateway.

## Create the n8n API key

1. Sign in to n8n.
2. Open **Settings → n8n API**.
3. Choose **Create an API key**.
4. Give it a clear label and expiration.
5. If your n8n plan supports scoped API keys, choose the minimum scopes needed for the tools you intend to use.
6. Copy the key. n8n shows it for you to store securely.

## Connect the instance

1. In ApexGenius, open **Connections**.
2. Select **n8n**.
3. Choose **Connect n8n**.
4. Enter the instance URL, such as `https://your-workspace.app.n8n.cloud`.
5. Paste the API key.
6. Choose **Connect**. ApexGenius verifies the live instance before saving the connection.
7. In your AI client, start with a safe read such as “List my n8n workflows.”

The n8n connection belongs to your ApexGenius account. n8n's own projects, workflows, credentials, and permissions remain inside n8n.

## Review the available operations

When the n8n connection is active and healthy, its current 20 operations can appear in discovery. They cover workflow inspection, templates, generation, replacement, autofix, test runs, data tables, instance audit, and deletion. Your AI client still loads the same three public ApexGenius tools.

Review the exact names and access types on the [n8n connector page](https://www.apexgenius.ai/connectors/n8n) or in the [MCP tool reference](/reference/mcp-tools). The connected n8n account and ApexGenius authorization checks still determine what each operation can reach.

## Official n8n documentation

* <a href="https://docs.n8n.io/connect/n8n-api/authentication/" target="_blank" rel="noreferrer">Public API authentication and API key setup</a>
* <a href="https://docs.n8n.io/connect/n8n-api/" target="_blank" rel="noreferrer">n8n public API overview</a>
* <a href="https://docs.n8n.io/connect/n8n-api/api-reference/" target="_blank" rel="noreferrer">n8n public API endpoint reference</a>

The n8n documentation is authoritative for plan availability, API key scopes, and endpoint behavior.
