CloudNexus API Reference
Programmatically manage your entire cloud infrastructure. Create servers, deploy Kubernetes clusters, configure CDNs, and monitor resources through our RESTful API.
https://api.cloudnexus.com/v1/
Authentication
CloudNexus uses API keys for authentication. Include your key in the Authorization header of every request.
Key Types
| Prefix | Scope | Environment |
|---|---|---|
cn_live_sk_ | Full access | Production |
cn_test_sk_ | Sandbox access | Development |
Rate Limits
API requests are limited based on your plan. Headers return current quota status.
| Header | Description |
|---|---|
X-RateLimit-Limit | Max requests per window |
X-RateLimit-Remaining | Requests remaining |
X-RateLimit-Reset | UTC timestamp when window resets |
List Servers
Returns a paginated list of all VPS instances associated with your account.
curl -X GET "https://api.cloudnexus.com/v1/servers?page=1&limit=20" \ -H "Authorization: Bearer cn_live_sk_..."
Response
Create Server
Provisions a new VPS instance with specified configuration.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Human-readable server name (3-63 chars) |
| region | string | Required | Deployment region (e.g., us-east-1, eu-west-2) |
| image | string | Required | OS image ID or slug |
| plan | string | Required | Compute plan ID |
| ssh_keys | string[] | Optional | Array of SSH key IDs for root access |
{ "server": { "id": "srv_9f82a1", "status": "provisioning", "ip_address": "198.51.100.42", "provisioning_eta_seconds": 45 } }
List CDN Domains
Returns all configured CDN endpoints and their SSL/edge configuration.
Kubernetes Clusters
List all managed Kubernetes clusters with node pool details.
Error Codes
CloudNexus uses standard HTTP status codes and extends them with application-specific error details.
{"error": {"code": "ERR_422", "message": "...", "details": []}}
SDKs & Tools
Official client libraries and CLI tools for faster integration.