---
title: "Get all scopes"
method: GET
path: "/scopes"
tags: ["Scopes"]
---

# Get all scopes

`GET /scopes`

Retrieve all scopes in a tree format with available filters. This endpoint does not require authentication and returns the complete scope hierarchy.

## Response `200`

Tree-structured list of all scopes with their available filters

- ScopeTreeResponse
  - `scopes` Scope[], required — Tree-structured list of scopes
    - `id` integer, required — Unique identifier for the scope
    - `name` string, required — Scope name (e.g., 'inventory:read')
    - `label` string, required — Human-readable label for the scope
    - `category` string, required — Scope category (e.g., 'inventory', 'workflows')
    - `parent_id` integer, nullable — Parent scope ID for hierarchical structure
    - `sort_priority` integer, required — Sorting priority for parent scopes (lower number = higher priority, appears first). Used for ordering parent scopes in the tree.
    - `description` string, nullable — Detailed description of the scope
    - `filters` string[] — Available filter names for this scope (e.g., ["provider", "integration_type"])
    - `children` Scope[] — Child scopes for tree structure

## Other responses

- `500` — Internal server error

---

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