curl --request POST \
--url https://console.cloudblast.io/api/v2/servers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"plan_id": 1,
"location_id": 1,
"template_slug": "ubuntu-24.04",
"hostname": "web-01.example.com",
"ssh_key_ids": [
12,
18
]
}
'import requests
url = "https://console.cloudblast.io/api/v2/servers"
payload = {
"plan_id": 1,
"location_id": 1,
"template_slug": "ubuntu-24.04",
"hostname": "web-01.example.com",
"ssh_key_ids": [12, 18]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
plan_id: 1,
location_id: 1,
template_slug: 'ubuntu-24.04',
hostname: 'web-01.example.com',
ssh_key_ids: [12, 18]
})
};
fetch('https://console.cloudblast.io/api/v2/servers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://console.cloudblast.io/api/v2/servers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'plan_id' => 1,
'location_id' => 1,
'template_slug' => 'ubuntu-24.04',
'hostname' => 'web-01.example.com',
'ssh_key_ids' => [
12,
18
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://console.cloudblast.io/api/v2/servers"
payload := strings.NewReader("{\n \"plan_id\": 1,\n \"location_id\": 1,\n \"template_slug\": \"ubuntu-24.04\",\n \"hostname\": \"web-01.example.com\",\n \"ssh_key_ids\": [\n 12,\n 18\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://console.cloudblast.io/api/v2/servers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"plan_id\": 1,\n \"location_id\": 1,\n \"template_slug\": \"ubuntu-24.04\",\n \"hostname\": \"web-01.example.com\",\n \"ssh_key_ids\": [\n 12,\n 18\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.cloudblast.io/api/v2/servers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"plan_id\": 1,\n \"location_id\": 1,\n \"template_slug\": \"ubuntu-24.04\",\n \"hostname\": \"web-01.example.com\",\n \"ssh_key_ids\": [\n 12,\n 18\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 42,
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"uuid_short": "a1b2c3d4",
"name": "Starter VPS",
"hostname": "web-01.example.com",
"status": null,
"cpu": 2,
"memory": 2147483648,
"disk": 42949672960,
"bandwidth_usage": 536870912,
"bandwidth_limit": 1073741824000,
"node_id": 1,
"created_at": "2026-01-10T14:00:00+00:00",
"ip_addresses": [
{
"address": "203.0.113.50",
"type": "ipv4",
"gateway": "203.0.113.1",
"cidr": 24,
"rdns": "server1.example.com"
}
],
"password_status": "generating",
"plan": {
"id": 123,
"name": "<string>",
"monthly_price": 123,
"hourly_price": 123
},
"operating_system": "Ubuntu 24.04 LTS"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Missing or invalid Authorization header. Use: Authorization: Bearer <token>"
}
}{
"error": {
"code": "OVERDUE_INVOICE",
"message": "You have an overdue invoice. Please pay it before creating new servers."
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "The given data was invalid.",
"details": {
"name": [
"The name field is required."
]
}
}
}Create Server
Creates a new server. The system automatically selects the best node in the given location based on available resources, template availability, and IP availability. Use template slugs (from GET /locations/{id}/templates) instead of UUIDs.
To install saved SSH keys during provisioning, pass their IDs in ssh_key_ids. Obtain key IDs from GET /ssh-keys. A root password is still generated and can be fetched after installation with GET /servers/{server}/credentials.
The server will be in installing status while being provisioned.
curl --request POST \
--url https://console.cloudblast.io/api/v2/servers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"plan_id": 1,
"location_id": 1,
"template_slug": "ubuntu-24.04",
"hostname": "web-01.example.com",
"ssh_key_ids": [
12,
18
]
}
'import requests
url = "https://console.cloudblast.io/api/v2/servers"
payload = {
"plan_id": 1,
"location_id": 1,
"template_slug": "ubuntu-24.04",
"hostname": "web-01.example.com",
"ssh_key_ids": [12, 18]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
plan_id: 1,
location_id: 1,
template_slug: 'ubuntu-24.04',
hostname: 'web-01.example.com',
ssh_key_ids: [12, 18]
})
};
fetch('https://console.cloudblast.io/api/v2/servers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://console.cloudblast.io/api/v2/servers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'plan_id' => 1,
'location_id' => 1,
'template_slug' => 'ubuntu-24.04',
'hostname' => 'web-01.example.com',
'ssh_key_ids' => [
12,
18
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://console.cloudblast.io/api/v2/servers"
payload := strings.NewReader("{\n \"plan_id\": 1,\n \"location_id\": 1,\n \"template_slug\": \"ubuntu-24.04\",\n \"hostname\": \"web-01.example.com\",\n \"ssh_key_ids\": [\n 12,\n 18\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://console.cloudblast.io/api/v2/servers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"plan_id\": 1,\n \"location_id\": 1,\n \"template_slug\": \"ubuntu-24.04\",\n \"hostname\": \"web-01.example.com\",\n \"ssh_key_ids\": [\n 12,\n 18\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.cloudblast.io/api/v2/servers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"plan_id\": 1,\n \"location_id\": 1,\n \"template_slug\": \"ubuntu-24.04\",\n \"hostname\": \"web-01.example.com\",\n \"ssh_key_ids\": [\n 12,\n 18\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 42,
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"uuid_short": "a1b2c3d4",
"name": "Starter VPS",
"hostname": "web-01.example.com",
"status": null,
"cpu": 2,
"memory": 2147483648,
"disk": 42949672960,
"bandwidth_usage": 536870912,
"bandwidth_limit": 1073741824000,
"node_id": 1,
"created_at": "2026-01-10T14:00:00+00:00",
"ip_addresses": [
{
"address": "203.0.113.50",
"type": "ipv4",
"gateway": "203.0.113.1",
"cidr": 24,
"rdns": "server1.example.com"
}
],
"password_status": "generating",
"plan": {
"id": 123,
"name": "<string>",
"monthly_price": 123,
"hourly_price": 123
},
"operating_system": "Ubuntu 24.04 LTS"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Missing or invalid Authorization header. Use: Authorization: Bearer <token>"
}
}{
"error": {
"code": "OVERDUE_INVOICE",
"message": "You have an overdue invoice. Please pay it before creating new servers."
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "The given data was invalid.",
"details": {
"name": [
"The name field is required."
]
}
}
}Authorizations
API token from your CloudBlast account settings. Pass as Authorization: Bearer <token>.
Body
Plan ID from GET /plans
1
Location ID from GET /locations
1
Template slug from GET /locations/{id}/templates
"ubuntu-24.04"
Server hostname. Defaults to the plan name if omitted.
191"web-01.example.com"
IDs of saved SSH keys to install during provisioning. Obtain IDs from GET /ssh-keys. The generated root password remains available.
1 - 20 elements[12, 18]
Response
Server created
Show child attributes
Show child attributes