POST /api/workflows/:slug/run.
Authenticated schema
workflow:read.
Path parameter:
string
required
The workflow’s URL slug.
Public schema (no auth)
publicPlayground: true set. If the workflow is not marked as a public playground, this endpoint returns 404.
Use this endpoint when you are building an unauthenticated form or an embed that collects user inputs before passing them to a server-side call.
Auth: none required.
Path parameter:
string
required
The workflow’s URL slug.
Response
Both endpoints return the same shape:array
An array of input field definitions. Each field describes one key in the
inputs object you pass to POST /api/workflows/:slug/run.object
The current saved values for each field, as last set in the editor.
string
The workflow’s display name.
string
The workflow’s description.
number
Estimated credits this workflow costs to run, calculated from the generator nodes and your account tier. Only present on the authenticated
/schema endpoint.The actual field shape depends entirely on what the workflow author configured in the Request Input node. Field types, options, and defaults are set per-workflow. If a workflow has no Request Input node, the
fields array is empty and the workflow accepts an empty inputs object.Using the schema to build a run request
Once you have the schema, map eachfield.name to a value in the inputs object:
inputs fall back to their default values as defined in the schema.