API Base URL
All API requests are made to:Key Features
The Cloud API enables you to:- Cluster Management: Create, update, and delete clusters across Basic, Standard, and Advanced plans
- User Management: Create and manage SQL users and their passwords
- Resource Configuration: Adjust compute resources, storage limits, and usage controls
- Monitoring: Retrieve cluster status, node information, and audit logs
- Backup & Restore: Manage backup policies and restore operations
- Security: Configure CMEK (Customer-Managed Encryption Keys) for Advanced clusters
Service Accounts and Permissions
API access requires a service account with appropriate permissions:- Cluster Admin: Full access to all cluster operations
- Cluster Creator: Can create and delete clusters
- Cluster Developer: Can view and modify existing clusters
- Cluster Operator: Can manage cluster maintenance settings
- Billing Coordinator: Can view invoices and billing information
Rate Limiting
The Cloud API is rate-limited to 10 requests per second per user. When you exceed this limit, you’ll receive an HTTP 429 response with a
Retry-After header and a “rate limit exceeded” message.API Versioning
The Cloud API uses date-based versioning in the formatYYYY-MM-DD (ISO 8601). The current version is 2024-09-16.
You should specify the API version using the Cc-Version header in all requests:
Alternative Tools
In addition to the REST API, you can manage CockroachDB Cloud resources using:- CockroachDB Cloud Terraform Provider: Infrastructure-as-code approach for provisioning and managing clusters
- CockroachDB Cloud Console: Web-based UI for interactive cluster management
Support Policy
Future versions of the API may introduce new endpoints and features. Within a major version:- Existing endpoints and their behavior remain stable
- New endpoints may be added in minor versions
- Breaking changes will only occur with new major versions
Next Steps
Authentication
Learn how to authenticate your API requests
Cluster Management
Create and manage CockroachDB Cloud clusters
Database Operations
Manage databases within your clusters
User Management
Create and manage SQL users