Check cPanel ownership for domains

Verify if a specific cPanel username belongs to the logged-in customer for a given domain. This is useful for managing hosting accounts and ensures only the owner can administer their account. The endpoint returns a client ID for subsequent actions.

Headers

Accept Example
Content-Type Example

Body

required
application/json
domain string required
cpanel_username string required

Responses

200
authorized boolean
reason string
action string
client_id string
response_time_ms integer
POST https://cloud.hostup.se/api/cpanel-ownership-check
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/cpanel-ownership-check" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "string",
    "cpanel_username": "string"
  }'
Response
{
  "authorized": true,
  "reason": "string",
  "action": "string",
  "client_id": "string",
  "response_time_ms": 0
}
Request Body
{
  "domain": "string",
  "cpanel_username": "string"
}