Skip to main content
Documentation
API Reference

Domains

Custom Domains API endpoints to register, list, delete, and verify the custom domains that serve your short links, with SSL and DNS status for each.

Register a Domain

POST/domains

Add a custom domain

Request Body

FieldTypeDescription
domain*stringMust be a subdomain such as links.yourapp.com. Root domains, IP addresses and reserved domains (aplnk.to, warplink.app) are not allowed.e.g. links.myapp.com

Responses

201Domain created
FieldTypeDescription
idstring
org_idstring
domainstringe.g. links.myapp.com
verifiedboolean
ssl_statusstring
verification_tokenstring
verified_atstring | null
claimed_atstring | nullSet when this organization proved DNS control and won the exclusive claim on this domain. Null for a pending, unproven claim.
serving_state"active" | "grace" | "inactive"Computed from the plan and any trial grace window.
grace_untilstring | nullPresent only while serving_state is grace.
is_trialbooleanTrue for a free-tier trial domain.
trial_ends_atstring | nullThe trial's hard end date. Null when the domain is not a trial.
trial_data_reset_atstring | nullThe next monthly analytics reset for a trial domain. Null when the domain is not a trial.
created_atstring
updated_atstring
400Validation error
FieldTypeDescription
error*object
401Unauthorized
FieldTypeDescription
error*object
403Forbidden, plan upgrade required, or domain limit exceeded
FieldTypeDescription
error*object
409Domain already registered
FieldTypeDescription
error*object

List Domains

GET/domains

List custom domains

Parameters

NameTypeInDescription
limitintegerquery
offsetintegerquery

Responses

200List of custom domains
FieldTypeDescription
dataobject[]
paginationobject
401Unauthorized
FieldTypeDescription
error*object
403Forbidden
FieldTypeDescription
error*object

Get a Domain

GET/domains/{id}

Get a custom domain

Parameters

NameTypeInDescription
id*stringpath

Responses

200Domain details
FieldTypeDescription
idstring
org_idstring
domainstringe.g. links.myapp.com
verifiedboolean
ssl_statusstring
verification_tokenstring
verified_atstring | null
claimed_atstring | nullSet when this organization proved DNS control and won the exclusive claim on this domain. Null for a pending, unproven claim.
serving_state"active" | "grace" | "inactive"Computed from the plan and any trial grace window.
grace_untilstring | nullPresent only while serving_state is grace.
is_trialbooleanTrue for a free-tier trial domain.
trial_ends_atstring | nullThe trial's hard end date. Null when the domain is not a trial.
trial_data_reset_atstring | nullThe next monthly analytics reset for a trial domain. Null when the domain is not a trial.
created_atstring
updated_atstring
400Invalid ID
FieldTypeDescription
error*object
401Unauthorized
FieldTypeDescription
error*object
403Forbidden
FieldTypeDescription
error*object
404Not found
FieldTypeDescription
error*object

Delete a Domain

DELETE/domains/{id}

Delete a custom domain

Parameters

NameTypeInDescription
id*stringpath

Responses

200Deleted domain
FieldTypeDescription
idstring
org_idstring
domainstringe.g. links.myapp.com
verifiedboolean
ssl_statusstring
verification_tokenstring
verified_atstring | null
claimed_atstring | nullSet when this organization proved DNS control and won the exclusive claim on this domain. Null for a pending, unproven claim.
serving_state"active" | "grace" | "inactive"Computed from the plan and any trial grace window.
grace_untilstring | nullPresent only while serving_state is grace.
is_trialbooleanTrue for a free-tier trial domain.
trial_ends_atstring | nullThe trial's hard end date. Null when the domain is not a trial.
trial_data_reset_atstring | nullThe next monthly analytics reset for a trial domain. Null when the domain is not a trial.
created_atstring
updated_atstring
400Invalid ID
FieldTypeDescription
error*object
401Unauthorized
FieldTypeDescription
error*object
403Forbidden
FieldTypeDescription
error*object
404Not found
FieldTypeDescription
error*object

Verify a Domain

POST/domains/{id}/verify

Verify a custom domain's DNS configuration

Parameters

NameTypeInDescription
id*stringpath

Responses

200Verification result
400Invalid ID
FieldTypeDescription
error*object
401Unauthorized
FieldTypeDescription
error*object
403Forbidden
FieldTypeDescription
error*object
404Not found
FieldTypeDescription
error*object