Build integrations with the HCL Platform API. RESTful over HTTPS, JSON request/response, OAuth 2.0 bearer tokens.
Base URL
https://api.hostscheap.com/v1Authentication header
Authorization: Bearer hcl_live_xxxxxxxxxxxxxxxxxxxxCreate and manage API keys on the API Keys page.
Error response format
{
"error": {
"code": "VALIDATION_FAILED",
"message": "The given data was invalid.",
"errors": {
"email": ["The email field is required."]
}
}
}Authentication
/auth/*Tenants
/tenantsCustomers
/customersServices
/servicesOrders
/ordersBilling / Invoices
/invoicesDomains
/domainsHosting
/hostingSSL Certificates
/sslDNS Zones
/dns/zonesEmail Hosting
/emailVPS / Cloud
/vpsSupport Tickets
/support/ticketsWebhooks
/webhooksAPI Keys
/api-keyscURL
curl -X POST https://api.hostscheap.com/v1/hosting \
-H "Authorization: Bearer $HCL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "uuid-here",
"sku_id": "shared-hosting-starter",
"domain": "example.com",
"billing_cycle": "1_year"
}'PHP (Guzzle)
$client = new GuzzleHttp\Client();
$response = $client->post('https://api.hostscheap.com/v1/hosting', [
'headers' => [
'Authorization' => 'Bearer ' . $apiKey,
],
'json' => [
'customer_id' => 'uuid-here',
'sku_id' => 'shared-hosting-starter',
'domain' => 'example.com',
'billing_cycle' => '1_year',
],
]);| Tier | Limit | Window |
|---|---|---|
| Default / Free | 600 requests | per minute, per user |
| Pro | 1200 requests | per minute, per user |
| Business | 1800 requests | per minute, per user |
| Enterprise | 3000 requests | per minute, per user |
| Reseller | 2400 requests | per minute, per user |
Every 2xx carries the IETF-draft RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers (the legacy X-RateLimit-* set is also sent). Breaching a limit returns HTTP 429 with a Retry-After header (seconds). Honour it: wait, then retry with exponential backoff. To retry money-moving POSTs safely, send an Idempotency-Key so the platform collapses replays into one operation. Per-endpoint sub-limits (and tighter auth limits on login/signup/2FA) apply on top of the global ceiling above.
🛠 OpenAPI 3.1 auto-generation coming
Per File 57 line 173, the canonical OpenAPI spec at https://api.hostscheap.com/v1/openapi.json will be auto-generated from Laravel routes and embedded here via Scalar for interactive try-it-out with your API key. Until then, the hand-written reference above covers all current endpoints.