Skip to main content
Version: Studio 2.2.32

Flows: trigger from outside

Your own software can start a Flow, for example an order management system kicking off an end-of-day reconciliation. On a governed deployment, another application holding an API key lists Flows and their run inputs, starts a run of a Flow's active version with the values you would enter in Run Flow, follows it, downloads its outputs and can stop it. An Organisation administrator creates the API keys in the Organisations console; Studio has no screen for them. Before you start: you need a governed deployment (Working in a governed deployment) and a Flow with an active version.

Steps​

  1. Read Programmatic access: overview.
  2. Follow Run a workflow from your system for the calls in order, with examples.

What you should see​

A run started this way appears in Flow Runs and on its run page like any other. Its trigger reads API key and the key ID, the header shows the caller's Reference, and About this run › Details lists the Triggering API key ID, Client reference and any caller labels. Approvals it raises reach the Inbox of everyone assigned, tagged API run (Flows: run, schedule, approve).

Notes​

  • A key can only be bound to a governed deployment, and can start only Flows with an active version.
  • A run that reads from an AWS connector is refused with 409 workflow_not_ready until the connector has a recorded passing test; the test at creation counts (AWS connector).
  • A Flow that takes files from Folio takes them by id; a run started with an API key can name Team folder files and relies on the Flow's own defaults and reference files (Files from Folio).
  • A Flow's Structured result schema validates outputs/result.json, the result the API returns (Flows: build a Flow).
  • Errors returned to the caller: Limits, errors and codes.