---
title: "Pre-Release: Get managed account tree"
method: GET
path: "/public/v2/managed/accounts/tree"
tags: ["Managed Accounts"]
---

# Pre-Release: Get managed account tree

`GET /public/v2/managed/accounts/tree`

Required permission: Managed Account Information, View.<br/>Gets the entire managed account hierarchy beneath the calling account.
            
This endpoint is available for select audiences only.

## Query parameters

- `ancestorAccountNumber` string

## Response `200`

Account tree retrieved

- ManagedAccountTreeResponseV2ServiceResponse
  - `errors` ValidationResult[], nullable
    - `memberNames` string[], nullable
    - `errorMessage` string, nullable
  - `warnings` ValidationResult[], nullable
    - `memberNames` string[], nullable
    - `errorMessage` string, nullable
  - `information` string[], nullable
  - `isValid` boolean
  - `content` ManagedAccountTreeResponseV2
    - `rootAccountNumber` string — The root account number
    - `tree` object — Dictionary mapping account numbers to tree nodes

## Other responses

- `401` — Unauthorized
- `403` — Missing required permission for this endpoint or resource
- `422` — Failed to retrieve managed account tree

---

[API](https://skmtc.net/starlink/apis/starlink-management-api.md) · [All operations](https://skmtc.net/starlink/apis/starlink-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/starlink/starlink-management-api/revisions/a730bd0ddb42/schema)
