> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trimyourl.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom domains

> Shorten links on a TrimYourl subdomain or on go.yourbrand.com.

Every workspace can use a TrimYourl subdomain. You can also connect a hostname you own, such as `go.client.com`, so short links look like the brand.

New links use the workspace default domain. You can pick another domain on each link. List domains with `GET /api/v1/domains`.

## TrimYourl subdomain

Agencies get a managed hostname per client, `{client}.trimyourl.com`. Companies get one for the brand. It is always available and does not need DNS at the registrar.

Use it while you wait on a custom domain, or keep it as a fallback.

## Add a custom hostname

> [!NOTE]
>
> Use a **subdomain** such as `go.client.com` so the website can stay on the root domain. Apex domains (`client.com`) are not supported.

**1. Open Settings**

In the app, go to **Settings → Domains**.

**2. Add the hostname**

Enter a subdomain you control, for example `go.client.com`.

**3. Create two DNS records**

At your registrar, add the records TrimYourl shows:

| Type | Host | Value |
| - | - | - |
| `CNAME` | `go` (the subdomain label) | `trimyourl.com` |
| `TXT` | `_tyl-challenge.go` | The token shown in Settings |

The CNAME target is your app domain (`trimyourl.com` in production). The TXT host is `_tyl-challenge.{subdomain}`.

**4. Verify DNS**

Press **Verify DNS**. When both records are visible, the hostname is marked verified and an SSL certificate is issued and renewed automatically.

You can make a verified custom domain the default for new links. A custom domain with no links on it can be removed.

## What to expect

* Certificates are issued on demand when the hostname first receives traffic.
* DNS can take a few minutes, sometimes longer, depending on the registrar.
* Hostnames that belong to TrimYourl (`trimyourl.com`, `www`, `app`, and similar labels) cannot be added as custom domains.
* Plan domain caps: Trial 1, Studio 2, Bench 10, Shop 25.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.