POST /starhost/domains— Add a custom domain to a siteGET /starhost/domains/{domain}— Get domain statusDELETE /starhost/domains/{domain}— Remove a domain from a site
Add a custom domain
Connect a custom domain to one of your Starhost sites. The API returns the DNS records you must add at your registrar to complete verification. EndpointRequest parameters
The unique identifier of the Starhost site you want to attach the domain to. You can find this in the Verbosec Cloud dashboard under your site’s settings.
The custom domain name to add — for example,
"yourdomain.com" or "app.yourdomain.com". Do not include https:// or a trailing slash.Example request
add-domain.sh
Example response
add-domain-response.json
Add all records listed in
dns_records to your domain registrar’s DNS settings. Starhost checks for the records automatically and updates the domain status to verified once propagation is confirmed. DNS propagation can take up to 48 hours depending on your registrar.Get domain status
Retrieve the current verification and SSL status of a domain you have added to a site. Poll this endpoint after adding DNS records to confirm when verification is complete. EndpointPath parameters
The domain name to query — for example,
yourdomain.com. This must match the domain you used when adding it.Example request
get-domain.sh
Example response
get-domain-response.json
Domain status values
Status reference
Status reference
| Status | Description |
|---|---|
pending_verification | The domain has been added but the required DNS records have not yet been detected. |
verified | DNS records were confirmed and the domain is live. An SSL certificate has been provisioned. |
failed | Verification failed. Check that the DNS records are correctly configured and try again. |
SSL status values
SSL status values
| SSL status | Description |
|---|---|
inactive | SSL has not yet been provisioned, typically because verification is still pending. |
active | An SSL certificate is active and HTTPS is enforced for the domain. |
error | SSL provisioning encountered an error. Contact Verbosec support if this persists. |
Remove a domain
Detach a custom domain from your Starhost site and release it from your account. This action is irreversible — you will need to add the domain again if you want to reconnect it later. EndpointPath parameters
The domain name to remove — for example,
yourdomain.com.Example request
delete-domain.sh
Response
A successful delete returns204 No Content with an empty response body.
Error responses
400 Bad Request — Missing required field
400 Bad Request — Missing required field
Returned when a required parameter such as
site_id or domain is absent from the request body.400-response.json
404 Not Found — Domain not found
404 Not Found — Domain not found
Returned when the domain in the path is not associated with any site on your account.
404-response.json
409 Conflict — Domain already exists
409 Conflict — Domain already exists
Returned when you attempt to add a domain that is already attached to a site on your account.
409-response.json
401 Unauthorized
401 Unauthorized