Skip to main content
GET
/
workspaces
/
{workspaceId}
/
organizations
/
{organizationId}
/
parent
Retrieve parent organization
curl --request GET \
  --url https://api.altostrat.io/workspaces/{workspaceId}/organizations/{organizationId}/parent \
  --header 'Authorization: Bearer <token>'
{
  "id": "org_aBcDeFg123456789",
  "name": "Engineering Department",
  "workspace_id": "ws_a1b2c3d4e5f6g7h8",
  "external_id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
  "parent_org_id": "org_zYxWvUt987654321",
  "path": "org_root123#org_parent456",
  "depth": 2,
  "billing_account_id": "cus_a1b2c3d4e5f6g7h8",
  "picture": "https://cdn.altostrat.io/logos/engineering.png",
  "usage": {
    "usage": {
      "locations": 2,
      "users": 5
    },
    "subtree_usage": {
      "locations": 10,
      "users": 25
    }
  },
  "limits": {
    "locations": 10,
    "users": 50
  },
  "branding": {
    "display_name": "ACME Corp",
    "login_hint": "acme-corp",
    "colors": {
      "primary": "#FF5733",
      "page_background": "#FFFFFF"
    }
  }
}

Authorizations

Authorization
string
header
required

Enter your JWT in the format: Bearer {token}

Path Parameters

workspaceId
string
required

The ID of the workspace.

Example:

"ws_a1b2c3d4e5f6g7h8"

organizationId
string
required

The ID of the organization.

Example:

"org_aBcDeFg123456789"

Response

The parent organization object.

id
string

Unique identifier for the organization (corresponds to Auth0 organization ID), prefixed with org_.

Example:

"org_aBcDeFg123456789"

name
string

The human-readable name of the organization.

Example:

"Engineering Department"

workspace_id
string

The ID of the workspace this organization belongs to.

Example:

"ws_a1b2c3d4e5f6g7h8"

external_id
string<uuid>

A stable, unique identifier for the organization, independent of its Auth0 ID.

Example:

"a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"

parent_org_id
string | null

The ID of the parent organization, if this is a child organization.

Example:

"org_zYxWvUt987654321"

path
string | null

A #-separated string representing the hierarchical path of ancestors.

Example:

"org_root123#org_parent456"

depth
integer

The depth of the organization in the hierarchy (0 for top-level).

Example:

2

billing_account_id
string | null

The ID of the billing account this organization is associated with (in assigned mode).

Example:

"cus_a1b2c3d4e5f6g7h8"

picture
string<uri> | null

A URL to the organization's logo.

Example:

"https://cdn.altostrat.io/logos/engineering.png"

usage
object
limits
object

A map of resource limits applied directly to this organization. Keys are meterable types (locations, users, sso). A value of null or a missing key means no limit is set at this level. A value of 0 means the resource is explicitly disabled.

Example:
{ "locations": 10, "users": 50 }
branding
object