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, 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 asvideos.example.com:
records at your DNS provider. A domain’s status is one of:
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
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
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’sname, 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
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 find it from the view page, or ask for it with
the view or embed page’s URL:
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.