🌐 FR EN
Reseller & API space

CleanHoster V1 REST API

Official CleanHoster V3 Reseller & REST API documentation: authentication, orders, service management, and webhooks.

Base URL

https://api.cleanhoster.com/v1

Authentication

Authorization: Bearer <api_credential>

The public workflow focuses on managing existing services. POST /orders remains available only for WHMCS/WooCommerce compatibility and already-approved integrations; it is not promoted for new integrations.

Authentication

Send the reseller credential in Authorization: Bearer. Scopes and account ownership are checked on every request.

curl -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/services"

Catalog & Pricing V3.5

Official categories, central product catalog, and contractual preferential pricing for the authenticated reseller account.

GET /v1/categories?type=hosting Route verified

List official product categories by type.

Scope
services:read
Parameters
type
HTTP
200, 401, 403
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/categories?type=hosting"

{
    "status": "success"
}
GET /v1/catalog?type=hosting&category=cat-wordpress-pro Route verified

Consult CleanHoster central product catalog filtered by type and category.

Scope
services:read
Parameters
type, category
HTTP
200, 401, 403
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/catalog?type=hosting&category=cat-wordpress-pro"

{
    "status": "success"
}
GET /v1/prices Route verified

Read contractual discounts applicable to the reseller account.

Scope
services:read
Parameters
none
HTTP
200, 401, 403
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/prices"

{
    "status": "success"
}

Domains

Availability, inventory and provider-capability-aware actions.

GET /v1/domains/check?domain=example.cm Route verified

Check availability and contract pricing.

Scope
catalog:read + pricing:read
Parameters
domain
HTTP
200, 401, 403, 422, 503
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/domains/check?domain=example.cm"

{
    "status": "success"
}
GET /v1/services?type=domain Route verified

List account domains.

Scope
services:read
Parameters
type
HTTP
200, 401, 403
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/services?type=domain"

{
    "status": "success"
}
GET /v1/services/{service} Route verified

Read status, expiry and public details.

Scope
services:read
Parameters
service
HTTP
200, 401, 403, 404
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/services/{service}"

{
    "status": "success"
}
GET /v1/services/{service}/actions Route verified

Discover allowed and executable actions.

Scope
services:read
Parameters
service
HTTP
200, 401, 403, 404
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/services/{service}/actions"

{
    "status": "success"
}
POST /v1/services/{service}/actions Route verified

Nameservers, contacts, lock, EPP, renewal, restore, transfer or synchronization.

Scope
services:manage ou services.<action>
Parameters
service, action, parameters, operation_id
HTTP
202, 401, 403, 404, 409, 422
Idempotence
A durable Idempotency-Key is required for mutations and must be reused on retries.
cURL and JSON example
curl -X POST \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <durable-operation-id>" \
  --data '{"action":"update_nameservers","parameters":{"nameservers":["ns1.example.net","ns2.example.net"]},"operation_id":"domain-change-2026-0001"}' \
  "https://api.cleanhoster.com/v1/services/{service}/actions"

{
    "status": "accepted"
}

Hosting

Plan, quotas and actions actually supported by the provider.

GET /v1/services?type=hosting Route verified

List hosting services.

Scope
services:read
Parameters
type
HTTP
200, 401, 403
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/services?type=hosting"

{
    "status": "success"
}
GET /v1/services/{service} Route verified

Read the plan, quotas and public status.

Scope
services:read
Parameters
service
HTTP
200, 401, 403, 404
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/services/{service}"

{
    "status": "success"
}
GET /v1/services/{service}/actions Route verified

See available quota, panel, SSL, backup and lifecycle actions.

Scope
services:read
Parameters
service
HTTP
200, 401, 403, 404
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/services/{service}/actions"

{
    "status": "success"
}
POST /v1/services/{service}/actions Route verified

Execute an action declared executable.

