> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://americancloud.com/docs/api/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://americancloud.com/docs/api/_mcp/server.

# Create a new database cluster

POST https://api.americancloud.com/api/v1/databases/clusters
Content-Type: application/json

Creates a new managed database cluster for the authenticated account.

Reference: https://americancloud.com/docs/api/api-reference/databases/create-databases

## Authentication

- `X-API-Client-ID` header (required) — API Client ID
- `X-API-Client-Secret` header (required) — API Client Secret

## Request

### Body (application/json)

This endpoint expects a CreateDatabaseClusterDto.

- `dbClusterName` (string, required) — Database cluster name. Must comply with Kubernetes naming rules.
- `regionId` (string, required) — Identifier of the region the cluster will run in.
- `tier` (string, required, default: standard) — Infrastructure tier that determines per-node CPU and memory.
- `availabilityType` (enum, required, default: data-redundancy) — Availability mode for the cluster.
  - Allowed values: `single-node`, `data-redundancy`
- `userClusterId` (string, optional) — Identifier of an existing infrastructure cluster to deploy the database on. Omit to provision new infrastructure.
- `sshKey` (string, optional) — SSH key authorized for access to the cluster. Required when creating a new cluster; omit only when deploying onto an existing `userClusterId`.
- `offeringId` (string, optional) — Identifier of the database offering to use.
- `offeringName` (string, optional) — Name of the database offering. Alternative to `offeringId` for selecting an offering.
- `storageGb` (integer, optional) — Storage capacity allocated to the cluster, in gigabytes.
- `networkConfig` (CreateDatabaseClusterDtoNetworkConfig, optional) — Network the cluster will attach to. Required when creating a new cluster; omit only when deploying onto an existing `userClusterId`.
- `restore` (CreateClusterRestoreDto, optional) — Restore-from-backup configuration. Provide to bootstrap the new cluster from an existing backup.

## Response

### 201

Database cluster creation initiated

## Errors

### 400 Bad Request Error

The request was malformed or failed validation.

- `statusCode` (double, required) — HTTP status code.
- `message` (ApiErrorDtoMessage, required) — Human-readable error message. A single string for most errors, or an array of strings when the request failed multiple validation checks.
- `error` (string, optional) — Short HTTP error label.
- `code` (string, optional) — Machine-readable reason for the error. Match on this value rather than on `message`, which can be reworded at any time. Present on the errors that have more than one cause for the same status code; omitted otherwise.
- `errors` (list of ValidationErrorItemDto, optional) — Per-field validation details. Present on 400 responses produced by request-body validation; omitted otherwise.
- `snapshots` (list of BlockingSnapshotDto, optional) — The snapshots that block a delete. Present on a 409 whose `code` is `volume_has_snapshots`; omitted otherwise.

### 401 Unauthorized Error

Authentication credentials were missing or invalid.

- `statusCode` (double, required) — HTTP status code.
- `message` (ApiErrorDtoMessage, required) — Human-readable error message. A single string for most errors, or an array of strings when the request failed multiple validation checks.
- `error` (string, optional) — Short HTTP error label.
- `code` (string, optional) — Machine-readable reason for the error. Match on this value rather than on `message`, which can be reworded at any time. Present on the errors that have more than one cause for the same status code; omitted otherwise.
- `errors` (list of ValidationErrorItemDto, optional) — Per-field validation details. Present on 400 responses produced by request-body validation; omitted otherwise.
- `snapshots` (list of BlockingSnapshotDto, optional) — The snapshots that block a delete. Present on a 409 whose `code` is `volume_has_snapshots`; omitted otherwise.

### 403 Forbidden Error

The authenticated principal is not permitted to perform this action.

- `statusCode` (double, required) — HTTP status code.
- `message` (ApiErrorDtoMessage, required) — Human-readable error message. A single string for most errors, or an array of strings when the request failed multiple validation checks.
- `error` (string, optional) — Short HTTP error label.
- `code` (string, optional) — Machine-readable reason for the error. Match on this value rather than on `message`, which can be reworded at any time. Present on the errors that have more than one cause for the same status code; omitted otherwise.
- `errors` (list of ValidationErrorItemDto, optional) — Per-field validation details. Present on 400 responses produced by request-body validation; omitted otherwise.
- `snapshots` (list of BlockingSnapshotDto, optional) — The snapshots that block a delete. Present on a 409 whose `code` is `volume_has_snapshots`; omitted otherwise.

### 404 Not Found Error

The requested resource does not exist or is not accessible to the caller.

- `statusCode` (double, required) — HTTP status code.
- `message` (ApiErrorDtoMessage, required) — Human-readable error message. A single string for most errors, or an array of strings when the request failed multiple validation checks.
- `error` (string, optional) — Short HTTP error label.
- `code` (string, optional) — Machine-readable reason for the error. Match on this value rather than on `message`, which can be reworded at any time. Present on the errors that have more than one cause for the same status code; omitted otherwise.
- `errors` (list of ValidationErrorItemDto, optional) — Per-field validation details. Present on 400 responses produced by request-body validation; omitted otherwise.
- `snapshots` (list of BlockingSnapshotDto, optional) — The snapshots that block a delete. Present on a 409 whose `code` is `volume_has_snapshots`; omitted otherwise.

### 409 Conflict Error

