Conductor · Schema

EventHandler

A Conductor event handler definition that specifies how to respond to events by triggering workflows, completing tasks, or failing tasks based on configurable conditions.

AutomationOrchestrationStatesTaskWorkflows

Properties

Name Type Description
name string Name of the event handler
event string Event identifier in the format source:sink:subject (e.g., conductor:workflow_completed:myWorkflow)
condition string Condition expression to evaluate
actions array List of actions to perform when the event is received
active boolean Whether the event handler is active
evaluatorType string Type of evaluator for the condition
View JSON Schema on GitHub

JSON Schema

event-handler.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/conductor/refs/heads/main/json-schema/event-handler.json",
  "title": "EventHandler",
  "description": "A Conductor event handler definition that specifies how to respond to events by triggering workflows, completing tasks, or failing tasks based on configurable conditions.",
  "type": "object",
  "required": [
    "name",
    "event",
    "actions"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the event handler"
    },
    "event": {
      "type": "string",
      "description": "Event identifier in the format source:sink:subject (e.g., conductor:workflow_completed:myWorkflow)"
    },
    "condition": {
      "type": "string",
      "description": "Condition expression to evaluate"
    },
    "actions": {
      "type": "array",
      "description": "List of actions to perform when the event is received",
      "items": {
        "$ref": "#/$defs/EventHandlerAction"
      }
    },
    "active": {
      "type": "boolean",
      "description": "Whether the event handler is active",
      "default": true
    },
    "evaluatorType": {
      "type": "string",
      "description": "Type of evaluator for the condition"
    }
  },
  "$defs": {
    "EventHandlerAction": {
      "type": "object",
      "properties": {
        "action": {
          "type": "string",
          "description": "The action type",
          "enum": [
            "start_workflow",
            "complete_task",
            "fail_task"
          ]
        },
        "start_workflow": {
          "type": "object",
          "description": "Start workflow action parameters",
          "properties": {
            "name": {
              "type": "string",
              "description": "Name of the workflow to start"
            },
            "version": {
              "type": "integer",
              "description": "Version of the workflow to start"
            },
            "correlationId": {
              "type": "string",
              "description": "Correlation ID for the started workflow"
            },
            "input": {
              "type": "object",
              "description": "Input parameters for the workflow",
              "additionalProperties": true
            }
          }
        },
        "complete_task": {
          "type": "object",
          "description": "Complete task action parameters",
          "properties": {
            "workflowId": {
              "type": "string",
              "description": "Workflow instance ID"
            },
            "taskRefName": {
              "type": "string",
              "description": "Task reference name"
            },
            "output": {
              "type": "object",
              "description": "Output data for the completed task",
              "additionalProperties": true
            }
          }
        },
        "fail_task": {
          "type": "object",
          "description": "Fail task action parameters",
          "properties": {
            "workflowId": {
              "type": "string",
              "description": "Workflow instance ID"
            },
            "taskRefName": {
              "type": "string",
              "description": "Task reference name"
            },
            "output": {
              "type": "object",
              "description": "Output data for the failed task",
              "additionalProperties": true
            }
          }
        },
        "expandInlineJSON": {
          "type": "boolean",
          "description": "Whether to expand inline JSON strings",
          "default": false
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/event-handler"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.