Scope
services:manage ou services.<action>
Parameters
service, action, parameters, operation_id
HTTP
202, 401, 403, 404, 409, 422
Idempotence
A durable Idempotency-Key is required for mutations and must be reused on retries.
cURL and JSON example
curl -X POST \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <durable-operation-id>" \
  --data '{"action":"change_plan","parameters":{"plan":"business"},"operation_id":"hosting-change-2026-0001"}' \
  "https://api.cleanhoster.com/v1/services/{service}/actions"

{
    "status": "accepted"
}

VPS / Servers

Resources, IP addresses and protected asynchronous operations.

GET /v1/services?type=vps Route verified

List account VPS services.

Scope
services:read
Parameters
type
HTTP
200, 401, 403
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/services?type=vps"

{
    "status": "success"
}
GET /v1/services/{service} Route verified

Read resources, IP addresses and public status.

Scope
services:read
Parameters
service
HTTP
200, 401, 403, 404
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/services/{service}"

{
    "status": "success"
}
GET /v1/services/{service}/actions Route verified

Check actions actually supported.

Scope
services:read
Parameters
service
HTTP
200, 401, 403, 404
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/services/{service}/actions"

{
    "status": "success"
}
POST /v1/services/{service}/actions Route verified

Start, stop, reboot, reinstall or enter rescue mode.

Scope
services:manage ou services.<action>
Parameters
service, action, parameters, operation_id
HTTP
202, 401, 403, 404, 409, 422
Idempotence
A durable Idempotency-Key is required for mutations and must be reused on retries.
cURL and JSON example
curl -X POST \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <durable-operation-id>" \
  --data '{"action":"reboot","parameters":[],"operation_id":"vps-reboot-2026-0001"}' \
  "https://api.cleanhoster.com/v1/services/{service}/actions"

{
    "status": "accepted"
}

Contacts

Account-isolated address book; DELETE archives without erasing history.

GET /v1/contacts Route verified

List and search contacts.

Scope
contacts:read
Parameters
none
HTTP
200, 401, 403
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/contacts"

{
    "status": "success"
}
GET /v1/contacts/{contact} Route verified

Read an account contact.

Scope
contacts:read
Parameters
contact
HTTP
200, 401, 403, 404
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/contacts/{contact}"

{
    "status": "success"
}
POST /v1/contacts Route verified

Create a contact.

Scope
contacts:manage
Parameters
contact_kind, given_name, family_name, email, country_code
HTTP
201, 401, 403, 422
Idempotence
A durable Idempotency-Key is required for mutations and must be reused on retries.
cURL and JSON example
curl -X POST \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <durable-operation-id>" \
  --data '{"contact_kind":"person","given_name":"Ada","family_name":"N.","email":"ada@example.test","country_code":"CM"}' \
  "https://api.cleanhoster.com/v1/contacts"

{
    "status": "accepted"
}
PATCH /v1/contacts/{contact} Route verified

Update a contact.

Scope
contacts:manage
Parameters
contact, city
HTTP
200, 401, 403, 404, 422
Idempotence
A durable Idempotency-Key is required for mutations and must be reused on retries.
cURL and JSON example
curl -X PATCH \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <durable-operation-id>" \
  --data '{"city":"Douala"}' \
  "https://api.cleanhoster.com/v1/contacts/{contact}"

{
    "status": "accepted"
}
DELETE /v1/contacts/{contact} Route verified

Archive a contact.

Scope
contacts:manage
Parameters
contact
HTTP
200, 401, 403, 404
Idempotence
A durable Idempotency-Key is required for mutations and must be reused on retries.
cURL and JSON example
curl -X DELETE \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/contacts/{contact}"

{
    "status": "accepted"
}

Wallet

Read only; no arbitrary credit endpoint.

GET /v1/wallet/balance?currency=XAF Route verified

Ledger, available, reserved and purchasing-power balances.

Scope
wallet:read
Parameters
currency
HTTP
200, 401, 403, 409, 422
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/wallet/balance?currency=XAF"

{
    "status": "success"
}
GET /v1/wallet/transactions?page=1 Route verified

Paginated sanitized movements.

