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
| Parameter | Meaning |
|---|---|
limit | 1 to 200. The default is 50. |
offset | How 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.
| Status | Message | Cause |
|---|---|---|
| 401 | Invalid API key | The key is unknown, revoked, or belongs to another organization. |
| 422 | Request validation failed | limit or offset is out of range. |
The workflow object
| Field | Type | Meaning |
|---|---|---|
workflow_id | string | The workflow's ID, the part of the editor's address after /workflows/. |
name | string | The workflow's name. |
runnable | boolean | true when the workflow has a successful preparation, so a run can start. |
latest_status | string, or null | The status of the most recent preparation attempt: queued, running, completed, failed or cancelled. null for a workflow that has never been prepared. |
updated_at | string, or null | When 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.
runnablecan betruewhilelatest_statusisfailed. An earlier preparation succeeded, and a run uses that version.