Cloud API quickstart
Provision a cloud virtual machine programmatically in minutes. Suitable for Terraform-style automation, CI/CD ephemerals, and dynamic capacity.
1. Get a token
Sign in, open the Dashboard, and create an API Token under your account settings. Set the PIDGINHOST_API_TOKEN environment variable.
2. List available server packages
curl -X GET https://www.pidginhost.com/api/v1/cloud/server-packages/ \
-H "Authorization: Token $PIDGINHOST_API_TOKEN"
3. Create a VM
curl -X POST https://www.pidginhost.com/api/v1/cloud/servers/ \
-H "Authorization: Token $PIDGINHOST_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"hostname": "web-01",
"package": "cloudv-4",
"image": "ubuntu24",
"ssh_pub_key": "ssh-ed25519 AAAA..."
}'
Response includes the new server id. Poll the server detail endpoint until status becomes active.
4. Same flow with phctl CLI
phctl auth login --token "$PIDGINHOST_API_TOKEN"
phctl compute server create \
--hostname web-01 \
--package cloudv-4 \
--image ubuntu24
Need the full reference?
Every endpoint with Python, JavaScript, PHP, Go, Rust, C#, CLI, and curl examples.
Ready to launch your infrastructure?
Create an account in minutes. The free cloud tier includes one server per customer after at least €10 in confirmed account deposits. Money-back eligibility varies by service.