curl --request GET \
--url https://api.altostrat.io/workspaces/{workspaceId}/organizations \
--header 'Authorization: Bearer <token>'{
"data": [
{
"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"
}
}
}
],
"has_more": false
}Returns a list of all organizations within the specified workspace.
curl --request GET \
--url https://api.altostrat.io/workspaces/{workspaceId}/organizations \
--header 'Authorization: Bearer <token>'{
"data": [
{
"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"
}
}
}
],
"has_more": false
}Enter your JWT in the format: Bearer {token}
The ID of the workspace.
"ws_a1b2c3d4e5f6g7h8"
A list of organization objects.
Show child attributes
Unique identifier for the organization (corresponds to Auth0 organization ID), prefixed with org_.
"org_aBcDeFg123456789"
The human-readable name of the organization.
"Engineering Department"
The ID of the workspace this organization belongs to.
"ws_a1b2c3d4e5f6g7h8"
A stable, unique identifier for the organization, independent of its Auth0 ID.
"a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
The ID of the parent organization, if this is a child organization.
"org_zYxWvUt987654321"
A #-separated string representing the hierarchical path of ancestors.
"org_root123#org_parent456"
The depth of the organization in the hierarchy (0 for top-level).
2
The ID of the billing account this organization is associated with (in assigned mode).
"cus_a1b2c3d4e5f6g7h8"
A URL to the organization's logo.
"https://cdn.altostrat.io/logos/engineering.png"
Show child attributes
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.
Show child attributes
x >= 0{ "locations": 10, "users": 50 }
Show child attributes
The public-facing name of the organization, used for branding purposes.
"ACME Corp"
A unique, URL-friendly identifier used to pre-fill the organization in login flows.
"acme-corp"
false
Was this page helpful?