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

# Get all parts for a model

> Retrieves all parts associated with a specific model



## OpenAPI

````yaml get /api/models/{modelId}/parts
openapi: 3.0.0
info:
  title: Dalus Public API Documentation
  version: 1.0.0
  description: Public API documentation for Dalus application
servers:
  - url: http://localhost:3000
    description: Dalus API Server
security:
  - bearerAuth: []
tags:
  - name: models
    description: AI model management endpoints
  - name: models/requirements
    description: Requirements management for models
  - name: models/actions
    description: Action management for models
  - name: models/parts
    description: Part management for models
  - name: models/states
    description: State management for models
  - name: models/transitions
    description: Transition relationship management for models
  - name: models/signals
    description: Signal relationship management for models
  - name: models/interfaces
    description: Interface relationship management for models
  - name: models/ports
    description: Port management for models
paths:
  /api/models/{modelId}/parts:
    get:
      tags:
        - models/parts
      summary: Get all parts for a model
      description: Retrieves all parts associated with a specific model
      parameters:
        - name: modelId
          in: path
          required: true
          description: ID of the model
          schema:
            type: string
            format: uuid
        - name: type
          in: query
          required: false
          description: Filter parts by type
          schema:
            type: string
      responses:
        '200':
          description: List of parts
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Part'
        '401':
          description: Not authenticated
        '403':
          description: Forbidden - insufficient permissions
        '404':
          description: Model not found
        '500':
          description: Server error
components:
  schemas:
    Part:
      type: object
      properties:
        label:
          type: string
          description: The label of the part
        requirements:
          type: array
          items:
            type: string
          description: The linked requirements
        documents:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
              url:
                type: string
              type:
                type: string
                enum:
                  - pdf
                  - docx
                  - pptx
                  - xlsx
                  - image
                  - 3d
                  - text
            required:
              - id
              - name
              - url
              - type
          description: The linked documents
        attributeIds:
          type: array
          items:
            type: string
          description: The IDs of the attributes on the part
        notes:
          type: string
          description: Additional notes about the part
        actualState:
          type: string
          description: State ID of the actual state of the part
      required:
        - label
        - requirements
        - documents
        - attributeIds
      description: A part in the model representing a physical or logical component
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````