An operation is already in progress

- `statusCode` (double, required) — HTTP status code.
- `message` (ApiErrorDtoMessage, required) — Human-readable error message. A single string for most errors, or an array of strings when the request failed multiple validation checks.
- `error` (string, optional) — Short HTTP error label.
- `code` (string, optional) — Machine-readable reason for the error. Match on this value rather than on `message`, which can be reworded at any time. Present on the errors that have more than one cause for the same status code; omitted otherwise.
- `errors` (list of ValidationErrorItemDto, optional) — Per-field validation details. Present on 400 responses produced by request-body validation; omitted otherwise.
- `snapshots` (list of BlockingSnapshotDto, optional) — The snapshots that block a delete. Present on a 409 whose `code` is `volume_has_snapshots`; omitted otherwise.

### 500 Internal Server Error

An unexpected error occurred on the server.

- `statusCode` (double, required) — HTTP status code.
- `message` (ApiErrorDtoMessage, required) — Human-readable error message. A single string for most errors, or an array of strings when the request failed multiple validation checks.
- `error` (string, optional) — Short HTTP error label.
- `code` (string, optional) — Machine-readable reason for the error. Match on this value rather than on `message`, which can be reworded at any time. Present on the errors that have more than one cause for the same status code; omitted otherwise.
- `errors` (list of ValidationErrorItemDto, optional) — Per-field validation details. Present on 400 responses produced by request-body validation; omitted otherwise.
- `snapshots` (list of BlockingSnapshotDto, optional) — The snapshots that block a delete. Present on a 409 whose `code` is `volume_has_snapshots`; omitted otherwise.

## Types

### CreateDatabaseClusterDtoNetworkConfig

Network the cluster will attach to. Required when creating a new cluster; omit only when deploying onto an existing `userClusterId`.

- `networkType`: `isolated` (isolated)
  - `networkId` (string, required) — Identifier of the isolated network the cluster will attach to.
  - `zoneName` (string, optional) — Zone name override for the cluster.
- `networkType`: `vpc` (vpc)
  - `networkId` (string, required) — Identifier of the network tier within the VPC the cluster will attach to.
  - `vpcId` (string, required) — Identifier of the VPC the cluster will attach to.
  - `zoneName` (string, optional) — Zone name override for the cluster.

### CreateClusterRestoreDto

- `sourceClusterId` (string, required) — Identifier of the source cluster to restore from.
- `backupName` (string, required) — Name of the backup to restore from on the source cluster.
- `restorePointInTime` (string, optional) — Point-in-time to restore to, in ISO 8601 format. Omit to restore to the backup timestamp.

### ApiErrorDtoMessage

Human-readable error message. A single string for most errors, or an array of strings when the request failed multiple validation checks.

### ValidationErrorItemDto

- `field` (string, required) — Dotted path to the field that failed validation.
- `message` (string, required) — Human-readable validation message for this field.

### BlockingSnapshotDto

- `id` (string, required) — Snapshot ID.
- `name` (string, required) — Snapshot name.

## Examples

**Request**

```json
{
  "dbClusterName": "production-db",
  "regionId": "123e4567-e89b-12d3-a456-426614174000",
  "tier": "standard",
  "availabilityType": "data-redundancy"
}
```

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://api.americancloud.com/api/v1/databases/clusters"

payload = {
    "dbClusterName": "production-db",
    "regionId": "123e4567-e89b-12d3-a456-426614174000",
    "tier": "standard",
    "availabilityType": "data-redundancy"
}
headers = {
    "X-API-Client-ID": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.americancloud.com/api/v1/databases/clusters';
const options = {
  method: 'POST',
  headers: {'X-API-Client-ID': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"dbClusterName":"production-db","regionId":"123e4567-e89b-12d3-a456-426614174000","tier":"standard","availabilityType":"data-redundancy"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.americancloud.com/api/v1/databases/clusters"

	payload := strings.NewReader("{\n  \"dbClusterName\": \"production-db\",\n  \"regionId\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"tier\": \"standard\",\n  \"availabilityType\": \"data-redundancy\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-API-Client-ID", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.americancloud.com/api/v1/databases/clusters")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-Client-ID"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"dbClusterName\": \"production-db\",\n  \"regionId\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"tier\": \"standard\",\n  \"availabilityType\": \"data-redundancy\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.americancloud.com/api/v1/databases/clusters")
  .header("X-API-Client-ID", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"dbClusterName\": \"production-db\",\n  \"regionId\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"tier\": \"standard\",\n  \"availabilityType\": \"data-redundancy\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.americancloud.com/api/v1/databases/clusters', [
  'body' => '{
  "dbClusterName": "production-db",
  "regionId": "123e4567-e89b-12d3-a456-426614174000",
  "tier": "standard",
  "availabilityType": "data-redundancy"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-Client-ID' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.americancloud.com/api/v1/databases/clusters");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-Client-ID", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"dbClusterName\": \"production-db\",\n  \"regionId\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"tier\": \"standard\",\n  \"availabilityType\": \"data-redundancy\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-API-Client-ID": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "dbClusterName": "production-db",
  "regionId": "123e4567-e89b-12d3-a456-426614174000",
  "tier": "standard",
  "availabilityType": "data-redundancy"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.americancloud.com/api/v1/databases/clusters")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```