Add an addon domain

Add a new domain to your web hosting account. Automatically creates a subdomain and directory.

Path Parameters

accountId integer · min: 1 required Example

Unique account identifier

Headers

Accept Example
Content-Type Example

Body

required
application/json
domain string required
subdomain string required
dir string

Responses

200
success boolean
timestamp string
requestId string
data object
422
error string
message string
code string
timestamp string
requestId string
details array
500
error string
message string
code string
timestamp string
requestId string
POST https://cloud.hostup.se/api/hosting/{accountId}/addon-domains
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/hosting/18154/addon-domains" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "string",
    "subdomain": "string",
    "dir": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "accountId": "string",
    "cpanelUsername": "string",
    "domain": "string",
    "subdomain": "string",
    "dir": "string",
    "added": true
  }
}
Request Body
{
  "domain": "string",
  "subdomain": "string",
  "dir": "string"
}