# Connect to RLN Node

#### Connecting to  Node with mTLS

Follow these detailed steps to establish a secure connection to your node at Thunderstack.org, using the provided mTLS credentials:

**Step 1: Access Node Connection Details**

1. **Navigate to the Connect Page**: Open your web browser and go to the `/connect` page on Thunderstack.org. This page is specifically designed to provide you with the connection details for your node.

   * URL: `https://www.thunderstack.org/{nodeId}/connect`

   <figure><img src="/files/23I2ovXSC4is2qtwycL9" alt=""><figcaption></figcaption></figure>
2. **View Connection Details**: On the connect page, you will find 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 essential for establishing a secure connection.

**Step 2: Obtain Connection Credentials and URL**

1. **Download Credentials**: While on the `/connect` page, you will have the option to download two crucial files:
   * **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.
2. **Copy Endpoint URL**: The page will display the unique endpoint URL formatted as follows: `https://{userId}.thunderstack.org/nodes/{userId}/{nodeId}/`.&#x20;

<figure><img src="/files/cfyPnpEtxYL05sbXimAO" alt=""><figcaption></figcaption></figure>

**Step 3: Prepare the Request**

1. **Save the Downloaded Files**: Ensure that the private key and certificate files are saved in a secure location on your computer. You will need to reference these files when making the request.
2. **Example Request**: An example curl command will be shown on the `/connect` page. This serves as a template for how you should structure your request. Modify the example by replacing the placeholders with the actual paths to your saved key and certificate files.

<figure><img src="/files/ef8tZEVG71ht1qqkRGyJ" alt=""><figcaption></figcaption></figure>

#### Connecting to  Node with API token

Follow these detailed steps to establish a secure connection to your node at Thunderstack.org, using the provided API token:

Example usage with Curl:

`export THUNDERSTACK_API_TOKEN=<user barrier token>`\
`curl -H 'Authorization: Bearer ${THUNDERSTACK_API_TOKEN}' https://node-api.thunderstack.org/<user_id>/<node_id>`\
\
Follow <https://thunderstack.gitbook.io/rgb-rln-cloud/security/access-token-authorization> to obtain `THUNDERSTACK_API_TOKEN`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thunderstack.org/bitcoin-native-infrastructure/readme/getting-started-with-thunderstack-rgb-cloud/general/connect-to-rln-node.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
