Python (SDK)
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.projects.create(data={
"type": latitudesh_python_sdk.CreateProjectProjectsType.PROJECTS,
"attributes": {
"name": "Bailey and Sons",
"provisioning_type": latitudesh_python_sdk.CreateProjectProvisioningType.ON_DEMAND,
"description": "Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.",
"environment": latitudesh_python_sdk.CreateProjectProjectsEnvironment.DEVELOPMENT,
},
})
# Handle response
print(res)package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"github.com/latitudesh/latitudesh-go-sdk/models/operations"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.Projects.Create(ctx, operations.CreateProjectProjectsRequestBody{
Data: &operations.CreateProjectProjectsData{
Type: operations.CreateProjectProjectsTypeProjects,
Attributes: &operations.CreateProjectProjectsAttributes{
Name: "Bailey and Sons",
ProvisioningType: operations.CreateProjectProvisioningTypeOnDemand,
Description: latitudeshgosdk.Pointer("Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham."),
Environment: operations.CreateProjectEnvironmentDevelopment.ToPointer(),
},
},
})
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.projects.create({
data: {
type: "projects",
attributes: {
name: "Bailey and Sons",
provisioningType: "on_demand",
description: "Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.",
environment: "Development",
},
},
});
console.log(result);
}
run();curl --request POST \
--url https://api.latitude.sh/projects \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"type": "projects",
"attributes": {
"name": "Bailey and Sons",
"description": "Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.",
"environment": "Development",
"provisioning_type": "on_demand"
}
}
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
data: {
type: 'projects',
attributes: {
name: 'Bailey and Sons',
description: 'Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.',
environment: 'Development',
provisioning_type: 'on_demand'
}
}
})
};
fetch('https://api.latitude.sh/projects', 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://api.latitude.sh/projects",
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([
'data' => [
'type' => 'projects',
'attributes' => [
'name' => 'Bailey and Sons',
'description' => 'Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.',
'environment' => 'Development',
'provisioning_type' => 'on_demand'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://api.latitude.sh/projects")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"type\": \"projects\",\n \"attributes\": {\n \"name\": \"Bailey and Sons\",\n \"description\": \"Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.\",\n \"environment\": \"Development\",\n \"provisioning_type\": \"on_demand\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"type\": \"projects\",\n \"attributes\": {\n \"name\": \"Bailey and Sons\",\n \"description\": \"Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.\",\n \"environment\": \"Development\",\n \"provisioning_type\": \"on_demand\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "proj_0L6WO156OPlXy",
"type": "projects",
"attributes": {
"tags": [],
"name": "Bailey and Sons",
"slug": "bailey-and-sons",
"description": "Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.",
"bandwidth_alert": null,
"environment": "Development",
"provisioning_type": "on_demand",
"billing_type": "Normal",
"billing_method": "Normal",
"billing": {
"subscription_id": "sub_wj7zk7mu35c2yq",
"type": "Normal",
"method": "Normal"
},
"team": {
"id": "team_72lL07N6leClEozwoxe9UVap9Aw",
"name": "179 Team",
"slug": "179-team",
"description": "179 Team",
"address": "Suite 460 74321 Nana Locks, Crystalport, TN 35908",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
},
"status": "verified",
"feature_flags": [],
"limits": {
"bare_metal": 5,
"bare_metal_gpu": 1,
"virtual_machine": 5,
"virtual_machine_gpu": 3,
"elastic_ip": 5,
"virtual_network": 5,
"database": null,
"filesystem": null,
"block_storage": null
}
},
"stats": {
"databases": 0,
"ip_addresses": 0,
"prefixes": 0,
"servers": 0,
"storages": 0,
"virtual_machines": 0,
"vlans": 0
},
"created_at": "2026-01-14T15:56:39+00:00",
"updated_at": "2026-01-14T15:56:39+00:00"
}
},
"meta": {}
}Projects
Create project
POST
/
projects
Python (SDK)
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.projects.create(data={
"type": latitudesh_python_sdk.CreateProjectProjectsType.PROJECTS,
"attributes": {
"name": "Bailey and Sons",
"provisioning_type": latitudesh_python_sdk.CreateProjectProvisioningType.ON_DEMAND,
"description": "Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.",
"environment": latitudesh_python_sdk.CreateProjectProjectsEnvironment.DEVELOPMENT,
},
})
# Handle response
print(res)package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"github.com/latitudesh/latitudesh-go-sdk/models/operations"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.Projects.Create(ctx, operations.CreateProjectProjectsRequestBody{
Data: &operations.CreateProjectProjectsData{
Type: operations.CreateProjectProjectsTypeProjects,
Attributes: &operations.CreateProjectProjectsAttributes{
Name: "Bailey and Sons",
ProvisioningType: operations.CreateProjectProvisioningTypeOnDemand,
Description: latitudeshgosdk.Pointer("Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham."),
Environment: operations.CreateProjectEnvironmentDevelopment.ToPointer(),
},
},
})
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.projects.create({
data: {
type: "projects",
attributes: {
name: "Bailey and Sons",
provisioningType: "on_demand",
description: "Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.",
environment: "Development",
},
},
});
console.log(result);
}
run();curl --request POST \
--url https://api.latitude.sh/projects \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"type": "projects",
"attributes": {
"name": "Bailey and Sons",
"description": "Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.",
"environment": "Development",
"provisioning_type": "on_demand"
}
}
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
data: {
type: 'projects',
attributes: {
name: 'Bailey and Sons',
description: 'Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.',
environment: 'Development',
provisioning_type: 'on_demand'
}
}
})
};
fetch('https://api.latitude.sh/projects', 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://api.latitude.sh/projects",
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([
'data' => [
'type' => 'projects',
'attributes' => [
'name' => 'Bailey and Sons',
'description' => 'Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.',
'environment' => 'Development',
'provisioning_type' => 'on_demand'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://api.latitude.sh/projects")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"type\": \"projects\",\n \"attributes\": {\n \"name\": \"Bailey and Sons\",\n \"description\": \"Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.\",\n \"environment\": \"Development\",\n \"provisioning_type\": \"on_demand\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"type\": \"projects\",\n \"attributes\": {\n \"name\": \"Bailey and Sons\",\n \"description\": \"Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.\",\n \"environment\": \"Development\",\n \"provisioning_type\": \"on_demand\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "proj_0L6WO156OPlXy",
"type": "projects",
"attributes": {
"tags": [],
"name": "Bailey and Sons",
"slug": "bailey-and-sons",
"description": "Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.",
"bandwidth_alert": null,
"environment": "Development",
"provisioning_type": "on_demand",
"billing_type": "Normal",
"billing_method": "Normal",
"billing": {
"subscription_id": "sub_wj7zk7mu35c2yq",
"type": "Normal",
"method": "Normal"
},
"team": {
"id": "team_72lL07N6leClEozwoxe9UVap9Aw",
"name": "179 Team",
"slug": "179-team",
"description": "179 Team",
"address": "Suite 460 74321 Nana Locks, Crystalport, TN 35908",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
},
"status": "verified",
"feature_flags": [],
"limits": {
"bare_metal": 5,
"bare_metal_gpu": 1,
"virtual_machine": 5,
"virtual_machine_gpu": 3,
"elastic_ip": 5,
"virtual_network": 5,
"database": null,
"filesystem": null,
"block_storage": null
}
},
"stats": {
"databases": 0,
"ip_addresses": 0,
"prefixes": 0,
"servers": 0,
"storages": 0,
"virtual_machines": 0,
"vlans": 0
},
"created_at": "2026-01-14T15:56:39+00:00",
"updated_at": "2026-01-14T15:56:39+00:00"
}
},
"meta": {}
}Was this page helpful?
⌘I