Create Organization Workspace
curl --request POST \
--url https://api.example.com/organizations/{organization_id}/workspacesimport requests
url = "https://api.example.com/organizations/{organization_id}/workspaces"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/organizations/{organization_id}/workspaces', 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.example.com/organizations/{organization_id}/workspaces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/organizations/{organization_id}/workspaces"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/organizations/{organization_id}/workspaces")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/organizations/{organization_id}/workspaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyOrganizations
Create Organization Workspace
Create a new workspace under an organization
POST
/
organizations
/
{organization_id}
/
workspaces
Create Organization Workspace
curl --request POST \
--url https://api.example.com/organizations/{organization_id}/workspacesimport requests
url = "https://api.example.com/organizations/{organization_id}/workspaces"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/organizations/{organization_id}/workspaces', 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.example.com/organizations/{organization_id}/workspaces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/organizations/{organization_id}/workspaces"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/organizations/{organization_id}/workspaces")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/organizations/{organization_id}/workspaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyPOST /organizations//workspaces
Provisions a new workspace within the organization. The workspace is initialized with default settings, an API key, and appropriate membership records.Notes
- Requires
owneroradminrole. Members and viewers cannot create workspaces. - The
identifierfield is required and serves as the human-readable workspace name. - On success, the response includes the new
workspace_id,identifier,organization_id, and a one-timeapi_key. Store the API key securely — it cannot be retrieved again.
The
api_key in the response is shown only once. Make sure to copy and store it immediately.- The calling user is automatically assigned
ownerrole on the new workspace. - All existing organization owners are granted
admin-level access to the new workspace. - Default workspace settings (modeling defaults, preferences) are applied automatically.
- See List Organization Workspaces to view all workspaces after creation.