Scope
wallet:read
Parameters
page
HTTP
200, 401, 403
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/wallet/transactions?page=1"

{
    "status": "success"
}
GET /v1/wallet/reservations?page=1 Route verified

Reservations, captures and releases.

Scope
wallet:read
Parameters
page
HTTP
200, 401, 403
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/wallet/reservations?page=1"

{
    "status": "success"
}

Existing orders

Read existing API orders; direct creation remains restricted to compatibility connectors.

GET /v1/orders?page=1 Route verified

List existing orders.

Scope
orders:read
Parameters
page
HTTP
200, 401, 403
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/orders?page=1"

{
    "status": "success"
}
GET /v1/orders/{order} Route verified

Details, lines, taxes, linked services and operations.

Scope
orders:read
Parameters
order
HTTP
200, 401, 403, 404
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/orders/{order}"

{
    "status": "success"
}

Universal actions

The registry is the documentation source of truth for all 55 actions.

GET /v1/actions?type=domain Route verified

Filter action definitions by service type.

Scope
services:read
Parameters
type
HTTP
200, 401, 403, 422
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/actions?type=domain"

{
    "status": "success"
}

Asynchronous operations and idempotency

HTTP 202 means accepted, never activated. Poll the operation until a terminal state.

GET /v1/operations?status=provider_pending Route verified

List sanitized operation history.

Scope
operations:read ou services:read
Parameters
status
HTTP
200, 401, 403
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/operations?status=provider_pending"

{
    "status": "success"
}
GET /v1/operations/{operation} Route verified

Inspect attempts without provider secrets.

Scope
operations:read ou services:read
Parameters
operation
HTTP
200, 401, 403, 404
Idempotence
Read only.
cURL and JSON example
curl -X GET \
  -H "Authorization: Bearer $CLEANHOSTER_API_KEY" \
  -H "Accept: application/json" \
  "https://api.cleanhoster.com/v1/operations/{operation}"

{
    "status": "success"
}
No public reseller webhook-subscription endpoint is currently exposed. Use operation polling. A 202 response proves acceptance only.

Errors and permissions

401 invalid credential, 403 denied scope, 404 missing or cross-account resource, 409 conflict, 422 validation, 429 rate limit. DNS zone editing returns 409 until its secure contract is implemented.

55-action registry

Declared does not mean executable: always query service-specific actions.

create elevated async

domain, dns, hosting, email, ssl, vps, server, assisted · services.create

parameters: none

details read_only

domain, dns, hosting, email, ssl, vps, server, assisted · services.details

parameters: none

update low async

domain, dns, hosting, email, ssl, vps, server, assisted · services.update

parameters: changes

renew elevated async confirmation

domain, dns, hosting, email, ssl, vps, server, assisted · services.renew

parameters: none

activate elevated async

domain, dns, hosting, email, ssl, vps, server, assisted · services.activate

parameters: none

deactivate destructive async confirmation

domain, dns, hosting, email, ssl, vps, server, assisted · services.deactivate

parameters: reason

suspend elevated async confirmation

domain, dns, hosting, email, ssl, vps, server, assisted · services.suspend

parameters: reason

reactivate elevated async confirmation

domain, dns, hosting, email, ssl, vps, server, assisted · services.reactivate

parameters: none

restore elevated async confirmation

domain, dns, hosting, email, ssl, vps, server, assisted · services.restore

parameters: none

delete destructive async confirmation

domain, dns, hosting, email, ssl, vps, server, assisted · services.delete

parameters: reason

sync read_only async

domain, dns, hosting, email, ssl, vps, server, assisted · services.sync

parameters: none

reconcile read_only async

domain, dns, hosting, email, ssl, vps, server, assisted · services.reconcile

parameters: none

check_availability read_only async

domain · services.check_availability

parameters: fqdn_ascii

transfer elevated async

domain · services.transfer

parameters: none

update_nameservers low async

domain · services.update_nameservers

parameters: nameservers

get_nameservers read_only async

domain · services.get_nameservers

parameters: none

update_contacts low async

domain · services.update_contacts

