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

# Get Stack

> Get stack information by ID or tag



## OpenAPI

````yaml api-reference/openapi.json get /stack/get
openapi: 3.0.0
info:
  title: Stax API
  version: 1.0.0
  description: API for Stax automated document classifier and trust accounting system
  contact:
    name: Stax.ai
    url: https://stax.ai
servers:
  - url: https://api.stax.ai
    description: Production server
security: []
paths:
  /stack/get:
    get:
      tags:
        - Stack
      summary: Get Stack
      description: Get stack information by ID or tag
      operationId: stackGet
      parameters:
        - name: stackId
          in: query
          schema:
            $ref: '#/components/schemas/ObjectId'
          description: Stack ID
        - name: stackTag
          in: query
          schema:
            type: string
          description: Stack tag
      responses:
        '200':
          description: Stack information
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  stack:
                    $ref: '#/components/schemas/Stack'
        '404':
          $ref: '#/components/responses/Error'
      security:
        - cookieAuth: []
        - bearerAuth: []
components:
  schemas:
    ObjectId:
      type: string
      pattern: ^[0-9a-fA-F]{24}$
      description: MongoDB ObjectId
    Stack:
      type: object
      properties:
        _id:
          $ref: '#/components/schemas/ObjectId'
        path:
          type: string
        template:
          $ref: '#/components/schemas/ObjectId'
        team:
          $ref: '#/components/schemas/ObjectId'
        baseName:
          type: string
        base:
          $ref: '#/components/schemas/ObjectId'
        restrict:
          type: boolean
        access:
          type: array
          items:
            $ref: '#/components/schemas/ObjectId'
        pinned:
          type: boolean
        hideHint:
          type: boolean
        enabled:
          type: boolean
        lastModified:
          type: string
          format: date-time
        numDocuments:
          type: number
        numUnread:
          type: number
        keys:
          type: array
          items:
            type: string
        dataTypes:
          type: array
          items:
            $ref: '#/components/schemas/DataType'
        rules:
          $ref: '#/components/schemas/StackRules'
        trainer:
          $ref: '#/components/schemas/Trainer'
        numMovedFiles:
          type: number
        pipeline:
          type: array
          items:
            $ref: '#/components/schemas/PipelineModule'
        locked:
          type: boolean
        forms:
          type: array
          items:
            $ref: '#/components/schemas/ObjectId'
        tags:
          type: array
          items:
            type: string
    DataType:
      type: object
      properties:
        key:
          type: string
        dataType:
          type: string
          enum:
            - text
            - number
            - date
    StackRules:
      type: object
      properties:
        enabled:
          type: boolean
        match:
          $ref: '#/components/schemas/MatchRules'
    Trainer:
      type: object
      properties:
        manualTrigger:
          type: boolean
        isTraining:
          type: boolean
        lastTrained:
          type: string
          format: date-time
    PipelineModule:
      type: object
      properties:
        module:
          $ref: '#/components/schemas/ObjectId'
        config:
          type: array
          items:
            $ref: '#/components/schemas/ConfigItem'
        locked:
          type: boolean
        trainer:
          $ref: '#/components/schemas/ModuleTrainer'
        usage:
          type: number
        limit:
          type: number
        history:
          type: array
          items:
            $ref: '#/components/schemas/HistoryItem'
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          description: Error message
        authError:
          type: boolean
          description: Indicates if this is an authentication error
      required:
        - success
        - error
    MatchRules:
      type: object
      properties:
        mode:
          type: string
          enum:
            - all
            - any
        source:
          type: array
          items:
            type: string
        name:
          type: array
          items:
            type: string
        phrases:
          type: array
          items:
            type: string
    ConfigItem:
      type: object
      properties:
        label:
          type: string
        value:
          type: object
    ModuleTrainer:
      type: object
      properties:
        usage:
          type: number
        lastTrained:
          type: string
          format: date-time
        training:
          type: boolean
        config:
          type: array
          items:
            $ref: '#/components/schemas/ConfigItem'
        data:
          type: object
    HistoryItem:
      type: object
      properties:
        timestamp:
          type: string
          format: date-time
        modifiedBy:
          $ref: '#/components/schemas/ObjectId'
        labels:
          type: array
          items:
            type: string
  responses:
    Error:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: authToken
      description: Cookie-based authentication using userId and authToken cookies
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Bearer token authentication requires two headers: 1) Authorization
        header with 'Bearer {apiKey}' format, and 2) email header with the
        user's email address for identification.

````