GraphQL API
Explore the CloudNexus infrastructure API. Query, mutate, and monitor your cloud resources in real-time.
Introduction
The CloudNexus GraphQL API provides a unified interface to manage compute, storage, networking, and security resources. Unlike REST, GraphQL allows you to request exactly the data you need, reducing over-fetching and improving performance.
Authentication
All requests require authentication via Bearer token or API key. Generate keys in your dashboard under Settings → API Keys.
Base URL
All GraphQL requests are sent to a single endpoint:
Include the following headers for production requests:
Queries
Retrieve infrastructure data without side effects. Use queries to list resources, fetch metrics, or validate configurations.
Mutations
Create, update, or delete resources. Mutations return the modified resource and support optimistic updates.
Rate Limits
GraphQL endpoints are limited to 1,000 requests/minute per API key. Burst limit: 200 req/min. Exceeding limits returns 429 Too Many Requests with a Retry-After header.