parameters: contacts

get_contacts read_only async

domain · services.get_contacts

parameters: none

get_authorization_code read_only async

domain · services.get_authorization_code

parameters: none

set_transfer_lock low async

domain · services.set_transfer_lock

parameters: locked

get_domain_status read_only async

domain · services.get_domain_status

parameters: none

get_expiry_date read_only async

domain · services.get_expiry_date

parameters: none

add_dns_record low async

dns · services.add_dns_record

parameters: record_key, name, type, value

update_dns_record low async

dns · services.update_dns_record

parameters: record_key, name, type, value

delete_dns_record destructive async confirmation

dns · services.delete_dns_record

parameters: record_key

sync_dns_records read_only async

dns · services.sync_dns_records

parameters: none

change_primary_domain low async

hosting · services.change_primary_domain

parameters: fqdn_ascii

change_username low async

hosting · services.change_username

parameters: username

change_plan low async

hosting · services.change_plan

parameters: plan

get_usage read_only async

hosting · services.get_usage

parameters: none

get_quotas read_only async

hosting · services.get_quotas

parameters: none

get_control_panel_access read_only async

hosting · services.get_control_panel_access

parameters: none

manage_ssl low async

hosting · services.manage_ssl

parameters: none

manage_backups low async

hosting · services.manage_backups

parameters: none

restore_backup elevated async

hosting · services.restore_backup

parameters: backup_id

start low async

vps, server · services.start

parameters: none

stop low async

vps, server · services.stop

parameters: none

reboot low async

vps, server · services.reboot

parameters: none

reinstall destructive async confirmation

vps, server · services.reinstall

parameters: image

get_console low async

vps, server · services.get_console

parameters: none

enter_rescue_mode elevated async

vps, server · services.enter_rescue_mode

parameters: none

get_server_status read_only async

vps, server · services.get_server_status

parameters: none

get_resources read_only async

vps, server · services.get_resources

parameters: none

get_ip_addresses read_only async

vps, server · services.get_ip_addresses

parameters: none

create_mailbox low async

email · services.create_mailbox

parameters: mailbox

delete_mailbox destructive async confirmation

email · services.delete_mailbox

parameters: mailbox

change_mailbox_password low async

email · services.change_mailbox_password

parameters: mailbox

change_mailbox_quota low async

email · services.change_mailbox_quota

parameters: mailbox

create_alias low async

email · services.create_alias

parameters: alias

delete_alias destructive async confirmation

email · services.delete_alias

parameters: alias

set_forwarding low async

email · services.set_forwarding

parameters: mailbox, destinations

get_mailbox_usage read_only async

email · services.get_mailbox_usage

parameters: none

get_mail_configuration read_only async

email · services.get_mail_configuration

parameters: none

issue_certificate low async

ssl · services.issue_certificate

parameters: common_name

renew_certificate low async

ssl · services.renew_certificate

parameters: none

reissue_certificate low async

ssl · services.reissue_certificate

parameters: common_name

revoke_certificate destructive async confirmation

ssl · services.revoke_certificate

parameters: reason

get_validation_status read_only async

ssl · services.get_validation_status

parameters: none

get_certificate_details read_only async

ssl · services.get_certificate_details

parameters: none

create_ftp_account low async

hosting · services.create_ftp_account

parameters: user, pass

delete_ftp_account destructive async confirmation

hosting · services.delete_ftp_account

parameters: user

change_ftp_password low async

hosting · services.change_ftp_password

parameters: user, pass

get_ftp_accounts read_only async

hosting · services.get_ftp_accounts

parameters: none

create_database low async

hosting · services.create_database

parameters: database

delete_database destructive async confirmation

hosting · services.delete_database

parameters: database

create_database_user low async

hosting · services.create_database_user

parameters: user, password

delete_database_user destructive async confirmation

hosting · services.delete_database_user

parameters: user

set_database_privileges low async

hosting · services.set_database_privileges

parameters: user, database

get_databases read_only async

hosting · services.get_databases

parameters: none