# `api.companies.get_brands_tree` > `GET /companies/brandstree` — ACPortal **Python** ```python api.companies.get_brands_tree() -> list[BrandTree] ``` **CLI** ```bash ab companies get_brands_tree ``` GET /companies/brandstree ## Response Returns a list of `List[BrandTree]`. | Field | Type | Required | Description | |---|---|---|---| | `id` | `Optional[str]` | no | Brand ID | | `name` | `Optional[str]` | no | Brand name | | `children` | `Optional[list[dict]]` | no | Child brands | --- [← Back to api.companies](../companies.md)