Skip to main content
POST
/
workspaces
/
{workspace_id}
/
organizations
Create Organization
curl --request POST \
  --url https://api.altostrat.io/workspaces/{workspace_id}/organizations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "parent_org_id": "<string>",
  "billing_account_id": "<string>",
  "limits": {},
  "picture": "<string>"
}'
{
  "id": "<string>",
  "name": "<string>",
  "workspace_id": "<string>",
  "external_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "parent_org_id": "<string>",
  "path": "<string>",
  "depth": 4,
  "billing_account_id": "<string>",
  "usage": {
    "usage": {},
    "subtree_usage": {}
  },
  "limits": {},
  "picture": "<string>"
}

Authorizations

Authorization
string
header
required

Auth0 JWT token for user authentication.

Path Parameters

workspace_id
string
required

The unique identifier for the workspace.

Example:

"ws_abc123"

Body

application/json
name
string
required
Maximum length: 50
parent_org_id
string | null
billing_account_id
string | null
limits
object
picture
string | null

Base64 encoded image or HTTPS URL.

Response

Organization created successfully.

id
string

Auth0 organization ID

name
string
Maximum length: 50
workspace_id
string
external_id
string<uuid>

Internal reference ID

parent_org_id
string | null
path
string | null

e.g., org_root#org_parent

depth
integer
Required range: 0 <= x <= 9
billing_account_id
string | null
usage
object | null
limits
object
picture
string<uri> | null
I