---
title: "Get asset collection hierarchy"
method: GET
path: "/assets/collections/{collection_id}/hierarchy"
tags: ["Assets"]
---

# Get asset collection hierarchy

`GET /assets/collections/{collection_id}/hierarchy`

## Request

- Base URL: `https://api.fal.ai/v1`
- URL: `https://api.fal.ai/v1/assets/collections/{collection_id}/hierarchy`
- Auth: API key in header `Authorization`

Get the nested subtree rooted at an asset collection, plus its ancestor collections ordered from the top level down to its direct parent.

**Required permissions:** `assets:read`. Key presets that include them: `API`, `SERVERLESS`, `READONLY`, `FULL`. See [key permissions](https://fal.ai/docs/documentation/model-apis/authentication/key-based#permissions).

## Path parameters

- `collection_id` string, required: Collection ID

## Response `200`

Collection hierarchy

- object
  - `hierarchy` object, required: Subtree rooted at the requested collection
    - `id` string, required: Collection ID
    - `name` string, required: Collection display name
    - `type` 'manual' | 'smart' | 'character', required: Collection type
    - `children` object[], required: Child collections
      - `id` string, required: Collection ID
      - `name` string, required: Collection display name
      - `type` 'manual' | 'smart' | 'character', required: Collection type
      - `children` object[], required: Child collections
        - `id` string, required: Collection ID
        - `name` string, required: Collection display name
        - `type` 'manual' | 'smart' | 'character', required: Collection type
        - `children` object[], required: Child collections
          - `id` string, required: Collection ID
          - `name` string, required: Collection display name
          - `type` 'manual' | 'smart' | 'character', required: Collection type
          - `children` object[], required: Child collections
            - `id` string, required: Collection ID
            - `name` string, required: Collection display name
            - `type` 'manual' | 'smart' | 'character', required: Collection type
            - `children` unknown[], required: Child collections (always empty at the maximum nesting depth)
              - …
  - `ancestors` object[], required: Ancestor collections ordered from the top level down to the direct parent
    - `id` string, required: Collection ID
    - `name` string, required: Collection display name
    - `type` 'manual' | 'smart' | 'character', required: Collection type

## Other responses

- `400`: Invalid request parameters
- `401`: Authentication required
- `403`: Access denied
- `404`: Resource not found
- `409`: Invalid request parameters
- `422`: Invalid request parameters
- `429`: Rate limit exceeded
- `500`: Internal server error
- `502`: Upstream asset service error

## Changes

- **2026-10-10** `479db2f9dcd6`: 2 info
  - the endpoint scheme security `readonlyApiKey` was added to the API
  - the endpoint scheme security `apiKey` was removed from the API

[Operation history](https://skmtc.dev/fal/apis/platform-apis/changes/assets/collections/:collection_id/hierarchy/get.md)

---

[API](https://skmtc.dev/fal/apis/platform-apis.md) - [All operations](https://skmtc.dev/fal/apis/platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/fal/apis/platform-apis/revisions/3b3b61bedf06?raw)
