# MCP tool reference

1 callable tools.

Use tools/call at https://mcp.schedulerzero.com/mcp with the exact tool name and arguments below. The /tools/ paths in this view are documentation identifiers, not HTTP endpoints. Request execution is disabled for this reference.

Inputs are shown for personal API keys (bound) and for OAuth/delegated agents. Output schemas describe MCP structuredContent: native objects pass through; arrays, scalars and null use a data wrapper. Text content retains the native JSON result.

[Connect a client](/mcp/connect) · [Authentication and authorization](/authentication) · [Generated auth guide](/auth.md) · [Download tool catalog](/mcp-catalog.json) · [Agent documentation](/llms.txt)

## manage_workflows

Author a workflow's graph and decide whether it is live: create a draft, save an edit, publish the draft as the runnable version, turn a published workflow on or off, and delete one. Trigger data.campaignFilter uses the same filter as webhook campaignScope: modes all/campaigns/tags/folders/names/rules, ids for selections, match any/all for selected tags and name terms. Rules compose nested AND/OR/NOT: field campaigns/folders/tags with ids, names with terms, tagged/filed with boolean value, or group with rules; root/groups default to match all, tags/names to any, exclude negates each rule. A campaign has many tags but one folder. excludeCampaignIds/excludeTagIds/excludeFolderIds/excludeNameContains, taggedOnly and filedOnly are available in every mode. Folder filters include live descendants. Global exclusions win; deleted references fail closed even inside NOT/OR. This supersedes legacy positiveReplyAllCampaigns/positiveReplyCampaignIds when set.

Use to build or change automation. A draft only has to be well formed, so iterate freely; publishing is the step that checks every runnability rule and freezes what the executor will load.

Publishing or activating a graph that sends mail, enriches contacts, or starts an AI follow-up loop commits the workspace to spending, and needs an active subscription plus — for the thread-automation blocks — the ai_follow_up feature. Deleting ends every run the workflow still owns, including loops waiting on a reply, and cannot be undone. Pausing a workflow that others enrol into alerts them too.

Obtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.

Scopes: workflow:create, workflow:update, workflow:publish, workflow:delete

Risk: destructive; confirmation: explicit; idempotency: supported.

### Input schema (personal API key)

```json
{
  "type": "object",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "action": {
          "type": "string",
          "enum": [
            "create"
          ]
        },
        "create": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "recipe": {
              "type": "string",
              "enum": [
                "blank",
                "positive_reply_to_dialer",
                "plusvibe_to_dialer",
                "dialer_to_plusvibe",
                "positive_reply_labels",
                "email_health_recovery",
                "domain_blacklist",
                "domain_rotation",
                "inbox_rotation",
                "thread_follow_up",
                "no_show_playbook"
              ]
            },
            "callListId": {
              "$ref": "#/$defs/CallListId"
            },
            "sequenceId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          },
          "required": [
            "name"
          ],
          "patternProperties": {
            "^(?!(?:name|recipe|callListId|sequenceId)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "name",
              "recipe",
              "callListId",
              "sequenceId"
            ]
          }
        }
      },
      "required": [
        "workspaceId",
        "action",
        "create"
      ],
      "patternProperties": {
        "^(?!(?:workspaceId|action|create)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "workspaceId",
          "action",
          "create"
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "action": {
          "type": "string",
          "enum": [
            "save"
          ]
        },
        "workflowId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "save": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "graph": {
              "type": "object",
              "properties": {
                "schemaVersion": {
                  "anyOf": [
                    {
                      "type": "number",
                      "enum": [
                        1
                      ]
                    }
                  ]
                },
                "nodes": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "type": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                      },
                      "position": {
                        "type": "object",
                        "properties": {
                          "x": {
                            "type": "number"
                          },
                          "y": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "x",
                          "y"
                        ],
                        "patternProperties": {
                          "^(?!(?:x|y)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "x",
                            "y"
                          ]
                        }
                      },
                      "data": {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/$defs/Union_"
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "position",
                      "data"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "type",
                        "position",
                        "data"
                      ]
                    }
                  },
                  "maxItems": 200
                },
                "edges": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "source": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "target": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "sourceHandle": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "yes",
                              "no"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "source",
                      "target"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "source",
                        "target",
                        "sourceHandle"
                      ]
                    }
                  },
                  "maxItems": 400
                }
              },
              "required": [
                "schemaVersion",
                "nodes",
                "edges"
              ],
              "patternProperties": {
                "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "schemaVersion",
                  "nodes",
                  "edges"
                ]
              }
            }
          },
          "required": [
            "name",
            "graph"
          ],
          "patternProperties": {
            "^(?!(?:name|graph)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "name",
              "graph"
            ]
          }
        }
      },
      "required": [
        "workspaceId",
        "action",
        "workflowId",
        "save"
      ],
      "patternProperties": {
        "^(?!(?:workspaceId|action|workflowId|save)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "workspaceId",
          "action",
          "workflowId",
          "save"
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "action": {
          "type": "string",
          "enum": [
            "publish"
          ]
        },
        "workflowId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "workspaceId",
        "action",
        "workflowId"
      ],
      "patternProperties": {
        "^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "workspaceId",
          "action",
          "workflowId"
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "action": {
          "type": "string",
          "enum": [
            "activate"
          ]
        },
        "workflowId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "workspaceId",
        "action",
        "workflowId"
      ],
      "patternProperties": {
        "^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "workspaceId",
          "action",
          "workflowId"
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "action": {
          "type": "string",
          "enum": [
            "pause"
          ]
        },
        "workflowId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "workspaceId",
        "action",
        "workflowId"
      ],
      "patternProperties": {
        "^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "workspaceId",
          "action",
          "workflowId"
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "action": {
          "type": "string",
          "enum": [
            "remove"
          ]
        },
        "workflowId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "workspaceId",
        "action",
        "workflowId"
      ],
      "patternProperties": {
        "^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "workspaceId",
          "action",
          "workflowId"
        ]
      }
    }
  ],
  "$defs": {
    "CallListId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid"
    },
    "Union_": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Union_"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/Union_"
          }
        }
      ]
    }
  }
}
```

