{
 "openapi": "3.1.0",
 "info": {
  "title": "Nodes (Agentic AI)",
  "version": "20261030b",
  "description": "Every node of every graph, as a list. The canvas is the way to work on these; this is here for searching across workflows and for a saved view."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "workflow-nodes": {
    "type": "object",
    "required": [
     "workflow_id",
     "node_key",
     "label",
     "node_kind"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "workflow_id": {
      "type": "string",
      "format": "uuid",
      "description": "Workflow"
     },
     "node_key": {
      "type": "string",
      "description": "Key"
     },
     "label": {
      "type": "string",
      "description": "Label"
     },
     "label_local": {
      "type": "string",
      "description": "Label local"
     },
     "node_kind": {
      "type": "string",
      "description": "Kind"
     },
     "description": {
      "type": "string",
      "description": "Description"
     },
     "agent_id": {
      "type": "string",
      "format": "uuid",
      "description": "Agent"
     },
     "tool_id": {
      "type": "string",
      "format": "uuid",
      "description": "Tool"
     },
     "subflow_id": {
      "type": "string",
      "format": "uuid",
      "description": "Sub-workflow"
     },
     "prompt": {
      "type": "string",
      "description": "Instruction"
     },
     "arguments": {
      "type": "object",
      "description": "Arguments"
     },
     "output_key": {
      "type": "string",
      "description": "Write result to"
     },
     "condition": {
      "type": "string",
      "description": "Expression"
     },
     "loop_over": {
      "type": "string",
      "description": "Loop over"
     },
     "loop_max": {
      "type": "integer",
      "description": "Most iterations"
     },
     "approver_role": {
      "type": "string",
      "description": "Approver role"
     },
     "approver_user_id": {
      "type": "string",
      "format": "uuid",
      "description": "Approver user id"
     },
     "sla_hours": {
      "type": "integer",
      "description": "Answer within (hours)"
     },
     "compensate_tool_id": {
      "type": "string",
      "format": "uuid",
      "description": "Compensate tool id"
     },
     "compensate_args": {
      "type": "object",
      "description": "Compensate args"
     },
     "retry_limit": {
      "type": "integer",
      "description": "Retries"
     },
     "timeout_seconds": {
      "type": "integer",
      "description": "Time limit (seconds)"
     },
     "on_error": {
      "type": "string",
      "description": "On error",
      "enum": [
       "inherit",
       "stop",
       "continue",
       "retry",
       "route"
      ]
     },
     "pos_x": {
      "type": "integer",
      "description": "Pos x"
     },
     "pos_y": {
      "type": "integer",
      "description": "Pos y"
     },
     "color": {
      "type": "string",
      "description": "Color"
     },
     "icon": {
      "type": "string",
      "description": "Icon"
     },
     "sort_order": {
      "type": "integer",
      "description": "Sort order"
     },
     "is_active": {
      "type": "boolean",
      "description": "Active"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "created_by": {
      "type": "string",
      "format": "uuid",
      "description": "Created by",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "updated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     },
     "xf_text_1": {
      "type": "string",
      "description": "Xf text 1",
      "readOnly": true
     },
     "xf_text_2": {
      "type": "string",
      "description": "Xf text 2",
      "readOnly": true
     },
     "xf_text_3": {
      "type": "string",
      "description": "Xf text 3",
      "readOnly": true
     },
     "xf_text_4": {
      "type": "string",
      "description": "Xf text 4",
      "readOnly": true
     },
     "xf_text_5": {
      "type": "string",
      "description": "Xf text 5",
      "readOnly": true
     },
     "xf_num_1": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 1",
      "readOnly": true
     },
     "xf_num_2": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 2",
      "readOnly": true
     },
     "xf_num_3": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 3",
      "readOnly": true
     },
     "xf_date_1": {
      "type": "string",
      "format": "date",
      "description": "Xf date 1",
      "readOnly": true
     },
     "xf_date_2": {
      "type": "string",
      "format": "date",
      "description": "Xf date 2",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/agentic/workflow-nodes": {
   "get": {
    "summary": "list workflow-nodes",
    "operationId": "list_workflow_nodes_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create workflow-nodes",
    "operationId": "create_workflow_nodes_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/agentic/workflow-nodes/{id}": {
   "get": {
    "summary": "get workflow-nodes",
    "operationId": "get_workflow_nodes_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change workflow-nodes",
    "operationId": "change_workflow_nodes_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete workflow-nodes",
    "operationId": "delete_workflow_nodes_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/agentic/workflow-nodes/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_workflow_nodes_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}