---
title: "Custom Domains API Reference | Linkbreakers"
description: "Your own domain for short links and QR codes: add it, get the DNS records to set, and check it is live with its certificate."
canonical: "https://linkbreakers.com/help/api/custom-domains"
---

# Custom Domains

Your own domain for short links and QR codes: add it, get the DNS records to set, and check it is live with its certificate.

8 entries on this page

## The custom domain object

A branded hostname, such as qr.example.com, that the workspace's links and QR codes resolve under. Carries its DNS verification and TLS certificate state.

`activatedAt` string (date-time) 

Read-only

Timestamp when the domain became active after passing verification and certificate checks.

`certificateExpiresAt` string (date-time) 

Read-only

Expiry of the certificate currently serving this domain.

When the certificate currently serving this domain expires. While the status is STATUS\_RENEWAL\_PENDING the domain keeps working until this date, then stops.

`cloudflareHostnameStatus` string 

Read-only

Raw hostname status reported by the certificate provider, recorded at the last check.

`cloudflareSslStatus` string 

Read-only

Raw SSL status reported by the certificate provider, recorded at the last check.

`createdAt` string (date-time) 

Read-only

Timestamp when the domain was created

`id` string

Unique identifier for the custom domain (UUID)

`lastCheckedAt` string (date-time) 

Read-only

Timestamp of the last verification check

`lastError` string 

Read-only

Why the domain is not fully active.

Human-readable reason the domain is not fully active, as reported at the last check. Empty when the domain is healthy.

`linkCount` integer (int64) 

Read-only

Number of links using this domain.

How many links use this domain. Deleting the domain deletes all of them, with their analytics.

`name` string

The domain name

`rootDestination` string

Root destination URL.

URL where visitors are redirected when accessing your custom domain without a path (e.g., qr.yourdomain.com). This redirect is not tracked and serves purely for white-label purposes—preventing visitors from seeing linkbreakers.com branding. If not specified, redirects to linkbreakers.com by default.

`scheduledDeletionAt` string (date-time) 

Read-only

When the domain will be deleted if it is not fixed.

Set only while the domain no longer points to Linkbreakers and its owner has been emailed: the date the domain and its links (with their analytics) are deleted unless the domain points to Linkbreakers again. Cleared as soon as it does.

`status` enum

Verify the status of the domain.

Whether the domain is verified, certified and fully active

Allowed values

* `STATUS_INACTIVE` The domain is inactive. It was created but not checked yet.
* `STATUS_DOMAIN_PENDING` The domain is pending. Last time it was checked, it was not pointing to the correct Linkbreakers subdomain.
* `STATUS_VERIFICATION_PENDING` The domain is pending verification. Please verify through TXT record.
* `STATUS_CERTIFICATE_PENDING` The domain is pending certificate. The SSL certificate is not yet ready.
* `STATUS_ACTIVE` The domain is fully active
* `STATUS_RENEWAL_PENDING` The domain is still serving traffic on a valid certificate, but the renewal of that certificate cannot be validated. It stops working at certificateExpiresAt.
* `STATUS_EXPIRED` The certificate expired or was withdrawn. The domain no longer serves HTTPS.

`statusChangedAt` string (date-time) 

Read-only

When the domain entered its current status. For STATUS\_DOMAIN\_PENDING, the date since which the domain no longer points to Linkbreakers.

`updatedAt` string (date-time) 

Read-only

Timestamp when the domain was last updated

`workspaceId` string

The ID of the workspace this domain belongs to (UUID)

Example custom domain

```json
{
  "activatedAt": "2026-03-14T09:42:00Z",
  "certificateExpiresAt": "2026-06-12T09:41:00Z",
  "cloudflareHostnameStatus": "active",
  "cloudflareSslStatus": "pending_validation",
  "createdAt": "2026-03-14T09:30:00Z",
  "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "lastCheckedAt": "2026-03-21T06:00:00Z",
  "lastError": "The CNAME record of links.example.com does not point to domains.linkbreakers.com",
  "linkCount": 5,
  "name": "links.example.com",
  "rootDestination": "https://example.com",
  "scheduledDeletionAt": "2026-04-17T16:05:00Z",
  "status": "STATUS_ACTIVE",
  "statusChangedAt": "2026-03-18T16:05:00Z",
  "updatedAt": "2026-03-18T16:05:00Z",
  "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
}
```

### Parameters

`status` string 

query

Filter by the status of the custom domains to list. Optional.

