Powerful REST API
Automate your infrastructure with our comprehensive REST API. Full control over deployment, management, and scaling.
Everything You Need to Automate
Build, deploy, and manage your infrastructure programmatically with our REST API.
Instant Deployment
Deploy servers, databases, and Kubernetes clusters with a single API call. Response times under 100ms.
Secure Authentication
Token-based authentication with scoped permissions. Rotate keys without downtime.
Real-Time Events
Webhook notifications for deployment events, billing alerts, and infrastructure changes.
Comprehensive Docs
Detailed documentation with examples in Python, Go, Node.js, PHP, and cURL.
Deploy in Minutes
Get started with our API in your favorite programming language.
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 -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"
}'
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}`);
Complete API Coverage
Manage every aspect of your infrastructure through our REST API.
Servers
Create, resize, reboot, and destroy cloud instances. Manage snapshots and backups programmatically.
View Docs arrow_forwardDatabases
Provision managed databases, scale resources, manage users, and configure high-availability clusters.
View Docs arrow_forwardKubernetes
Manage K8s clusters, node pools, and deployments. Scale workloads automatically based on metrics.
View Docs arrow_forwardStorage
Create and manage object storage buckets and block storage volumes. Upload, download, and manage files.
View Docs arrow_forwardLoad Balancers
Configure load balancers, manage SSL certificates, and set up health checks and routing rules.
View Docs arrow_forwardBilling
Retrieve invoices, monitor usage, set budget alerts, and manage payment methods programmatically.
View Docs arrow_forwardOfficial Libraries
Use our official SDKs for seamless integration with your applications.
Python
pip install hostphp - Full-featured SDK with async support and type hints.
Node.js
npm install hostphp - Promise-based SDK with full TypeScript support.
Go
go get github.com/hostphp/hostphp-go - Idiomatic Go client with context support.
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.