Skip to main content

Workflows

List the workflows in your Unstract Flow organization, to find the workflow ID that Runs needs and to see which workflows can run.

To create, change and deploy workflows, see Author and deploy over the API.

List workflows​

GET /api/v1/external/accounts/<organization-id>/workflows
ParameterMeaning
limit1 to 200. The default is 50.
offsetHow many workflows to skip, for paging.
curl "$FLOW_URL/api/v1/external/accounts/$FLOW_ORG/workflows?limit=50" \
-H "X-API-Key: $FLOW_API_KEY"

The response holds workflows, most recently updated first, and has_more. When has_more is true, call again with offset raised by limit.

StatusMessageCause
401Invalid API keyThe key is unknown, revoked, or belongs to another organization.
422Request validation failedlimit or offset is out of range.

The workflow object​

FieldTypeMeaning
workflow_idstringThe workflow's ID, the part of the editor's address after /workflows/.
namestringThe workflow's name.
runnablebooleantrue when the workflow has a successful preparation, so a run can start.
latest_statusstring, or nullThe status of the most recent preparation attempt: queued, running, completed, failed or cancelled. null for a workflow that has never been prepared.
updated_atstring, or nullWhen the workflow last changed, in ISO 8601.
Limitations
  • The list covers every workflow in the organization, including ones the key's creator can't open in the app.
  • runnable can be true while latest_status is failed. An earlier preparation succeeded, and a run uses that version.