> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/n/n8n-self-hosted.md).

# n8n Self Hosted

n8n is a workflow automation platform. OctoXLabs reads the users of your self-hosted n8n instance through the n8n public API.

## Use cases

* List the n8n Self Hosted users.

```
Adapters = n8n-self-hosted
```

## Before you begin

### Network

| Source              | Destination       | Port                         | Protocol                           |
| ------------------- | ----------------- | ---------------------------- | ---------------------------------- |
| OctoXLabs connector | Your n8n instance | 5678 (default, configurable) | HTTPS (HTTP when Is Secure is off) |

### Required permissions

| Scope or role | Permission | Needed for              |
| ------------- | ---------- | ----------------------- |
| n8n API key   | Read       | Users (`/api/v1/users`) |

The n8n public API users endpoint can be limited by the role of the key owner. Not verified from the sources.

## Create credentials in n8n Self Hosted

{% stepper %}
{% step %}

### Open the API settings

Log in to your n8n instance or dashboard and open the Settings menu in the bottom-left corner.
{% endstep %}

{% step %}

### Create an API key

Select the n8n API tab and select Create API Key.
{% endstep %}

{% step %}

### Name the key

Provide a name for the key and finish the creation. Save the key in a secure place.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                   | Required | Type    | Default | Description                                                            |
| --------------------------- | -------- | ------- | ------- | ---------------------------------------------------------------------- |
| URL (`url`)                 | Yes      | String  |         | Network address of your n8n instance, without `http://` or `https://`. |
| N8N API Key (`n8n_api_key`) | Yes      | String  |         | n8n API key.                                                           |
| Port (`port`)               | No       | Integer | 5678    | n8n port.                                                              |
| Is Secure (`is_secure`)     | No       | Boolean | True    | Use HTTPS.                                                             |
| Per Page (`per_page`)       | No       | Integer | 250     | Records per request.                                                   |
| Timeout (`timeout`)         | No       | Integer | 30      | Seconds to wait for API responses.                                     |
| Proxy (`proxy`)             | No       | String  |         | Proxy host and port, sent as an `http://` proxy URL.                   |

## Troubleshooting

| Error message                                                      | Cause                                             | Fix                                                               |
| ------------------------------------------------------------------ | ------------------------------------------------- | ----------------------------------------------------------------- |
| Unknown error, Please contact the development team for assistance. | The API returned a status other than 200 and 401. | Check the URL, port and API key. Contact support if it continues. |

## Change history
