# Custom domains

Serve a project at your own domain, like api.acme.com, with an automatic HTTPS certificate.

Custom domains are available on Pro and Business, and during the trial.

## Add a domain

1. Open the project's settings → **Domains** and enter a host name, such as `api.acme.com`.
2. Wisp shows two DNS records to add at your DNS provider:

| Type | Name | Value | Why |
| --- | --- | --- | --- |
| `CNAME` | `api.acme.com` | `<project>.fn.wispfn.com` | Routes the domain to Wisp |
| `TXT` | `_wisp-challenge.api.acme.com` | `wisp-verify=…` | Proves you own the domain |

3. Press **Verify**. When the TXT record is found, Wisp requests an HTTPS certificate. The domain becomes **active** once the certificate is issued — usually within minutes.

DNS changes can take a few minutes to spread. If verification fails, check the records and press **Verify** again.

> [!NOTE]
> Use a subdomain (`api.acme.com`). Most DNS providers can't put a CNAME on an apex domain like `acme.com`.

## Primary domain and redirects

Mark one domain as **primary**. You can then redirect requests from the project's default `fn.wispfn.com` address to it, so callers always see your domain. Calls between your own functions aren't redirected.

## Remove a domain

Remove it in **Domains**. Requests to it stop being served; remove the DNS records afterwards.
