Skip to main content

Cloud hosting Introduction

Welcome to the HoganHost Cloud API.
This guide will walk you through authenticating, provisioning, and managing your servers programmatically.
All API requests are made over HTTPS and must include your unique API key.

Authentication

Each request must include your API key in the Authorization header:
If your key is missing or invalid, the API responds with an Unauthorized error.

Creating a Server

To provision a new server, use the POST /servers endpoint:

Field Reference

  • name – A human-friendly identifier for your server. This will also be used as the server’s hostname.
    Example: web-01, db-primary.
  • plan – Defines the server’s resources (CPU, RAM, disk).
  • region – The datacenter where your server will be deployed.
  • image – The operating system or application image installed.

Available Plans


Available Regions


Available Images

Below are common base and application images:

Best Practices

  • Use shutdown before power_off or delete for graceful termination.
  • Reserve reboot for controlled restarts rather than issue recovery.
  • Store and track your server_id for later operations.
  • Prefer LTS images for long-term stability and security.
  • Deploy servers in regions nearest to your end users for optimal latency.