* STATUS\_UNSPECIFIED: The status is not specified
* STATUS\_INACTIVE: The domain is inactive. It was created but not checked yet.
* STATUS\_DOMAIN\_PENDING: The domain is pending. Last time it was checked, it was not pointing to the correct Linkbreakers subdomain.
* STATUS\_VERIFICATION\_PENDING: The domain is pending verification. Please verify through TXT record.
* STATUS\_CERTIFICATE\_PENDING: The domain is pending certificate. The SSL certificate is not yet ready.
* STATUS\_ACTIVE: The domain is fully active
* STATUS\_RENEWAL\_PENDING: The domain is still serving traffic on a valid certificate, but the renewal of that certificate cannot be validated. It stops working at certificateExpiresAt.
* STATUS\_EXPIRED: The certificate expired or was withdrawn. The domain no longer serves HTTPS.

`pageSize` integer (int64) 

query

Maximum number of custom domains to return. Defaults to 100, capped at 1000.

`pageToken` string 

query

Cursor from a previous response's nextPageToken. Empty starts at the first page. Pages are ordered by (createdAt, id), which never change, so a record cannot move between pages while a client is walking them.

`cursor` string 

query

Opaque cursor from the previous page's nextPageToken. Same as pageToken; when both are sent, pageToken wins.

### Response

200

`customDomains` array of object

Fields: [The custom domain object](#custom-domains-object).

`nextPageToken` string

Cursor to continue listing custom domains. Empty on the last page.

`totalCount` integer (int64)

How many records exist in total, so a client can tell a complete answer from a page of one. A local-first client reads absence from this list as deletion, and may only do so when the count it was given matches what it received: without that, one page would look like the whole model and everything beyond it would be removed locally.

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X GET "https://api.linkbreakers.com/v1/custom-domains" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "customDomains": [
    {
      "activatedAt": "2026-03-14T09:42:00Z",
      "certificateExpiresAt": "2026-06-12T09:41:00Z",
      "cloudflareHostnameStatus": "active",
      "cloudflareSslStatus": "pending_validation",
      "createdAt": "2026-03-14T09:30:00Z",
      "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
      "lastCheckedAt": "2026-03-21T06:00:00Z",
      "lastError": "The CNAME record of links.example.com does not point to domains.linkbreakers.com",
      "linkCount": 5,
      "name": "links.example.com",
      "rootDestination": "https://example.com",
      "scheduledDeletionAt": "2026-04-17T16:05:00Z",
      "status": "STATUS_ACTIVE",
      "statusChangedAt": "2026-03-18T16:05:00Z",
      "updatedAt": "2026-03-18T16:05:00Z",
      "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
    }
  ],
  "nextPageToken": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wMy0xNFQwOTozMDowMFoifQ==",
  "totalCount": 3
}
```

### Parameters

`id` string 

path

Required

The ID of the custom domain to retrieve (UUID)

### Response

200

`customDomain` object

A branded hostname, such as qr.example.com, that the workspace's links and QR codes resolve under. Carries its DNS verification and TLS certificate state.

Fields: [The custom domain object](#custom-domains-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X GET "https://api.linkbreakers.com/v1/custom-domains/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "customDomain": {
    "activatedAt": "2026-03-14T09:42:00Z",
    "certificateExpiresAt": "2026-06-12T09:41:00Z",
    "cloudflareHostnameStatus": "active",
    "cloudflareSslStatus": "pending_validation",
    "createdAt": "2026-03-14T09:30:00Z",
    "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
    "lastCheckedAt": "2026-03-21T06:00:00Z",
    "lastError": "The CNAME record of links.example.com does not point to domains.linkbreakers.com",
    "linkCount": 5,
    "name": "links.example.com",
    "rootDestination": "https://example.com",
    "scheduledDeletionAt": "2026-04-17T16:05:00Z",
    "status": "STATUS_ACTIVE",
    "statusChangedAt": "2026-03-18T16:05:00Z",
    "updatedAt": "2026-03-18T16:05:00Z",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  }
}
```

### Parameters

`id` string 

path

Required

The ID of the custom domain (UUID)

### Response

200

`setupGuide` object

Everything needed to connect a custom domain, derived from its DNS. Says who manages the domain, where to go, and which records to add.

12 child attributes

`customDomainId` string

The custom domain ID (UUID)

`dnsProvider` enum

The DNS provider managing the zone

Allowed values

