API Docs

API Documentation

Integrate SKBHOSTING services into your applications with our RESTful API.

Authentication

All API requests require an API key passed in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Generate your API key from Dashboard → API Keys.

Domain API

Powered by Truehost Reseller API. All domain operations must be performed through authenticated POST requests to /api/domain.php.

POST /api/domain.php Check domain availability
{"action":"check","domain":"example.com"}
POST /api/domain.php Register a new domain
{"action":"register","domain":"example.com","years":1}
POST /api/domain.php Transfer a domain
{"action":"transfer","domain":"example.com","epp_code":"XXXXXX"}
POST /api/domain.php Renew a domain
{"action":"renew","domain":"example.com","years":1}
POST /api/domain.php Get DNS records
{"action":"get_dns","domain":"example.com"}
POST /api/domain.php Update DNS records
{"action":"save_dns","domain":"example.com","records":[...]}
POST /api/domain.php Get nameservers
{"action":"get_nameservers","domain":"example.com"}
POST /api/domain.php Toggle WHOIS privacy
{"action":"toggle_id_protect","domain":"example.com","enable":true}
POST /api/domain.php Get EPP/Auth code
{"action":"get_epp","domain":"example.com"}

Hosting Provisioning API

Note: Hosting provisioning API endpoints are not yet fully documented. Provisioning is currently handled through our Truehost-based ordering workflow. Custom integration endpoints will be documented when the hosting API documentation is provided. Placeholders are in place for provision_hosting, suspend_service, and terminate_service actions.

Webhooks

Receive real-time notifications for events like order creation, domain registration, and invoice payments.

{
  "event": "domain.registered",
  "domain": "example.com",
  "status": "active",
  "timestamp": "2026-07-06T12:00:00Z"
}

Configure webhook endpoints from your Dashboard → API Keys.