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

# List station tracks

> Retrieves a list of station tracks and their associated groupings for a specific carrier.



## OpenAPI

````yaml /user-docs/api-reference/external-openapi.json get /ims/groupings/station-tracks
openapi: 3.1.0
info:
  title: ARMS External API
  version: 1.0.0
  description: >-
    OpenAPI specification generated from external API schemas. Endpoints require
    query parameter carrierId and headers x-arms-api-key and x-arms-assume-user.
  license:
    name: Proprietary
    url: https://cedarai.com
servers:
  - url: https://api-lg.arms.cedarai.com
    description: Production (US)
  - url: https://api-lg.arms.cedarai.se
    description: Production (EU)
security:
  - ApiKeyAuth: []
    AssumeUser: []
paths:
  /ims/groupings/station-tracks:
    get:
      summary: List station tracks
      description: >-
        Retrieves a list of station tracks and their associated groupings for a
        specific carrier.
      operationId: listStationTracks
      parameters:
        - $ref: '#/components/parameters/CarrierId'
        - $ref: '#/components/parameters/ViewAsUserGroup'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListStationTracksInput'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListStationTracksOutput'
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '500':
          description: Internal Server Error
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    CarrierId:
      name: carrierId
      in: query
      required: true
      schema:
        type: integer
      description: Carrier identifier; required for all endpoints
    ViewAsUserGroup:
      name: viewAsUserGroup
      in: query
      required: false
      schema:
        type: string
      description: Optional user group context
  schemas:
    ListStationTracksInput:
      type: object
      properties:
        carrierId:
          type: integer
          description: Carrier identifier used to scope stations and tracks.
    ListStationTracksOutput:
      type: object
      properties:
        items:
          type: array
          items:
            type: object
            properties:
              resourceType:
                type: string
                enum:
                  - Grouping
              resourceId:
                type: integer
              name:
                type: string
              groupingType:
                type: string
              sortOrder:
                type: integer
              colorToken:
                type: string
              children:
                type: array
                items:
                  $ref: '#/components/schemas/GroupingResource'
              attributes:
                $ref: '#/components/schemas/WhiteListedAttributes'
              equipmentCount:
                $ref: '#/components/schemas/EquipmentCount'
              uuid:
                type: string
                description: UUID that complements the legacy numeric resourceId.
            additionalProperties: false
    Error:
      type: object
      properties:
        message:
          type: string
    GroupingResource:
      type: object
      properties:
        resourceType:
          type: string
          enum:
            - Grouping
        resourceId:
          type: integer
        uuid:
          type: string
          description: UUID that complements the legacy numeric resourceId.
        name:
          type: string
        groupingType:
          type: string
        sortOrder:
          type: integer
        colorToken:
          type: string
    WhiteListedAttributes:
      type: object
      properties:
        length:
          type: number
        spots:
          type: array
          items:
            type: string
    EquipmentCount:
      type: object
      properties:
        online:
          type: integer
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-arms-api-key
      description: Your ARMS API key
    AssumeUser:
      type: apiKey
      in: header
      name: x-arms-assume-user
      description: Email of a user assigned to the appropriate user group

````