Before you start
- An API key from Settings → API Keys with the
workflows:readandworkflows:invokescopes. See API keys. - Credits on your account. See Credits and billing.
VALENDATA_API_KEY environment variable and call https://api.valendata.com.
1. Declare the inputs
Open the workflow and click the API trigger node, the first node on the canvas. Add one entry per input:
You can’t delete the trigger. A workflow made before triggers existed gets one automatically, with one required string input for each
{{inputs.name}} its steps already use.
2. Use the inputs in steps
Write{{inputs.<name>}} in any step setting: a skill step’s inputs, its Max results, an HTTP URL or body, a condition value. Code steps also get every input in the inputs dictionary.
When a whole setting is one reference, the step gets the value with its type, so {{inputs.limit}} in Max results becomes the number 3. Inside longer text, the value is pasted in as text.
3. Read the contract
input_schema (the trigger’s inputs), input_json_schema, output (what outputs will hold), a reliability summary of the last 20 finished runs, the api_endpoint, the runs_endpoint and the mcp_tool name. The slug is shown on the workflow’s API tab.
4. Run it and wait
422 with every problem listed, and nothing runs or costs credits. Values are converted when they can be: "3" becomes 3 for an integer input.
If the run finishes within wait seconds (default 60, max 120), you get 200:
outputs holds the rows of the workflow’s final step. If several steps end the workflow, outputs has one {rows, count} per final step, keyed by step name.
If the run is still going after wait seconds, you get 202 with the run so far. Poll its status_url.
5. Or start it and come back
202 with run_id and status_url at once. Then either poll:
Idempotency-Key again returns the run it already started.
From an AI assistant (MCP)
Each workflow you can run is also an MCP tool namedworkflow_<slug>, for example workflow_test-workflow-api. Its input schema is the trigger’s inputs and its output schema is the run object above. Clients that support the MCP Tasks extension get a task they can poll instead of waiting. See MCP.
Who can run it and who pays
- The workflow’s owner and members of its workspace can read and run it. Anyone else gets
404. - The workflow’s owner pays: a base fee per run, plus each step’s own cost. The run is charged the higher of the two, never both. API and MCP runs don’t use your monthly run allowance.
- If your account already has its maximum of runs in progress,
/runanswers429withRetry-After./runswaits its turn instead.

