> ## Documentation Index
> Fetch the complete documentation index at: https://utexo-e7ed9bd0-update.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect to RLN Node

### Connecting to Node with mTLS

Follow these detailed steps to establish a secure connection to your node using the provided mTLS credentials:

<Steps>
  <Step title="Access Node Connection Details" titleSize="h3">
    * Navigate to the Connect Page: open your web browser and go to the /connect page. This page provides the connection details for your node. URL: `https://www.thunderstack.org/{nodeId}/connect`
          <Frame caption="Connect page">
            <img src="https://mintcdn.com/utexo-e7ed9bd0-update/PxPD_LwdJ-NvquOf/images/image-14.png?fit=max&auto=format&n=PxPD_LwdJ-NvquOf&q=85&s=fa91f21f619cffbf930a4707ba36d3ce" alt="Image" width="784" height="367" data-path="images/image-14.png" />
          </Frame>
    * View Connection Details: the connect page displays the unique endpoint URL for your node, along with the private key and certificate required for the mTLS connection. These credentials are automatically generated for your session and are required to establish a secure connection.
  </Step>

  <Step title="Obtain Connection Credentials and URL" titleSize="h3">
    * Download Credentials from the /connect page:
      * Private Key: a `.key` file (e.g., `privateKey.key`) containing your private key.
      * Certificate: a `.pem` file (e.g., `certificate.pem`) containing your public key certificate.
    * Copy Endpoint URL: the page will display the unique endpoint URL formatted like: `https://{userId}.thunderstack.org/nodes/{userId}/{nodeId}/`

    <Frame caption="Credentials and endpoint">
      <img src="https://mintcdn.com/utexo-e7ed9bd0-update/PxPD_LwdJ-NvquOf/images/image-11.png?fit=max&auto=format&n=PxPD_LwdJ-NvquOf&q=85&s=8c09ee93597f19f5cdb30260e8b37b4f" alt="Image" width="714" height="575" data-path="images/image-11.png" />
    </Frame>
  </Step>

  <Step title="Prepare the Request" titleSize="h3">
    * Save the downloaded files in a secure location on your computer. You will reference these files when making requests.
    * Use the example curl command shown on the /connect page as a template. Modify the example by replacing placeholders with the actual paths to your saved key and certificate files.
          <Frame caption="Example curl">
            <img src="https://mintcdn.com/utexo-e7ed9bd0-update/PxPD_LwdJ-NvquOf/images/image-8.png?fit=max&auto=format&n=PxPD_LwdJ-NvquOf&q=85&s=9ba2a2986a104c61adbf1be15de090ef" alt="Image" width="704" height="107" data-path="images/image-8.png" />
          </Frame>
      Example pattern (replace paths/placeholders accordingly):

    ```text theme={null}
    curl --key /path/to/privateKey.key --cert /path/to/certificate.pem https://{userId}.thunderstack.org/nodes/{userId}/{nodeId}/
    ```
  </Step>
</Steps>

### Connecting to Node with API token

Follow these steps to connect using an API token.

* Example usage with curl:

```text theme={null}
export CLOUD_API_TOKEN=<your_token>
curl -H 'Authorization: Bearer ${CLOUD_API_TOKEN}' https://node-api.thunderstack.org/<user_id>/<node_id>
```

* Follow this link to obtain CLOUD\_API\_TOKEN.
