Get Server Subdomain
Retrieve the subdomain for a server.Path Parameters
Server ID
Response
If no subdomain is claimed:Always false when no subdomain exists
Always true
Subdomain name (e.g., “my-server”)
Full domain including base (e.g., “my-server.stellarstack.io”)
ISO 8601 timestamp
Claim Subdomain
Claim a subdomain for a server. This creates a DNS record if Cloudflare integration is enabled.Path Parameters
Server ID
Request Body
Subdomain to claim (3-32 characters, lowercase alphanumeric with hyphens, cannot start or end with hyphen)
Response
201 CreatedAlways true
Claimed subdomain name
Full domain (subdomain.base-domain)
Whether DNS record was created automatically
Note about manual DNS configuration (if Cloudflare not enabled)
Error Responses
400 Bad RequestError message (e.g., “Invalid subdomain”, “This subdomain is reserved”, “Server already has a subdomain”, “Subdomain is already taken”)
Error message
Detailed error from DNS provider
Reserved Subdomains
The following subdomains are reserved and cannot be claimed:- www
- api
- admin
- panel
- dashboard
- ftp
- sftp
- ssh
Release Subdomain
Release a claimed subdomain and remove the DNS record.Path Parameters
Server ID
Response
Always true on successful deletion
List Custom Domains
Get all custom domains for a server.Path Parameters
Server ID
Response
Returns an array of custom domain objects.Domain ID
Domain name (e.g., “example.com”)
Whether domain ownership has been verified
Verification code to add as TXT record
ISO 8601 timestamp
Add Custom Domain
Add a custom domain to a server. Returns verification instructions.Path Parameters
Server ID
Request Body
Domain name (4-253 characters, valid domain format)
Response
201 CreatedAlways true
Domain ID
Domain name
Always false for newly added domains
Verification code for DNS TXT record
DNS configuration instructions
Error Responses
400 Bad RequestError message (e.g., “Invalid domain format”, “Domain is already registered”)
Verify Domain Ownership
Verify ownership of a custom domain by checking the DNS TXT record.Path Parameters
Server ID
Domain ID
Response
If already verified:Always true
“Domain is already verified”
Always true
“Domain verified successfully”
Error Responses
400 Bad Request - Verification failedAlways false
Error message
TXT records found (if verification code not found)
Expected verification code
Always false
DNS error message
Remove Custom Domain
Remove a custom domain from a server.Path Parameters
Server ID
Domain ID
Response
Always true on successful deletion