### Input schema (OAuth / delegated agent)

```json
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "format": "uuid",
      "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
    }
  },
  "required": [
    "workspaceId"
  ],
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "action": {
          "type": "string",
          "enum": [
            "create"
          ]
        },
        "create": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "recipe": {
              "type": "string",
              "enum": [
                "blank",
                "positive_reply_to_dialer",
                "plusvibe_to_dialer",
                "dialer_to_plusvibe",
                "positive_reply_labels",
                "email_health_recovery",
                "domain_blacklist",
                "domain_rotation",
                "inbox_rotation",
                "thread_follow_up",
                "no_show_playbook"
              ]
            },
            "callListId": {
              "$ref": "#/$defs/CallListId"
            },
            "sequenceId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          },
          "required": [
            "name"
          ],
          "patternProperties": {
            "^(?!(?:name|recipe|callListId|sequenceId)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "name",
              "recipe",
              "callListId",
              "sequenceId"
            ]
          }
        }
      },
      "required": [
        "workspaceId",
        "action",
        "create"
      ],
      "patternProperties": {
        "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|create)$)[\\s\\S]*$)": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "workspaceId",
              "action",
              "create"
            ]
          },
          {
            "enum": [
              "workspaceId"
            ]
          }
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "action": {
          "type": "string",
          "enum": [
            "save"
          ]
        },
        "workflowId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "save": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "graph": {
              "type": "object",
              "properties": {
                "schemaVersion": {
                  "anyOf": [
                    {
                      "type": "number",
                      "enum": [
                        1
                      ]
                    }
                  ]
                },
                "nodes": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "type": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                      },
                      "position": {
                        "type": "object",
                        "properties": {
                          "x": {
                            "type": "number"
                          },
                          "y": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "x",
                          "y"
                        ],
                        "patternProperties": {
                          "^(?!(?:x|y)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "x",
                            "y"
                          ]
                        }
                      },
                      "data": {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/$defs/Union_"
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "position",
                      "data"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "type",
                        "position",
                        "data"
                      ]
                    }
                  },
                  "maxItems": 200
                },
                "edges": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "source": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "target": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "sourceHandle": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "yes",
                              "no"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "source",
                      "target"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "source",
                        "target",
                        "sourceHandle"
                      ]
                    }
                  },
                  "maxItems": 400
                }
              },
              "required": [
                "schemaVersion",
                "nodes",
                "edges"
              ],
              "patternProperties": {
                "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "schemaVersion",
                  "nodes",
                  "edges"
                ]
              }
            }
          },
          "required": [
            "name",
            "graph"
          ],
          "patternProperties": {
            "^(?!(?:name|graph)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "name",
              "graph"
            ]
          }
        }
      },
      "required": [
        "workspaceId",
        "action",
        "workflowId",
        "save"
      ],
      "patternProperties": {
        "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|workflowId|save)$)[\\s\\S]*$)": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "workspaceId",
              "action",
              "workflowId",
              "save"
            ]
          },
          {
            "enum": [
              "workspaceId"
            ]
          }
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "action": {
          "type": "string",
          "enum": [
            "publish"
          ]
        },
        "workflowId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "workspaceId",
        "action",
        "workflowId"
      ],
      "patternProperties": {
        "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$)": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "workspaceId",
              "action",
              "workflowId"
            ]
          },
          {
            "enum": [
              "workspaceId"
            ]
          }
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "action": {
          "type": "string",
          "enum": [
            "activate"
          ]
        },
        "workflowId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "workspaceId",
        "action",
        "workflowId"
      ],
      "patternProperties": {
        "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$)": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "workspaceId",
              "action",
              "workflowId"
            ]
          },
          {
            "enum": [
              "workspaceId"
            ]
          }
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "action": {
          "type": "string",
          "enum": [
            "pause"
          ]
        },
        "workflowId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "workspaceId",
        "action",
        "workflowId"
      ],
      "patternProperties": {
        "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$)": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "workspaceId",
              "action",
              "workflowId"
            ]
          },
          {
            "enum": [
              "workspaceId"
            ]
          }
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "action": {
          "type": "string",
          "enum": [
            "remove"
          ]
        },
        "workflowId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "workspaceId",
        "action",
        "workflowId"
      ],
      "patternProperties": {
        "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$)": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "workspaceId",
              "action",
              "workflowId"
            ]
          },
          {
            "enum": [
              "workspaceId"
            ]
          }
        ]
      }
    }
  ],
  "$defs": {
    "CallListId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid"
    },
    "Union_": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Union_"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/Union_"
          }
        }
      ]
    }
  }
}
```

