Add a custom domain
Attach a custom domain to a service with automatic TLS provisioning
POST
Path parameters
namespace
type: string
requiredThe namespace (user or organization) the service belongs to.
name
type: string
requiredThe service name to attach the domain to.
Body parameters
domain
type: string
requiredThe 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.
Previous → Delete a volume
Next List domains →