Skip to main content
POST
Add a custom domain

Authorizations

X-API-Key
string
header
required

Your API key, for example dlk_live_.... Create one in the dashboard under Settings → API Keys. Keys are shown once at creation and stored only as a hash, so they cannot be recovered.

Body

application/x-www-form-urlencoded
domain_name
string
required

The fully-qualified hostname to register, for example links.acme.com. Required on create.

verification_method
string
default:DNS Record

How domain ownership is proven: DNS Record (default) or File Upload.

What the domain is for: Shortlinks or Dynamic Links. Defaults to Shortlinks.

Response

Success.

data
object

The endpoint's payload.