returns AccountTree
Chart of Accounts as a recursive tree.
includeInactive defaults to False so deleted source-system
accounts (still kept in OLTP for historical journal-line FK integrity)
don't clutter the standard CoA view. Set True for admin / cleanup
contexts.
| Name | Type | Description |
|---|---|---|
| includeInactive | Boolean | Include accounts deleted upstream but retained for journal-line integrity. Defaults to false. |
| Field | Type | Description |
|---|---|---|
| roots | [AccountTreeNode!]! | — |
| totalAccounts | Int! | — |
{ accountTree { totalAccounts } }curl -X POST "https://api.robosystems.ai/extensions/$GRAPH_ID/graphql" \
-H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "{ accountTree { totalAccounts } }"}'