Skip to content

The workflow schema endpoint publishes a bare document

A workflow's declared input and output ports, read by an editor before it can draw the workflow. It is not wrapped in the standard envelope, and its snake_case is as much a contract as the playground's camelCase.

The rule

Normative: this is the rule
  1. The body of a successful read of a workflow's schema MUST carry schema_version, parameter_schema and output_schema, spelled in snake_case.
  2. The body MUST NOT carry a success key or a data wrapper.
  3. parameter_schema and output_schema MUST be the stored snapshot verbatim.
  4. Where a workflow declares no ports, they MUST be JSON null, not an empty object and not omitted, so a consumer can distinguish "no ports" from "key missing".

What it means

This endpoint answers with no envelope at all: no success, no data, just the three keys themselves. And where a workflow declares no ports, the missing schema is null, not an empty object and not a key left out — the three shapes ("no ports", "an empty object", "key missing") would otherwise all look the same to a consumer that has to guess which one it is looking at.

Example

A workflow with both a declared input and a declared output:

A workflow's declared parameter and output schemas200 — served
GET /api/flowdrop/workflows/{workflow_id}/schema

{"schema_version": "2.1.0", "parameter_schema": {"type": "object", "properties": {"name": {"type": "string"}}}, "output_schema": {"type": "object", "properties": {"result": {"type": "string"}}}}

A workflow that declares no ports at all:

A workflow with no declared ports200 — served
GET /api/flowdrop/workflows/{workflow_id}/schema

{"schema_version": "0.0.0", "parameter_schema": null, "output_schema": null}

Why

Recorded under OPEN-22, OPEN-23, OPEN-25.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · META-4 · changed in spec 1.0