REST API
CloudRift provides a full REST API for managing instances, clusters, networks, volumes, reservations, and more. You can explore and test API endpoints using either of the interactive documentation tools below:
- Swagger UI — recommended, with full OpenAPI 3.1 support.
- RapiDoc — alternative interactive API reference.
All API endpoints support authentication via user JWT token, user API key, or team API key.
Key Capabilities
Beyond standard instance and cluster management, the API includes:
- MCP integration —
POST /mcpendpoint exposes CloudRift operations as MCP tools for LLM integration (Claude Code, Claude Desktop, etc.). - Node metrics —
/api/v1/nodes/metrics/listfor GPU and MIG instance metrics. - Instance GPU metrics —
POST /api/v1/instances/metricsfor per-instance GPU metrics (utilization, temperature, VRAM, power draw) scoped by the instance's allocated GPU mask. - Two-factor authentication — TOTP-based 2FA endpoints for setting up, verifying, and managing two-factor authentication on accounts. See Two-Factor Authentication.
- Admin user & team management — Endpoints for listing, searching, creating users, and managing teams with financial settings. Supports team invite by email for users who don't yet have an account.
- Custom recipes — Create and manage recipes for virtual machines and containers at the user or team level.
recipes/listcan return each VM image's metadata (with_image_metadata) and its rent verdict for a given node or variant selector (compatibility). - Instance tags — Attach free-form
tagsat rent time and filterPOST /api/v1/instances/listwith theByTagsselector (all/any). - Opt-in instance credentials —
POST /api/v1/instances/listomits instance passwords unless you setmask.with_credentials. See v0.61.0. - Saved environments:
POST /api/v1/instances/saved-environments/listlists the disks of terminated VM rentals that can be re-attached to a new rental on the same node withreuse_environment_id. Since v0.63.3 a disk is kept beyond the erase grace period while the node has space, and erased oldest-first when a new rental needs the room or the node is drained;protected_untilreplaces the deprecatedexpires_at. Reuse needs a VM instance with a disk at least as large as the saved one. - Released capacity:
resources_releasedin instance info tells you when a terminated instance's capacity is available to rent again. - NVIDIA driver compatibility:
nvidia_kernel_module_supporton GPUs, instance types, reservations and quotas tells you which NVIDIA driver flavor (open or proprietary) a VM image needs for that hardware. Since v0.63.3, rent validation reads the image's own metadata: an incompatible image is rejected with a message naming what to pick instead, and an image with unknown metadata is allowed. See v0.63.3. - Node list queries:
POST /api/v1/nodes/listtakes an optionalqueryfor pagination, search, filtering and sorting, and returns a summary with totals, status counts and filter options. Listings includedatacenter_name,provider_nameand per-GPU health. - Capabilities:
POST /api/v1/capabilities/listneeds no permission and reports your effectivepermissions,scope, operableprovidersand per-providerprovider_permissions.features,is_adminandprovider_nameare deprecated. - Provider access grants: provider roots grant users or teams Operator or Viewer access to a provider with
POST /api/v1/providers/access/grant,/revokeand/list. Permissions are enforced per provider. - Renter-scoped networks: the
ByRenterselector onPOST /api/v1/network/listreturns only the networks a rental by a given team or user can use. - Unallocated capacity: node info includes
unallocated, the free capacity that no allocation holds and that other accounts can rent. - Team API key support —
/api/v1/auth/mesupports team API key authentication in addition to user tokens. Also returnstotp_enabledto indicate whether 2FA is active on the account.
Refer to the Swagger UI for the complete endpoint reference.