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

# Custom domains

> Serve a workspace's link pages on your own domain.

A link's view and embed pages are at `rendermate.com/link/<id>` and `rendermate.com/link/<id>/embed`.
With a custom domain they're also at `videos.example.com/link/<id>` and
`videos.example.com/link/<id>/embed`. A custom domain serves only its own workspace's links. Any
other path on it goes to rendermate.com.

Members manage a workspace's domains in the [dashboard](https://rendermate.com/dashboard), under
**link domains**. With the API, the routes below act in the key's workspace. Reading domains needs
`assets:read`; adding, changing and removing them needs `assets:publish`.

## Add a domain

Use a subdomain, such as `videos.example.com`:

```bash theme={null}
curl https://api.rendermate.com/v1/domains \
  -H "Authorization: Bearer $RENDERMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "videos.example.com"}'
```

```json theme={null}
{
  "name": "videos.example.com",
  "status": "pending",
  "default": false,
  "records": [
    { "type": "CNAME", "name": "videos.example.com", "value": "cname.vercel-dns.com" }
  ],
  "created_at": "2026-12-02T10:00:00Z"
}
```

Set the `records` at your DNS provider. A domain's `status` is one of:

| Status | Meaning |
| - | - |
| `pending` | Its DNS doesn't point at rendermate yet |
| `verifying` | It also needs the `TXT` record in `records`, which proves the domain is yours |
| `active` | It serves your links' pages, with a certificate rendermate issues |

`GET /v1/domains/{name}` checks the domain again and shows its status now. `GET /v1/domains` lists
the workspace's domains, up to 10.

## Use it for links

```bash theme={null}
curl -X PATCH https://api.rendermate.com/v1/domains/videos.example.com \
  -H "Authorization: Bearer $RENDERMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"default": true}'
```

Once a domain is `default`, every link in the workspace shows its `url` and `embed_url` on it.
Only an `active` domain can be made default, and a workspace has at most one. Its links'
rendermate.com URLs keep working. `{"default": false}` moves link URLs back to rendermate.com.

## Remove a domain

```bash theme={null}
curl -X DELETE https://api.rendermate.com/v1/domains/videos.example.com \
  -H "Authorization: Bearer $RENDERMATE_API_KEY"
```

Its link pages stop answering on it, and link URLs move back to rendermate.com.

## What does a link show when it's pasted into Slack, X or iMessage?

A link's view page unfurls as a video card: its title is the link's `name`, else its document's
name, its description is its length, and its image is a 1200×630 share card of the poster with a
play button. Apps that show a player from the page's `og:video` and `twitter:player` tags play
the link's embed page. Apple Messages plays a few silent seconds of the video in the message
instead. A link to a [document that has only sound](https://rendermate.com/docs/documents.md#can-a-document-have-only-sound)
unfurls as audio: its player is an audio bar, and Apple Messages shows its card without a clip.
This works the same on rendermate.com and on a custom domain.

Apps that embed with [oEmbed](https://oembed.com) find it from the view page, or ask for it with
the view or embed page's URL:

```bash theme={null}
curl "https://videos.example.com/oembed?url=https://videos.example.com/link/lnk_…"
```

It answers with a `video` whose `html` is an `<iframe>` of the embed page, sized to the video
inside 960×540 or the `maxwidth` and `maxheight` you give. A link that needs a password answers
`401`, and one that doesn't play, such as a revoked or expired link, answers `404`; neither shows
a preview.


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