> 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/documentation/use-octoxlabs/settings/data-source-settings/connectors.md).

# Connectors

Register, edit, test and delete the connectors that run your adapter connections, from the OctoXLabs console.

A connector is the service that talks to your source systems on behalf of OctoXLabs. Every adapter connection runs on one connector. OctoXLabs creates a connector named **Default** during installation. Add more connectors when a source system sits in a network that the main server cannot reach, and register each one on this page.

This page covers the console side: the **Connectors** list and the **Create Connector** form. To install the connector software on another server and get its token, see Install a remote connector. That page also lists the ports that must be open.

### Before you begin

* Applies to: OctoXLabs 6.x. From 6.9.0 only users with the Admin role can manage connectors.
* Required permission to open the page: `connectors.view_connector`.
* Required permissions to create, edit or delete: `connectors.add_connector`, `connectors.change_connector`, `connectors.delete_connector`. The test button needs `connectors.change_connector`.
* A running connector, its base URL (for example `https://your-connector-host:3443`) and its token.

### Open the Connectors list

Go to **Settings** > **Data Source Settings** > **Connectors**.

The table has these columns:

| Column               | What it shows                                   |
| -------------------- | ----------------------------------------------- |
| **#**                | The connector ID.                               |
| **Connector Name**   | The name you gave the connector.                |
| **URL**              | The base URL of the connector.                  |
| **Connection Count** | How many adapter connections use the connector. |

The list is ordered by **Connection Count** (highest first), then by name. Each row has edit and delete actions.

### Connector fields

| Setting                  | Type                           | Default | Description                                                                                                                                                         |
| ------------------------ | ------------------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connector Name**       | Text, up to 255 characters     | Empty   | Required. A name that tells you where the connector runs, for example `Branch office connector`.                                                                    |
| **URL**                  | Text, up to 255 characters     | Empty   | Required. The base URL of the connector. It must start with `http://` or `https://`, include a valid host name or IP address, and use a valid port if you give one. |
| **Token**                | Text, up to 41 characters      | Empty   | The token the platform sends to the connector to authenticate. For a remote connector, copy it from the connector server (see Install a remote connector).          |
| **HTTPS Proxy**          | Text, up to 255 characters     | Empty   | A proxy the platform uses when it calls this connector. Leave it empty for a direct connection.                                                                     |
| **HTTPS Proxy Username** | Text, up to 255 characters     | Empty   | The proxy user name, if the proxy needs authentication.                                                                                                             |
| **HTTPS Proxy Password** | Password, up to 255 characters | Empty   | The proxy password. After you save, the field shows ten asterisks. Leave the asterisks as they are to keep the stored password.                                     |

### Create a connector

{% stepper %}
{% step %}

#### Open the form

On the **Connectors** page, select **Create Connector**.
{% endstep %}

{% step %}

#### Fill in the details

Enter **Connector Name** and **URL**. Paste the **Token**. If the platform must reach the connector through a proxy, fill in the **HTTPS Proxy** fields.
{% endstep %}

{% step %}

#### Save

Select **Create**. The console shows **Connector created** and returns to the list.
{% endstep %}
{% endstepper %}

### Test a connector

Open the connector with the edit action, then select **Send Test**. The platform contacts the connector at its URL. On success the console shows **Successfully connected connector**. On failure it shows the error that came back. The test button appears only when you edit an existing connector, so save a new connector first.

{% hint style="info" %}
Select **Send Test** after every change to the URL, token or proxy. It checks that the connector answers, not that a source system behind it is reachable. To check a source system, test the adapter connection itself. See Connect an adapter.
{% endhint %}

### Use a connector in an adapter connection

Open **Adapters**, open the adapter, and select **Create New Connection**. In the **Connector** dropdown, choose your connector. The connection then collects its data through that connector. After this, the connector's **Connection Count** on the list goes up.

### Edit or delete a connector

* To change a connector, open it with the edit action, change the fields and select **Save**. The console shows **Connector saved**.
* To delete a connector, use the delete action on its row. The console shows **Connector has been deleted**. The **Default** connector cannot be deleted.

{% hint style="warning" %}
Check **Connection Count** before you delete a connector. Move its connections to another connector first, so no connection is left pointing at a connector that is gone.
{% endhint %}

### Troubleshooting

| Symptom or error message                                                             | Cause                                                                                                  | Fix                                                                                                                |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
| `Enter a valid URL starting with http:// or https://.`                               | The **URL** has no scheme or uses another one.                                                         | Start the URL with `http://` or `https://`.                                                                        |
| `Enter a valid URL with a valid port number.`                                        | The port after the colon is not a valid number.                                                        | Correct the port, for example `:3443`.                                                                             |
| `Enter a valid URL with a host name.` or `Enter a valid URL with a valid host name.` | The host part is missing or contains characters a host name cannot have.                               | Use a host name or IP address, for example `https://your-connector-host:3443`.                                     |
| `This object cannot be deleted.`                                                     | You tried to delete the **Default** connector.                                                         | Keep it. It cannot be removed.                                                                                     |
| **Send Test** fails                                                                  | The connector is stopped, the URL or port is wrong, a firewall blocks the path, or the proxy is wrong. | Check that the connector is running (see Install a remote connector), then check the URL, the ports and the proxy. |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Install a remote connector</strong></td><td>Install the connector software and get its token.</td><td></td></tr><tr><td><strong>Connect an adapter</strong></td><td>Pick a connector for a new adapter connection.</td><td></td></tr><tr><td><strong>File-based adapters</strong></td><td>Read files that you place on a connector server.</td><td></td></tr></tbody></table>
