> For the complete documentation index, see [llms.txt](https://docs.thiicket.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thiicket.com/regions-and-connecting.md).

# Regions and Connecting

To connect, point your existing application or client to one of several hostnames below and ensure your client is setup to authenticate using your API key as the password

```
$ redis-cli -h xyz.connect.thiicket.com
xyz.connect.thiicket.com:6379> AUTH 6ac806cc-adce-465a-b5f7-25d6748c2368
OK
xyz.connect.thiicket.com:6379> 
```

{% content-ref url="/pages/-MDoM1Ki21jPh79jKRwf" %}
[Quick Start](/master.md)
{% endcontent-ref %}

| Region                      | Hostname                |
| --------------------------- | ----------------------- |
| Automatic                   | connect.thiicket.com    |
| Ashburn, Virginia (US East) | iad.region.thiicket.com |

{% hint style="info" %}
Need lower latency or a closer region? [Let us know](mailto:support@thiicket.com?Subject=Region%20Suggestion) where you want our next region to be
{% endhint %}

| Service           | Port |
| ----------------- | ---- |
| Standard          | 6379 |
| TLS (Recommended) | 6380 |

Currently TLS is not supported on automatic routing (connect.thiicket.com), to make use of TLS please connect directly to your target region

## Using TLS

### NodeJS

```javascript
const redis = require("redis");

const client = redis.createClient("rediss://iad.region.thiicket.com:6380", {
    auth_pass: "INSERT YOUR API KEY HERE"
});

client.set("A", "B", (err, res) => {
    if (err != null) console.log(err)
    console.log(res);

    client.get("A", (err, res) => {
        if (err != null) console.log(err)
        console.log(res);
        process.exit(0);
    })
});
```

```javascript
$ node index.js 
OK
B
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.thiicket.com/regions-and-connecting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