### Output schema (structuredContent)

```json
{
  "$defs": {
    "WorkflowVersionId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid"
    },
    "UtcDateTimeEncoded": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
    },
    "Union_": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Union_"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/Union_"
          }
        }
      ]
    }
  },
  "type": "object",
  "anyOf": [
    {
      "allOf": [
        {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "draft",
                    "active",
                    "paused",
                    "deleting"
                  ]
                },
                "publishedVersionId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/WorkflowVersionId"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "triggerType": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "alertCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "createdAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "updatedAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "version": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/$defs/WorkflowVersionId"
                        },
                        "workflowId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "version": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "graph": {
                          "type": "object",
                          "properties": {
                            "schemaVersion": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "enum": [
                                    1
                                  ]
                                }
                              ]
                            },
                            "nodes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "type": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128,
                                    "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                                  },
                                  "position": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number"
                                      },
                                      "y": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:x|y)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "x",
                                        "y"
                                      ]
                                    }
                                  },
                                  "data": {
                                    "type": "object",
                                    "additionalProperties": {
                                      "$ref": "#/$defs/Union_"
                                    }
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "position",
                                  "data"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "type",
                                    "position",
                                    "data"
                                  ]
                                }
                              },
                              "maxItems": 200
                            },
                            "edges": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "source": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "target": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "sourceHandle": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "yes",
                                          "no"
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "source",
                                  "target"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "source",
                                    "target",
                                    "sourceHandle"
                                  ]
                                }
                              },
                              "maxItems": 400
                            }
                          },
                          "required": [
                            "schemaVersion",
                            "nodes",
                            "edges"
                          ],
                          "patternProperties": {
                            "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "schemaVersion",
                              "nodes",
                              "edges"
                            ]
                          }
                        },
                        "publishedAt": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "updatedAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        }
                      },
                      "required": [
                        "id",
                        "workflowId",
                        "version",
                        "graph",
                        "publishedAt",
                        "createdAt",
                        "updatedAt"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|workflowId|version|graph|publishedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "workflowId",
                          "version",
                          "graph",
                          "publishedAt",
                          "createdAt",
                          "updatedAt"
                        ]
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "status",
                "publishedVersionId",
                "triggerType",
                "alertCount",
                "createdAt",
                "updatedAt",
                "version"
              ],
              "patternProperties": {
                "^(?!(?:id|name|status|publishedVersionId|triggerType|alertCount|createdAt|updatedAt|version)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "name",
                  "status",
                  "publishedVersionId",
                  "triggerType",
                  "alertCount",
                  "createdAt",
                  "updatedAt",
                  "version"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/$defs/WorkflowVersionId"
                },
                "workflowId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "version": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "graph": {
                  "type": "object",
                  "properties": {
                    "schemaVersion": {
                      "anyOf": [
                        {
                          "type": "number",
                          "enum": [
                            1
                          ]
                        }
                      ]
                    },
                    "nodes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "type": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                          },
                          "position": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y"
                            ],
                            "patternProperties": {
                              "^(?!(?:x|y)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "x",
                                "y"
                              ]
                            }
                          },
                          "data": {
                            "type": "object",
                            "additionalProperties": {
                              "$ref": "#/$defs/Union_"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "position",
                          "data"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "type",
                            "position",
                            "data"
                          ]
                        }
                      },
                      "maxItems": 200
                    },
                    "edges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "source": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "target": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "sourceHandle": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "yes",
                                  "no"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "source",
                          "target"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "source",
                            "target",
                            "sourceHandle"
                          ]
                        }
                      },
                      "maxItems": 400
                    }
                  },
                  "required": [
                    "schemaVersion",
                    "nodes",
                    "edges"
                  ],
                  "patternProperties": {
                    "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "schemaVersion",
                      "nodes",
                      "edges"
                    ]
                  }
                },
                "publishedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "updatedAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                }
              },
              "required": [
                "id",
                "workflowId",
                "version",
                "graph",
                "publishedAt",
                "createdAt",
                "updatedAt"
              ],
              "patternProperties": {
                "^(?!(?:id|workflowId|version|graph|publishedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "workflowId",
                  "version",
                  "graph",
                  "publishedAt",
                  "createdAt",
                  "updatedAt"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "workflowId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "publishedVersionId": {
                  "$ref": "#/$defs/WorkflowVersionId"
                },
                "version": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "draft",
                    "active",
                    "paused",
                    "deleting"
                  ]
                }
              },
              "required": [
                "workflowId",
                "publishedVersionId",
                "version",
                "status"
              ],
              "patternProperties": {
                "^(?!(?:workflowId|publishedVersionId|version|status)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "workflowId",
                  "publishedVersionId",
                  "version",
                  "status"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "workflowId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "draft",
                    "active",
                    "paused",
                    "deleting"
                  ]
                },
                "alertedDependentWorkflowIds": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "maxItems": 500
                }
              },
              "required": [
                "workflowId",
                "status",
                "alertedDependentWorkflowIds"
              ],
              "patternProperties": {
                "^(?!(?:workflowId|status|alertedDependentWorkflowIds)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "workflowId",
                  "status",
                  "alertedDependentWorkflowIds"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "workflowId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "canceledRunIds": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "maxItems": 1000
                }
              },
              "required": [
                "workflowId",
                "canceledRunIds"
              ],
              "patternProperties": {
                "^(?!(?:workflowId|canceledRunIds)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "workflowId",
                  "canceledRunIds"
                ]
              }
            }
          ]
        },
        {
          "type": "object"
        }
      ]
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "allOf": [
            {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "active",
                        "paused",
                        "deleting"
                      ]
                    },
                    "publishedVersionId": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/WorkflowVersionId"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "triggerType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "alertCount": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "createdAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "updatedAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "version": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/WorkflowVersionId"
                            },
                            "workflowId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "version": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "graph": {
                              "type": "object",
                              "properties": {
                                "schemaVersion": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "enum": [
                                        1
                                      ]
                                    }
                                  ]
                                },
                                "nodes": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "type": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128,
                                        "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                                      },
                                      "position": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "number"
                                          },
                                          "y": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:x|y)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "x",
                                            "y"
                                          ]
                                        }
                                      },
                                      "data": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "type",
                                      "position",
                                      "data"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "type",
                                        "position",
                                        "data"
                                      ]
                                    }
                                  },
                                  "maxItems": 200
                                },
                                "edges": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "source": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "target": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "sourceHandle": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "yes",
                                              "no"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "source",
                                      "target"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "source",
                                        "target",
                                        "sourceHandle"
                                      ]
                                    }
                                  },
                                  "maxItems": 400
                                }
                              },
                              "required": [
                                "schemaVersion",
                                "nodes",
                                "edges"
                              ],
                              "patternProperties": {
                                "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "schemaVersion",
                                  "nodes",
                                  "edges"
                                ]
                              }
                            },
                            "publishedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "workflowId",
                            "version",
                            "graph",
                            "publishedAt",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|workflowId|version|graph|publishedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "workflowId",
                              "version",
                              "graph",
                              "publishedAt",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "status",
                    "publishedVersionId",
                    "triggerType",
                    "alertCount",
                    "createdAt",
                    "updatedAt",
                    "version"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|name|status|publishedVersionId|triggerType|alertCount|createdAt|updatedAt|version)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "name",
                      "status",
                      "publishedVersionId",
                      "triggerType",
                      "alertCount",
                      "createdAt",
                      "updatedAt",
                      "version"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/$defs/WorkflowVersionId"
                    },
                    "workflowId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "graph": {
                      "type": "object",
                      "properties": {
                        "schemaVersion": {
                          "anyOf": [
                            {
                              "type": "number",
                              "enum": [
                                1
                              ]
                            }
                          ]
                        },
                        "nodes": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "type": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                              },
                              "position": {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number"
                                  },
                                  "y": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "x",
                                  "y"
                                ],
                                "patternProperties": {
                                  "^(?!(?:x|y)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "x",
                                    "y"
                                  ]
                                }
                              },
                              "data": {
                                "type": "object",
                                "additionalProperties": {
                                  "$ref": "#/$defs/Union_"
                                }
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "position",
                              "data"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "type",
                                "position",
                                "data"
                              ]
                            }
                          },
                          "maxItems": 200
                        },
                        "edges": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "source": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "target": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "sourceHandle": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "yes",
                                      "no"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "source",
                              "target"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "source",
                                "target",
                                "sourceHandle"
                              ]
                            }
                          },
                          "maxItems": 400
                        }
                      },
                      "required": [
                        "schemaVersion",
                        "nodes",
                        "edges"
                      ],
                      "patternProperties": {
                        "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "schemaVersion",
                          "nodes",
                          "edges"
                        ]
                      }
                    },
                    "publishedAt": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "updatedAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    }
                  },
                  "required": [
                    "id",
                    "workflowId",
                    "version",
                    "graph",
                    "publishedAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|workflowId|version|graph|publishedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "workflowId",
                      "version",
                      "graph",
                      "publishedAt",
                      "createdAt",
                      "updatedAt"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "workflowId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "publishedVersionId": {
                      "$ref": "#/$defs/WorkflowVersionId"
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "active",
                        "paused",
                        "deleting"
                      ]
                    }
                  },
                  "required": [
                    "workflowId",
                    "publishedVersionId",
                    "version",
                    "status"
                  ],
                  "patternProperties": {
                    "^(?!(?:workflowId|publishedVersionId|version|status)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "workflowId",
                      "publishedVersionId",
                      "version",
                      "status"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "workflowId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "active",
                        "paused",
                        "deleting"
                      ]
                    },
                    "alertedDependentWorkflowIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 500
                    }
                  },
                  "required": [
                    "workflowId",
                    "status",
                    "alertedDependentWorkflowIds"
                  ],
                  "patternProperties": {
                    "^(?!(?:workflowId|status|alertedDependentWorkflowIds)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "workflowId",
                      "status",
                      "alertedDependentWorkflowIds"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "workflowId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "canceledRunIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 1000
                    }
                  },
                  "required": [
                    "workflowId",
                    "canceledRunIds"
                  ],
                  "patternProperties": {
                    "^(?!(?:workflowId|canceledRunIds)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "workflowId",
                      "canceledRunIds"
                    ]
                  }
                }
              ]
            },
            {
              "not": {
                "type": "object"
              }
            }
          ]
        }
      },
      "required": [
        "data"
      ],
      "additionalProperties": false
    }
  ]
}
```

### Underlying API operations

- `workflows.create`: `POST /v1/workspaces/:workspaceId/workflows`
- `workflows.save`: `PUT /v1/workspaces/:workspaceId/workflows/:workflowId`
- `workflows.publish`: `POST /v1/workspaces/:workspaceId/workflows/:workflowId/publish`
- `workflows.setStatus`: `PATCH /v1/workspaces/:workspaceId/workflows/:workflowId/status`
- `workflows.remove`: `DELETE /v1/workspaces/:workspaceId/workflows/:workflowId`

