Add a custom domain
Attach a custom domain to a service with automatic TLS provisioning
POST
Path parameters
namespace type: string (required)
The namespace (user or organization) the service belongs to.
name type: string (required)
The service name to attach the domain to.
Body parameters
domain type: string (required)
The custom domain to add (e.g., `"api.example.com"`). Must be a valid hostname.
[Note] DNS configuration required. After adding a domain, create a CNAME record at your DNS provider pointing the domain to the cname_target value. You may also need to add a TXT record with the verification_token for ownership verification. Once DNS propagates, call the verify endpoint.
[Note] DNS configuration required. After adding a domain, create a CNAME record at your DNS provider pointing the domain to the
cname_targetvalue. You may also need to add a TXT record with theverification_tokenfor ownership verification. Once DNS propagates, call the verify endpoint.