v2024-11-01
JD
🔑
API Keys
Key Name API Key Permissions Last Used Status Actions
Production Server
cnx_live_sk_••••••••••••••••••••
Read/Write 2 mins ago Active
CI/CD Pipeline
cnx_live_sk_••••••••••••••••••••
Read Only 4 hours ago Active
🔐
Authentication

All API requests require authentication via Bearer token. Include your API key in the `Authorization` header of every request.

cURL JavaScript Python
curl https://api.cloudnexus.io/v2/servers \
  -H "Authorization: Bearer cnx_live_sk_8x92j4k29x82j4k29x82j4k2" \
  -H "Content-Type: application/json"
🌐
API Endpoints
GET /v2/servers

Retrieve a paginated list of all compute instances in your account.

Response
{
  "data": [
    {
      "id": "srv_8x92j4k2",
      "name": "prod-web-01",
      "status": "running",
      "region": "us-east-1",
      "specs": { "cpu": 4, "ram_gb": 8 }
    }
  ],
  "meta": { "total": 12, "page": 1 }
}
POST /v2/servers

Provision a new virtual server with specified configuration.

⏱️
Rate Limits

API requests are throttled to ensure platform stability. Limits are evaluated per API key.

Standard Requests

1,200
requests / minute

Burst Capacity

500
requests / 10s window

Large Payloads

50
requests / minute