All Systems Operational
languageEN
Home / API

Powerful REST API

Automate your infrastructure with our comprehensive REST API. Full control over deployment, management, and scaling.

code Developer First

Everything You Need to Automate

Build, deploy, and manage your infrastructure programmatically with our REST API.

bolt

Instant Deployment

Deploy servers, databases, and Kubernetes clusters with a single API call. Response times under 100ms.

lock

Secure Authentication

Token-based authentication with scoped permissions. Rotate keys without downtime.

sync_alt

Real-Time Events

Webhook notifications for deployment events, billing alerts, and infrastructure changes.

description

Comprehensive Docs

Detailed documentation with examples in Python, Go, Node.js, PHP, and cURL.

terminal Quick Start

Deploy in Minutes

Get started with our API in your favorite programming language.

Python
import hostphp

client = hostphp.Client(api_key="your-api-key")

# Deploy a new server
server = client.servers.create(
    region="nyc1",
    plan="vc2-4c-8gb",
    image="ubuntu-26-04-x64"
)

print(f"Server deployed: {server.ip_address}")
cURL
curl -X POST https://api.hostphp.com/v1/servers \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "region": "nyc1",
    "plan": "vc2-4c-8gb",
    "image": "ubuntu-26-04-x64"
  }'
Node.js
const { HostPHP } = require('hostphp');

const client = new HostPHP({ apiKey: 'your-api-key' });

const server = await client.servers.create({
  region: 'nyc1',
  plan: 'vc2-4c-8gb',
  image: 'ubuntu-26-04-x64'
});

console.log(`Server deployed: ${server.ip_address}`);
list Endpoints

Complete API Coverage

Manage every aspect of your infrastructure through our REST API.

dns

Servers

Create, resize, reboot, and destroy cloud instances. Manage snapshots and backups programmatically.

View Docs arrow_forward
database

Databases

Provision managed databases, scale resources, manage users, and configure high-availability clusters.

View Docs arrow_forward
deployed_code

Kubernetes

Manage K8s clusters, node pools, and deployments. Scale workloads automatically based on metrics.

View Docs arrow_forward
cloud_upload

Storage

Create and manage object storage buckets and block storage volumes. Upload, download, and manage files.

View Docs arrow_forward
swap_horiz

Load Balancers

Configure load balancers, manage SSL certificates, and set up health checks and routing rules.

View Docs arrow_forward
receipt

Billing

Retrieve invoices, monitor usage, set budget alerts, and manage payment methods programmatically.

View Docs arrow_forward
build SDKs

Official Libraries

Use our official SDKs for seamless integration with your applications.

python

Python

pip install hostphp - Full-featured SDK with async support and type hints.

javascript

Node.js

npm install hostphp - Promise-based SDK with full TypeScript support.

data_object

Go

go get github.com/hostphp/hostphp-go - Idiomatic Go client with context support.

php

PHP

composer require hostphp/hostphp - Native PHP SDK with Laravel support.

Start Building Today

Get your API key and deploy your first server in under 60 seconds.