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
- The body of a successful read of a workflow's schema MUST carry
schema_version,parameter_schemaandoutput_schema, spelled in snake_case. - The body MUST NOT carry a
successkey or adatawrapper. parameter_schemaandoutput_schemaMUST be the stored snapshot verbatim.- 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:
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:
GET /api/flowdrop/workflows/{workflow_id}/schema
{"schema_version": "0.0.0", "parameter_schema": null, "output_schema": null}Why
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