REST API

API reference

Manage your whole CubePath infrastructure from code: 308 endpoints across 24 products, generated straight from the live API.

Welcome to CubePath Cloud! Our API helps you manage your cloud infrastructure with ease. Create servers, manage networks, handle payments, and more - all through simple API calls.

AI assistants (MCP)

Everything below is also available to AI assistants through an MCP server, so you can operate your infrastructure in plain language: mcp.cubepath.com has the install snippet for every client, the full tool list and how permissions work.

Base URL

Every request goes over HTTPS to the API host below. Request and response bodies are JSON.

https://api.cubepath.com

Authentication

Authenticate with an API token, sent as a Bearer token or in the X-API-Key header. Create a token in the dashboard and keep it secret: it acts with your permissions.

curl https://api.cubepath.com/projects/ \
  -H "Authorization: Bearer $CUBEPATH_API_TOKEN"

# or, equivalently
curl https://api.cubepath.com/projects/ \
  -H "X-API-Key: $CUBEPATH_API_TOKEN"

Errors

Errors use standard HTTP status codes and return a JSON body with a human-readable detail. Validation errors return 422.

{
  "detail": "VPS not found"
}

Rate-limited responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers; a 429 means you should wait until the reset.

Products