Add CNAME
Adds a CNAME (Canonical Name) record to the domain’s DNS zone, aliasing one hostname to another.
Use case: Alias a subdomain to another hostname — for example, point www.example.com → example.com, or point shop.example.com → a third-party platform’s domain.
Prerequisite: DNS service must be activated for the domain via POST /api/v1/dns/activate before records can be added.
Authorizations
A personal access token. Obtain one from the dashboard under Settings > API Key. Include it in the Authorization header as Bearer <token>. Unauthenticated requests to protected routes return 401 Unauthorized.
Body
Order ID of the domain.
124680932
Target hostname this alias should resolve to (fully qualified domain name).
"target.example.com"
Subdomain label being aliased, relative to the zone (e.g. www, shop). Cannot be @ — CNAME is not allowed at the apex.
"www"
TTL in seconds. Minimum 300. Omit to use the zone default.
300