> ## 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 actions for a model

> Retrieves all actions associated with a specific model



## OpenAPI

````yaml get /api/models/{modelId}/actions
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}/actions:
    get:
      tags:
        - models/actions
      summary: Get all actions for a model
      description: Retrieves all actions 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 actions by type
          schema:
            type: string
      responses:
        '200':
          description: List of actions
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Action'
        '401':
          description: Not authenticated
        '403':
          description: Forbidden - insufficient permissions
        '404':
          description: Model not found
        '500':
          description: Server error
components:
  schemas:
    Action:
      type: object
      properties:
        label:
          type: string
          description: The label of the action
        scriptName:
          type: string
          description: The name of the script file
        inputIds:
          type: array
          items:
            type: string
          description: The IDs of the inputs of the action
        outputIds:
          type: array
          items:
            type: string
          description: The IDs of the outputs of the action
        variableOrder:
          type: array
          items:
            type: string
          description: The combined ordering of input and output variable IDs
        successCriteria:
          type: array
          items:
            type: string
          description: Array of success criteria for the action
        failureModes:
          type: array
          items:
            type: string
          description: Array of potential failure modes for the action
        notes:
          type: string
          description: Additional notes about the action
      required:
        - label
        - scriptName
        - inputIds
        - outputIds
      description: An action in the model that can be executed
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````