Get and manage email accounts for your web hosting

View a list of your email accounts, including their disk space usage. This is useful when you need an overview of your email services or need to troubleshoot space issues on your web hosting.

Web Hosting Services Email

Context

Where to get IDs / values

Path Parameters

accountId integer · min: 1 required Example: 20000

Unique account identifier

Query Parameters

domain string required · Example: example.com

Headers

Accept Example
Content-Type Example

Responses

200
data object required
data.accountId string required · Example: 20000
data.accounts array<object> required · Example: [{"humandiskquota":"None","login":"[email protected]","diskusedpercent":0,"suspended_in...
data.accounts[]._diskquota integer | string · nullable required · Example: 0

Nullable: may be null when not applicable.

data.accounts[]._diskused string | integer required · Example: 406215631
data.accounts[].diskquota string · enum required · Example: unlimited
1024.00
32768.00
unlimited
data.accounts[].diskused string | integer · enum required · Example: 387.40
0.01
0.08
0.17
0.18
0.21
387.37
387.40
data.accounts[].diskusedpercent integer required · Example: 0
data.accounts[].diskusedpercent20 integer required · Example: 0
data.accounts[].diskusedpercent_float number required · Example: 0
data.accounts[].domain string required · Example: example.com
data.accounts[].email string required · Example: [email protected]
data.accounts[].humandiskquota string · enum required · Example: None
1 GB
32 GB
None
data.accounts[].humandiskused string · enum required · Example: 387,4 MB
177 KB
184.54 KB
211.33 KB
387,37 MB
387,4 MB
7,57 KB
78,35 KB
78,56 KB
None
data.accounts[].login string required · Example: [email protected]
data.accounts[].mtime integer required · Example: 1769324584
data.accounts[].suspended_incoming integer required · Example: 0
data.accounts[].suspended_login integer · nullable required · Example: 0

Nullable: may be null when not applicable.

data.accounts[].txtdiskquota string · enum required · Example: unlimited
1024.00
32768.00
unlimited
data.accounts[].user string · enum required · Example: henrik
erik
henrik
info
napoleon
olof
support
data.count integer required · Example: 1
data.cpanelUsername string required · Example: xkqjm
data.domain string required · Example: example.com
data.success boolean required · Example: true

True for successful responses.

requestId string required · Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba

Unique request identifier (UUID).

success boolean required · Example: true

True for successful responses.

timestamp string required · Example: 2026-02-10T00:00:00.000Z

ISO 8601 timestamp (UTC).

500
code string required · Example: INTERNAL_ERROR

Machine-readable error code.

error string required · Example: Internal Server Error

HTTP status title (e.g. 'Bad Request').

message string required · Example: An unexpected error occurred

Human-readable message.

requestId string required · Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba

Unique request identifier (UUID).

timestamp string required · Example: 2026-02-10T00:00:00.000Z

ISO 8601 timestamp (UTC).

GET https://cloud.hostup.se/api/hosting/{accountId}/email-accounts
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/hosting/20000/email-accounts?domain=example.com" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "2026-02-10T00:00:00.000Z",
  "requestId": "2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba",
  "data": {
    "success": true,
    "accountId": "20000",
    "cpanelUsername": "xkqjm",
    "domain": "example.com",
    "accounts": [
      {
        "humandiskquota": "None",
        "login": "[email protected]",
        "diskusedpercent": 0,
        "suspended_incoming": 0,
        "domain": "example.com",
        "txtdiskquota": "unlimited",
        "diskused": "387.40",
        "mtime": 1769324584,
        "_diskused": "406215631",
        "humandiskused": "387,4 MB",
        "diskquota": "unlimited",
        "suspended_login": 0,
        "diskusedpercent_float": 0,
        "_diskquota": 0,
        "email": "[email protected]",
        "diskusedpercent20": 0,
        "user": "user1"
      }
    ],
    "count": 1
  }
}