Use this endpoint to run a deployed workflow programmatically. You pass the workflow’s slug and the input values your pipeline expects, and Knouds executes the full node graph synchronously, returning the output when the run is complete.Documentation Index
Fetch the complete documentation index at: https://docs.knouds.ai/llms.txt
Use this file to discover all available pages before exploring further.
Your account must be approved and your API key must be active before you can call this endpoint. See Authentication for key setup and scope details.
Endpoint
Authentication
Any authenticated scope (free, deployment, or admin). Pass your API key in the x-api-key header.
Rate limits
Rate limits depend on your key’s scope:| Scope | Limit |
|---|---|
free | 10 req/min |
deployment | 100 req/min |
admin | 1000 req/min |
| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests allowed in the current window |
X-RateLimit-Remaining | Requests remaining in the current window |
X-RateLimit-Reset | Unix epoch second when the window resets |
429 response, an additional Retry-After header tells you how many seconds to wait before retrying.
Path parameters
The workflow’s URL slug — the identifier that appears in the editor URL when you open the workflow (for example,
my-thumbnail-pipeline). Slugs are lowercase letters, digits, and hyphens. A workflow’s slug never changes after it is created.Request body
Key/value pairs matching the workflow’s Request Input fields. The accepted keys and value types depend on how the workflow author configured the Request Input node. Use GET /api/workflows/:slug/schema to discover the exact field names and types before scripting calls.
Response
A200 response means the workflow ran to completion and all output nodes produced results.
Always
true on a 200 response.The workflow’s output. The exact shape depends on the Response Output node type configured in the workflow. Common shapes include:
Credits consumed by this run. The amount reflects your account tier’s pricing and any markup applied. A value of
0 means the run consumed a trial grant rather than deducting from your credit balance.Total execution time in milliseconds, measured from the moment the server received the request to the moment all nodes completed.
Error responses
| Status | Code | Meaning |
|---|---|---|
400 | INVALID_INPUTS | The inputs field is missing, not an object, or contains values that fail validation. |
402 | INSUFFICIENT_CREDITS | Your account does not have enough credits to run the workflow. |
402 | grant_exhausted | Your trial grant for a model in this workflow has been used up. Upgrade your plan to continue. |
403 | MODEL_TIER_REQUIRED | The workflow contains a model that requires a higher plan tier than your account holds. |
404 | — | No workflow exists with the provided slug, or it does not belong to your account. |
429 | RATE_LIMIT_EXCEEDED | You have exceeded the per-minute limit for your key scope. Check the Retry-After header. |
500 | EXECUTION_FAILED | A provider call inside the pipeline failed. The error field describes the cause. |