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

# Get components for a screening

> Paginated with defaults page=1, pageSize=50



## OpenAPI

````yaml get /screenings/{screeningPublicId}/components
openapi: 3.1.0
info:
  title: MÅLBAR LCA API
  version: 1.0.0
  description: API for Life Cycle Assessment (LCA) screening capabilities
servers:
  - url: https://api.maalbar.dk/v1
    description: MÅLBAR LCA API
security: []
tags:
  - name: Components
  - name: Customer
  - name: Distributions
  - name: Geographical Locations
  - name: Locations
  - name: Materials
  - name: Methods
  - name: Packagings
  - name: Product
  - name: Products
  - name: Routes
  - name: Screening
  - name: Screenings
  - name: Supplier
  - name: Supplier Locations
  - name: Suppliers
  - name: Tags
paths:
  /screenings/{screeningPublicId}/components:
    get:
      tags:
        - Components
      summary: Get components for a screening
      description: Paginated with defaults page=1, pageSize=50
      operationId: get-screenings-{screeningPublicId}-components
      parameters:
        - in: path
          name: screeningPublicId
          required: true
          schema:
            type: string
          example: '123'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetScreeningComponentsApiOutput'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    GetScreeningComponentsApiOutput:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/GetScreeningComponentsApiOutputItem'
        pagination:
          $ref: '#/components/schemas/PaginationMetaSchema'
      required:
        - data
        - pagination
    GetScreeningComponentsApiOutputItem:
      type: object
      properties:
        publicId:
          type: string
          minLength: 16
          maxLength: 16
          examples:
            - screeningComponent_xxxxxxxxxxxx
        amount:
          type:
            - number
            - 'null'
        applicationWaste:
          type:
            - number
            - 'null'
        excludePallet:
          type: boolean
        excludedScreeningMaterials:
          type: array
          items:
            type: object
            properties:
              publicId:
                type: string
                minLength: 16
                maxLength: 16
                examples:
                  - screeningMaterial_xxxxxxxxxxxx
            required:
              - publicId
        sourceScreening:
          type: object
          properties:
            type:
              type: string
              enum:
                - Product
                - ProductReadyComponent
                - ScalableComponent
                - ElectricalComponent
                - PackagingComponent
                - MasterBoxComponent
            product:
              type: object
              properties:
                name:
                  type:
                    - string
                    - 'null'
                customer:
                  type: object
                  properties:
                    name:
                      type:
                        - string
                        - 'null'
                  required:
                    - name
              required:
                - name
          required:
            - type
            - product
      required:
        - publicId
        - amount
        - applicationWaste
        - excludePallet
        - excludedScreeningMaterials
        - sourceScreening
    PaginationMetaSchema:
      type: object
      properties:
        page:
          type: number
        pageSize:
          type: number
        totalCount:
          type: number
        totalPages:
          type: number
      required:
        - page
        - pageSize
        - totalCount
        - totalPages
  responses:
    '400':
      description: Bad Request
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                examples:
                  - Invalid request parameters
    '401':
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                examples:
                  - Authentication required
    '404':
      description: Not Found
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                examples:
                  - Resource not found
    '500':
      description: Internal Server Error
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                examples:
                  - An unexpected error occurred
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````