HostingPal API

API wiki

Customer API reference — authenticate with an API key and manage mailboxes and domains.

Sign in to create API keys API root

Overview

Base URL:

https://panel.xcelsus.io/api/v1

All responses are JSON. Successful payloads use a data wrapper. Mutations accept JSON (Content-Type: application/json) or form fields.

Authentication

Create a key under API keys in the portal (after sign-in). The full secret is shown once.

Send it with either header:

Authorization: Bearer hq_abcdef012345_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# or
X-API-Key: hq_abcdef012345_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Keys start with hq_. Treat them like passwords.

IP allowlist

Each key can allow any IP (leave blank) or a list of IPv4 addresses / CIDR ranges (e.g. 203.0.113.10, 198.51.100.0/24).

Requests are checked against the connecting IP. Your current IP from this browser: 216.73.216.245

Errors

{
  "error": {
    "message": "Human-readable explanation",
    "code": "unauthorized|forbidden|not_found|validation_error|bad_request"
  }
}

GET/me

Returns the account bound to the API key.

curl -s -H "Authorization: Bearer $API_KEY" \
  https://panel.xcelsus.io/api/v1/me

Domains

GET/domains

List domains you can access. Each item includes whether mail is enabled.

GET/domains/{uuid}

Domain detail.

GET/domains/{uuid}/mailboxes

List mailboxes on that domain (empty array if mail is not enabled).

Mailboxes

POST/domains/{uuid}/mailboxes

Create a mailbox. Mail must already be enabled for the domain in the panel.

FieldRequiredNotes
local_partyesLeft side of the email (info → info@domain)
passwordnoMin 7 chars. If omitted, a random password is generated and returned.
display_namenoFriendly name
quota_mbnoDefault 1024; range 100–102400
curl -s -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"local_part":"info","password":"ChooseAStrongPass1","quota_mb":1024}' \
  https://panel.xcelsus.io/api/v1/domains/DOMAIN_UUID/mailboxes

GET/mailboxes/{uuid}

Mailbox detail.

POST/mailboxes/{uuid}/password

Queue a password change.

{"password":"NewStrongPass1"}

POST/mailboxes/{uuid}/delete

Delete the mailbox (and aliases that point only at it).

End-to-end example

export API_KEY='hq_…'
export BASE='https://panel.xcelsus.io/api/v1'

# Who am I?
curl -s -H "Authorization: Bearer $API_KEY" "$BASE/me" | jq

# List domains and pick a uuid
curl -s -H "Authorization: Bearer $API_KEY" "$BASE/domains" | jq

# Create mailbox
curl -s -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"local_part":"sales","display_name":"Sales"}' \
  "$BASE/domains/DOMAIN_UUID/mailboxes" | jq