Retrieve a workflow’s Request Input field definitions to discover what keys and types to pass when calling POST /api/workflows/:slug/run.
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 to POST /api/workflows/:slug/run.
Always call the schema endpoint before writing automation scripts against a workflow you didn’t build. The field names returned here are the exact keys you pass in the inputs object when running the workflow. Skipping this step is the most common cause of INVALID_INPUTS errors.
Returns the same field map without requiring authentication. This endpoint is only available when the workflow has 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:
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.
Once you have the schema, map each field.name to a value in the inputs object:
# 1. Fetch the schemacurl https://knouds.ai/api/workflows/my-thumbnail-pipeline/schema \ -H "x-api-key: $KNOUDS_KEY"# 2. Use the field names to build the run requestcurl -X POST https://knouds.ai/api/workflows/my-thumbnail-pipeline/run \ -H "x-api-key: $KNOUDS_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "prompt": "a futuristic city at dawn", "aspect_ratio": "16:9" } }'
Fields you omit from inputs fall back to their default values as defined in the schema.