Get Workflow Inputs
Read what a run of the workflow takes, where the editor keeps it. A function (type function) answers its inputs, from its draft, with the draft's revision; steps read them as {{ function.inputs.<key> }}. Its workflow variables come in variables, in the shape a workflow's inputs have; steps read them as {{ workflow.inputs.<key> }}. Any other workflow (type workflow) answers its variables and, outside Embedded workflows, each one's value per environment id; steps read them as {{ workflow.inputs.<key> }}. issues lists what is kept as stored.
Path
The workflow's id, from List Workflows.
Headers
Optional. The id of a child organization of your API key's company to act on. Leave it out to act on the key's own company. See Child organizations.
Response fields
typestringfunction: a function's inputs, part of its draft (send its revision in If-Match to change them), and its workflow variables; workflow: the workflow's variables, with their value in each environment.
functionworkflow
inputsarray of objectsEvery input, in order.
keystringThe name a step reads it by: {{ function.inputs.<key> }} or {{ workflow.inputs.<key> }}. Made from the label when left out, as the editor makes it; an array variable's ends in "[]". Absent only on an input kept as stored ({ $legacy, ref }).
labelstringThe name the editor shows.
typestringThe data type: string, number, boolean, date, list (one of its choices), array, object, or file. Left out on a write: string.
stringnumberbooleandatelistarrayobjectfile
descriptionstringFunction inputs: what the input is for.
testValueobjectFunction inputs: the value a run from the editor uses, as a step argument of the same type takes it (a template may use system, memory, workflow.inputs and integration.metadata).
requiredbooleanWorkflow variables (not boolean): every environment whose values change needs a value.
errorMessagestringWorkflow variables: the message shown when a value is refused.
placeholderstringWorkflow variables (not boolean): the hint in an empty field.
sensitivebooleanWorkflow string variables: masked in the editor; its values read as { $sensitive, ref } and are kept when sent back so.
minLengthnumberWorkflow string variables: the shortest value.
maxLengthnumberWorkflow string variables: the longest value.
patternstringWorkflow string variables: a regular expression a value must match.
numberTypestringWorkflow number variables: integer or decimal (the default).
integerdecimal
minnumberWorkflow number variables: the smallest value.
maxnumberWorkflow number variables: the largest value.
itemTypestringWorkflow list variables: the type of the choice values, string, number, boolean or date.
stringnumberbooleandate
choicesarrayWorkflow list variables: the choices, in order. An app lookup list reads as { $legacy, ref }.
valueobjectThe value a run gets, typed as itemType.
labelstringWhat the editor shows.
valuesobjectWorkflow variables outside Embedded workflows: the value in each environment, by environment id (List Environments). A run in an environment gets its value.
variablesarray of objectsFunctions only: the function's workflow variables, in order, in the shape a workflow's inputs have (values per environment included); steps read them as {{ workflow.inputs.<key> }}. Live at once when changed, with no If-Match.
keystringThe name a step reads it by: {{ function.inputs.<key> }} or {{ workflow.inputs.<key> }}. Made from the label when left out, as the editor makes it; an array variable's ends in "[]". Absent only on an input kept as stored ({ $legacy, ref }).
labelstringThe name the editor shows.
typestringThe data type: string, number, boolean, date, list (one of its choices), array, object, or file. Left out on a write: string.
stringnumberbooleandatelistarrayobjectfile
descriptionstringFunction inputs: what the input is for.
testValueobjectFunction inputs: the value a run from the editor uses, as a step argument of the same type takes it (a template may use system, memory, workflow.inputs and integration.metadata).
requiredbooleanWorkflow variables (not boolean): every environment whose values change needs a value.
errorMessagestringWorkflow variables: the message shown when a value is refused.
placeholderstringWorkflow variables (not boolean): the hint in an empty field.
sensitivebooleanWorkflow string variables: masked in the editor; its values read as { $sensitive, ref } and are kept when sent back so.
minLengthnumberWorkflow string variables: the shortest value.
maxLengthnumberWorkflow string variables: the longest value.
patternstringWorkflow string variables: a regular expression a value must match.
numberTypestringWorkflow number variables: integer or decimal (the default).
integerdecimal
minnumberWorkflow number variables: the smallest value.
maxnumberWorkflow number variables: the largest value.
itemTypestringWorkflow list variables: the type of the choice values, string, number, boolean or date.
stringnumberbooleandate
choicesarrayWorkflow list variables: the choices, in order. An app lookup list reads as { $legacy, ref }.
valueobjectThe value a run gets, typed as itemType.
labelstringWhat the editor shows.
valuesobjectWorkflow variables outside Embedded workflows: the value in each environment, by environment id (List Environments). A run in an environment gets its value.
issuesarray of objectsWarnings about what is stored: values kept as stored, labels the editor no longer reads, duplicate keys.
severitystringerror refuses a write; warning does not.
errorwarning
codestringWhat is wrong, UPPER_SNAKE (LEGACY_VALUE_PRESERVED, LEGACY_LABEL, DUPLICATE_KEY, ...).
pathstringWhere, as a JSON Pointer into the answer (/inputs/2/values/Ev4kR8mTq2Lx); empty for the whole list.
messagestringWhat is wrong, for a person.
revisionstringFunctions only: the draft's revision. Send it in If-Match on your next change to the draft.