Skip to main content

Organizations API

Read-only endpoints for the organization tree. All calls need a signed-in user. The result is always limited to the caller's organization node and its descendants.

Get the caller's scope​

GET /api/organizations/me/scope

Returns the caller's node (id, name, nodeType, kind, status), descendantCount, and ancestorNames ordered from the root. A user with no node gets 200 with an empty scope.

Get a node​

GET /api/organizations/{id}

Returns id, parentId, name, nodeType, kind and status.

Get a subtree​

GET /api/organizations/{id}/subtree?page=1&pageSize=100

Returns a paged, flat list of the node's descendants (not the node itself), sorted by path. The response holds items, page and pageSize. A page holds at most 500 items; a larger pageSize is capped at 500.

ParameterDefaultNotes
statusOmitted: all statusesactive or inactive
page1
pageSize100Maximum 500; larger values are capped

Errors​

StatusWhen
400id is not a valid GUID, or status is not active or inactive
401The caller is not signed in
404The node does not exist or is outside the caller's scope. Both cases return the same response.

A node outside your scope returns the same 404 as a node that does not exist, so a caller cannot tell whether another tenant's node exists. An ancestor of your node is outside your scope, so asking for it returns 404 too. Ancestor names are available only through ancestorNames.