The schema endpoints return the input field definitions from a workflow’s Request Input node. Use them to discover exactly which field names, types, and default values the workflow expects before scripting calls toDocumentation Index
Fetch the complete documentation index at: https://docs.knouds.ai/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/workflows/:slug/run.
Authenticated schema
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:
The workflow’s URL slug.
Response
Both endpoints return the same shape:An array of input field definitions. Each field describes one key in the
inputs object you pass to POST /api/workflows/:slug/run.The current saved values for each field, as last set in the editor.
The workflow’s display name.
The workflow’s description.
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.