CloudNexus REST API

Build, deploy, and scale infrastructure programmatically. Full access to instances, databases, CDN, and billing through a consistent, predictable REST interface.

🔐 Authentication

All API requests require an API key passed via the Authorization header. Keys can be generated in your CloudNexus dashboard.

Header Format

Authorization: Bearer <YOUR_API_KEY>
Content-Type: application/json

📋 Instances

GET /v2/instances

Retrieve a paginated list of all virtual instances associated with your account.

# Filter by region and status
curl -X GET "https://api.cloudnexus.dev/v2/instances?region=us-east-1&status=running&page=1&limit=20" \\
  -H "Authorization: Bearer $CN_API_KEY" \\
  -H "Content-Type: application/json"
POST /v2/instances

Provision a new high-performance virtual instance with NVMe storage and auto-scaling enabled.

{
  "name": "staging-worker-02",
  "plan": "cn-pro-8",
  "region": "eu-west-2",
  "image": "ubuntu-22.04-lts",
  "auto_scale": true,
  "tags": ["staging", "backend"]
}

🗄️ Managed Databases

GET /v2/databases

List all managed database clusters. Supports MySQL, PostgreSQL, and Redis.

curl -X GET "https://api.cloudnexus.dev/v2/databases" \\
  -H "Authorization: Bearer $CN_API_KEY"

🛠️ SDKs & Tools

🐍

Python

pip install cloudnexus-sdk

🟨

Node.js

npm install @cloudnexus/sdk

🐹

Go

go get github.com/cloudnexus/go-sdk

📮

Postman

Import our official collection

⚡ Rate Limits & Pagination

API requests are limited to 1,000 requests per minute per API key. Pagination uses cursor-based navigation for large datasets.

Response Headers

X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 987
X-RateLimit-Reset: 1715660000
Link: <https://api.cloudnexus.dev/v2/instances?cursor=eyJpZCI6NDJ9>; rel="next"