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

# List Taxonomies

> Get a list of Taxonomies.

export const permission_0 = 'taxonomy:read'

<Info>Requires permission: **{permission_0}**</Info>


## OpenAPI

````yaml GET /v1/taxonomy
openapi: 3.0.1
info:
  title: Variable API
  description: This is the Variable API
  version: 1.1.0
servers:
  - url: https://app.variable.global/api
security:
  - basicAuth: []
  - bearerAuth: []
  - oAuthNoScopes: []
paths:
  /v1/taxonomy:
    get:
      summary: Get a list of taxonomies
      description: >-
        Browse or search the taxonomy category tree. Categories are hierarchical
        with paths like "material/raw-materials/construction/concrete". Use
        depth=0 to see top-level categories, then drill into branches with the
        path filter.
      parameters:
        - name: q
          in: query
          description: Search by name or path (case-insensitive)
          required: false
          schema:
            type: string
          example: concrete
        - name: path
          in: query
          description: Filter to categories under this path prefix
          required: false
          schema:
            type: string
          example: material/raw-materials
        - name: depth
          in: query
          description: >-
            Filter by tree depth (0 = top-level roots, 1 = their direct
            children, etc.)
          required: false
          schema:
            type: integer
          example: 0
        - name: leaves_only
          in: query
          description: If true, return only leaf categories (ones with no children)
          required: false
          schema:
            type: boolean
          example: true
        - name: page
          in: query
          description: Page number (1-based)
          required: false
          schema:
            type: integer
          example: 1
        - name: limit
          in: query
          description: Results per page
          required: false
          schema:
            type: integer
          example: 20
      responses:
        '200':
          description: A list of taxonomies
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Taxonomy'
        '401':
          description: ExpiredToken
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpiredTokenResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    Taxonomy:
      type: object
      properties:
        uuid:
          type: string
          format: uuid
        name:
          type: string
          example: Electricity
        slug:
          type: string
          example: electricity
        path:
          type: string
          example: energy/electricity
    ExpiredTokenResponse:
      type: object
      properties:
        message:
          type: string
          example: token expired
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    oAuthNoScopes:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: /auth/token
          scopes: {}

````