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

# List saved decisions by node

> Groups the saved decisions by the workflow node they belong to. Each node lists every saved decision for errors on it, one per variant of the error (each way the same error can need different handling), with the recovery saved for it and whether it applies automatically or asks every time. An edited node is listed apart from its earlier version, because saved decisions do not carry over to a changed node.

Only the 500 most recently updated saved decisions matching the filters are grouped, so on a busy workflow older nodes can be missing from the response. Pass `node_id` to narrow the list to one node.



## OpenAPI

````yaml workflow-api/workflow-api.yaml get /saved-decisions/nodes
openapi: 3.0.0
info:
  title: Workflow API
  version: 1.0.0
  description: API for managing workflows and their metadata
servers:
  - url: https://api.cloudcruise.com
    description: CloudCruise Platform Production API Server
security:
  - AuthScheme: []
paths:
  /saved-decisions/nodes:
    get:
      summary: List saved decisions by node
      description: >-
        Groups the saved decisions by the workflow node they belong to. Each
        node lists every saved decision for errors on it, one per variant of the
        error (each way the same error can need different handling), with the
        recovery saved for it and whether it applies automatically or asks every
        time. An edited node is listed apart from its earlier version, because
        saved decisions do not carry over to a changed node.


        Only the 500 most recently updated saved decisions matching the filters
        are grouped, so on a busy workflow older nodes can be missing from the
        response. Pass `node_id` to narrow the list to one node.
      operationId: listSavedDecisionsByNode
      parameters:
        - name: workflow_id
          in: query
          required: false
          schema:
            type: string
          description: Only nodes of this workflow
        - name: node_id
          in: query
          required: false
          schema:
            type: string
          description: Only this node
        - name: cc-key
          in: header
          required: false
          schema:
            type: string
          description: CloudCruise API key for authentication
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  nodes:
                    type: array
                    items:
                      $ref: '#/components/schemas/SavedDecisionNode'
        '401':
          description: Unauthorized - Invalid or missing authentication
components:
  schemas:
    SavedDecisionNode:
      type: object
      description: A workflow node and every saved decision for errors on it.
      properties:
        workflowId:
          type: string
        nodeId:
          type: string
          nullable: true
        nodeHash:
          type: string
        savedDecisions:
          type: array
          description: The node's saved decisions, in variant order
          items:
            $ref: '#/components/schemas/ErrorFingerprint'
    ErrorFingerprint:
      type: object
      description: A saved decision for an error the recovery agent has seen before.
      properties:
        id:
          type: string
        workflowId:
          type: string
        nodeId:
          type: string
          nullable: true
        nodeHash:
          type: string
          description: Identifies the version of the node; an edited node gets a new hash
        errorMsg:
          type: string
          description: >-
            The error message with numbers, quoted text and run input values
            normalized out
        errorVariant:
          type: integer
          description: Which variant of this error on this node, starting at 1
        errorVariantDescription:
          type: string
          nullable: true
          description: A short description of the situation this variant covers
        errorType:
          type: string
        recovery:
          type: string
          nullable: true
          description: The instruction the agent follows when the error comes back
        alwaysAsk:
          type: boolean
          description: >-
            `true`: a person is asked every time and offered the saved recovery.
            `false`: the saved recovery is applied automatically
        approvedAt:
          type: string
          nullable: true
          description: >-
            When the saved decision started applying automatically; null while
            it asks every time
        used:
          type: integer
        lastUsedAt:
          type: string
          nullable: true
        updatedAt:
          type: string
          nullable: true
  securitySchemes:
    AuthScheme:
      type: apiKey
      name: cc-key
      in: header
      description: >-
        API key-based authentication. Provide your CloudCruise API key in the
        cc-key header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.