> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slate-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Teams Tree

> Full hierarchy as nested JSON. Use for UI rendering only — not for reporting queries.
For reporting subtree queries use GET /teams/{id}/subtree (path LIKE, no recursion).



## OpenAPI

````yaml /openapi.json get /teams/tree
openapi: 3.1.0
info:
  title: Slate API
  version: 1.0.0
  description: Trading infrastructure API.
servers:
  - url: https://api.{your-broker}.slate-labs.com
    variables:
      your-broker:
        default: broker
security: []
tags:
  - name: Authentication
  - name: API Tokens
  - name: Customers
  - name: Accounts
  - name: Orders
  - name: Instruments & Groups
  - name: Transactions
  - name: Payments
  - name: Transfers
  - name: Risk
  - name: Workflow & CRM
  - name: Messaging
  - name: Integrations
  - name: Webhooks
  - name: Compliance
  - name: Promo codes
  - name: Reporting
  - name: Audit
  - name: Fraud & moderation
  - name: Broker settings
  - name: Users
  - name: Roles & Teams
  - name: Streams (SSE)
  - name: Simulator
  - name: Observability
  - name: Prop trading
paths:
  /teams/tree:
    get:
      tags:
        - Roles & Teams
      summary: Get Teams Tree
      description: >-
        Full hierarchy as nested JSON. Use for UI rendering only — not for
        reporting queries.

        For reporting subtree queries use GET /teams/{id}/subtree (path LIKE, no
        recursion).
      operationId: get_teams_tree_teams_tree_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/TeamTreeResponse'
                type: array
                title: Response Get Teams Tree Teams Tree Get
components:
  schemas:
    TeamTreeResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        parent_team_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Parent Team Id
        path:
          type: string
          title: Path
        depth:
          type: integer
          title: Depth
        is_active:
          type: boolean
          title: Is Active
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        children:
          items:
            $ref: '#/components/schemas/TeamTreeResponse'
          type: array
          title: Children
          default: []
      type: object
      required:
        - id
        - name
        - parent_team_id
        - path
        - depth
        - is_active
        - created_at
        - updated_at
      title: TeamTreeResponse
      description: >-
        Recursive tree shape for hierarchy endpoints. Use only for UI rendering,
        not reporting queries.

````