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

# Get hierarchy by hierarchy ids

> Returns hierarchy from itself to the root level for specified hierarchies



## OpenAPI

````yaml openapi/product-catalog-v1.json GET /v1/Hierarchies
openapi: 3.0.4
info:
  title: ProductCatalog.Api 1.0
  version: '1.0'
servers:
  - url: https://{host}/product-catalog
    description: Your Lobyco environment
    variables:
      host:
        default: your-environment.lobyco.net
        description: >-
          The API host for your Lobyco environment. Replace it with the host you
          were given — this placeholder does not resolve.
security: []
paths:
  /v1/Hierarchies:
    get:
      tags:
        - Hierarchies
      summary: Get hierarchy by hierarchy ids
      description: >-
        Returns hierarchy from itself to the root level for specified
        hierarchies
      parameters:
        - name: hierarchyIds
          in: query
          schema:
            maxItems: 100
            type: array
            items:
              type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: object
                additionalProperties:
                  type: array
                  items:
                    type: string
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: array
                  items:
                    type: string
            text/json:
              schema:
                type: object
                additionalProperties:
                  type: array
                  items:
                    type: string

````