* `DNS_PROVIDER_UNKNOWN` The nameservers do not match any provider Linkbreakers knows
* `DNS_PROVIDER_CLOUDFLARE`
* `DNS_PROVIDER_GODADDY`
* `DNS_PROVIDER_NAMECHEAP`
* `DNS_PROVIDER_SQUARESPACE`
* `DNS_PROVIDER_IONOS`
* `DNS_PROVIDER_OVHCLOUD`
* `DNS_PROVIDER_GANDI`
* `DNS_PROVIDER_HOSTINGER`
* `DNS_PROVIDER_WIX`
* `DNS_PROVIDER_AWS_ROUTE53`
* `DNS_PROVIDER_GOOGLE_CLOUD_DNS`
* `DNS_PROVIDER_DIGITALOCEAN`
* `DNS_PROVIDER_VERCEL`
* `DNS_PROVIDER_PORKBUN`
* `DNS_PROVIDER_NAME_COM`
* `DNS_PROVIDER_HOVER`
* `DNS_PROVIDER_NETWORK_SOLUTIONS`
* `DNS_PROVIDER_BLUEHOST`
* `DNS_PROVIDER_NETLIFY`
* `DNS_PROVIDER_AZURE_DNS`
* `DNS_PROVIDER_DYNADOT`
* `DNS_PROVIDER_NAMESILO`
* `DNS_PROVIDER_UNSPECIFIED` Not detected

`dnsProviderName` string

Display name of the DNS provider, empty when unknown

`dnsSettingsUrl` string

Link to the provider's DNS settings for this zone, or to its domain list when no direct link exists. Empty when the provider is unknown.

`domain` string

The custom domain, e.g. "qr.example.com"

`hints` array of enum

Provider-specific advice to show alongside the records

`host` string

The domain relative to the zone, e.g. "qr". Empty when the domain is the zone itself.

`hostFieldLabel` string

What the provider calls the host field of a DNS record, e.g. "Name" or "Host"

`nameservers` array of string

The zone's nameservers

`oneClickSetup` object

Present only when the provider supports one-click setup for Linkbreakers

2 child attributes

`applyUrl` string

URL that opens the DNS provider's consent screen with every record filled in. The provider sends the user back to Linkbreakers when done.

`providerName` string

Name of the DNS provider applying the records

`records` array of object

Records to create, in the order to add them

7 child attributes

`detected` boolean

Whether the record is already published with this value, read from public DNS when the guide was built

`host` string

What to type in the provider's host field: the name relative to the zone, e.g. "qr". For the zone apex, "@", or empty when the provider wants the field left blank.

`name` string

Fully qualified record name, e.g. "qr.example.com"

`purpose` enum

Why the record is needed

Allowed values

* `DNS_RECORD_PURPOSE_ROUTING` Sends the domain's traffic to Linkbreakers
* `DNS_RECORD_PURPOSE_CERTIFICATE_DELEGATION` Lets the certificate provider issue and renew the HTTPS certificate on its own
* `DNS_RECORD_PURPOSE_OWNERSHIP` Proves ownership of the domain
* `DNS_RECORD_PURPOSE_CERTIFICATE_VALIDATION` Validates the certificate currently being issued

`required` boolean

Whether setup is incomplete without it. The routing record and the certificate delegation record (which keeps HTTPS renewing on its own) are both required.

`type` enum

Record type

Allowed values

* `DNS_RECORD_TYPE_CNAME` CNAME record
* `DNS_RECORD_TYPE_TXT` TXT record

`value` string

Record value (CNAME target or TXT content)

`zone` string

The DNS zone the domain lives in, usually the registered domain, e.g. "example.com"

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X GET "https://api.linkbreakers.com/v1/custom-domains/{id}/setup-guide" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "setupGuide": {
    "customDomainId": "d290f1ee-6c54-4b01-90e6-d701748f0851",
    "dnsProvider": "DNS_PROVIDER_CLOUDFLARE",
    "dnsProviderName": "Cloudflare",
    "dnsSettingsUrl": "https://dns.example.com/zones/example.com/records",
    "domain": "links.example.com",
    "hints": [
      "CUSTOM_DOMAIN_SETUP_HINT_CLOUDFLARE_DNS_ONLY"
    ],
    "host": "links",
    "hostFieldLabel": "Name",
    "nameservers": [
      "ada.ns.cloudflare.com",
      "bob.ns.cloudflare.com"
    ],
    "oneClickSetup": {
      "applyUrl": "https://dns.example.com/v2/domainTemplates/providers/linkbreakers.com/services/custom-domain/apply?domain=example.com&host=links",
      "providerName": "Cloudflare"
    },
    "records": [
      {
        "detected": false,
        "host": "links",
        "name": "links.example.com",
        "purpose": "DNS_RECORD_PURPOSE_ROUTING",
        "required": true,
        "type": "DNS_RECORD_TYPE_CNAME",
        "value": "domains.linkbreakers.com"
      }
    ],
    "zone": "example.com"
  }
}
```

### Parameters

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`name` string

The domain name to register. It must be a valid DNS and not already registered in Linkbreakers. Subdomains are also supported.

### Response

200

`customDomain` object

A branded hostname, such as qr.example.com, that the workspace's links and QR codes resolve under. Carries its DNS verification and TLS certificate state.

Fields: [The custom domain object](#custom-domains-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/custom-domains" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "name": "my-domain.com"
}'
```

Response 200

```json
{
  "customDomain": {
    "activatedAt": "2026-03-14T09:42:00Z",
    "certificateExpiresAt": "2026-06-12T09:41:00Z",
    "cloudflareHostnameStatus": "active",
    "cloudflareSslStatus": "pending_validation",
    "createdAt": "2026-03-14T09:30:00Z",
    "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
    "lastCheckedAt": "2026-03-21T06:00:00Z",
    "lastError": "The CNAME record of links.example.com does not point to domains.linkbreakers.com",
    "linkCount": 5,
    "name": "links.example.com",
    "rootDestination": "https://example.com",
    "scheduledDeletionAt": "2026-04-17T16:05:00Z",
    "status": "STATUS_ACTIVE",
    "statusChangedAt": "2026-03-18T16:05:00Z",
    "updatedAt": "2026-03-18T16:05:00Z",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  }
}
```

### Parameters

`id` string 

path

Required

The ID of the custom domain to verify (UUID)

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Response

200

`customDomain` object

A branded hostname, such as qr.example.com, that the workspace's links and QR codes resolve under. Carries its DNS verification and TLS certificate state.

Fields: [The custom domain object](#custom-domains-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/custom-domains/{id}:verify" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "customDomain": {
    "activatedAt": "2026-03-14T09:42:00Z",
    "certificateExpiresAt": "2026-06-12T09:41:00Z",
    "cloudflareHostnameStatus": "active",
    "cloudflareSslStatus": "pending_validation",
    "createdAt": "2026-03-14T09:30:00Z",
    "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
    "lastCheckedAt": "2026-03-21T06:00:00Z",
    "lastError": "The CNAME record of links.example.com does not point to domains.linkbreakers.com",
    "linkCount": 5,
    "name": "links.example.com",
    "rootDestination": "https://example.com",
    "scheduledDeletionAt": "2026-04-17T16:05:00Z",
    "status": "STATUS_ACTIVE",
    "statusChangedAt": "2026-03-18T16:05:00Z",
    "updatedAt": "2026-03-18T16:05:00Z",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  }
}
```

### Parameters

`id` string 

path

Required

The ID of the custom domain to update (UUID)

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`rootDestination` string

The root destination URL (optional).

URL where visitors are redirected when accessing your custom domain without a path (e.g., qr.yourdomain.com). This redirect is not tracked and serves purely for white-label purposes—preventing visitors from seeing linkbreakers.com branding. Leave empty to redirect to linkbreakers.com by default.

### Response

200

`customDomain` object

A branded hostname, such as qr.example.com, that the workspace's links and QR codes resolve under. Carries its DNS verification and TLS certificate state.

Fields: [The custom domain object](#custom-domains-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X PATCH "https://api.linkbreakers.com/v1/custom-domains/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "rootDestination": "https://example.com"
}'
```

Response 200

```json
{
  "customDomain": {
    "activatedAt": "2026-03-14T09:42:00Z",
    "certificateExpiresAt": "2026-06-12T09:41:00Z",
    "cloudflareHostnameStatus": "active",
    "cloudflareSslStatus": "pending_validation",
    "createdAt": "2026-03-14T09:30:00Z",
    "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
    "lastCheckedAt": "2026-03-21T06:00:00Z",
    "lastError": "The CNAME record of links.example.com does not point to domains.linkbreakers.com",
    "linkCount": 5,
    "name": "links.example.com",
    "rootDestination": "https://example.com",
    "scheduledDeletionAt": "2026-04-17T16:05:00Z",
    "status": "STATUS_ACTIVE",
    "statusChangedAt": "2026-03-18T16:05:00Z",
    "updatedAt": "2026-03-18T16:05:00Z",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  }
}
```

### Parameters

`id` string 

path

Required

The ID of the custom domain to delete (UUID)

### Response

200

An empty JSON object.

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X DELETE "https://api.linkbreakers.com/v1/custom-domains/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

---

Source: https://linkbreakers.com/help/api/custom-domains
