Overview
The REST API lets your own system start and follow Flow runs in a governed AlphaAgent Studio deployment over HTTPS, with an API key instead of a signed-in person. Read this first if you are the integrator writing that system; administrators start at Programmatic access.
The API was built when Flows were called workflows, so its routes, scopes, fields and error codes still say workflow: GET /workflows lists Flows, and workflow_id is a Flow's id. They are stable and are quoted exactly on every page in this section.
Steps
The base URL is https://<app_domain>/api/v1, where <app_domain> is the address people use to open Studio. Nothing else is served under that prefix, and a Studio sign-in is not accepted there.
-
Check the API is on.
GET /healthis the one call that needs no credentials:curl https://<app_domain>/api/v1/health -
Discover what your key can do.
GET /mereturns the key's scopes, Flows and limits;GET /workflowslists the active Flows it may run;GET /workflows/{workflow_id}and/parametersreturn a Flow's input contract and readiness. -
Start a run.
POST /workflows/{workflow_id}/runswith the parameters, an optional free-textinput_text, and anIdempotency-Keyheader. -
Follow it.
GET /runslists the runs your key created;GET /runs/{run_id}is one run in full;/steps,/approvals,/eventsand/pii-redactiongive per-step state, the steps waiting for a person, the durable event log and the personally identifiable information (PII) redaction counts. -
Collect the outputs.
GET /runs/{run_id}/outputslists what a finished run produced;/outputs/{output_id}/contentdownloads one file,/outputs.zipall of them. -
Stop or erase.
POST /runs/{run_id}/cancelstops a run;DELETE /runs/{run_id}/dataerases a finished run's inputs, working files and outputs.
What you should see
GET /health answers 200 in every state:
{"status": "ok", "deployment_id": "<deployment_id>", "api_version": "2026-09-24"}
status is ok when the deployment accepts keys and disabled when it is not governed or has no API key yet. api_version is the API contract date, also the version of the OpenAPI file.
In Studio, a run your system started appears under Flow Runs like any other, its trigger reading API key and the key id; its About this run › Details shows the key under Caller context beside your Client reference.
Notes
- Governed deployments only. Ownership is set at creation and cannot change; a standard deployment answers
503 deployment_updating(details.reasonnot_governed, "Programmatic access requires a governed deployment.") on every authenticated route anddisabledon/health. The console says why: "A governed deployment shares every agent, workflow and connector with everyone assigned to it, so a run started by a key can use them all." See Deploy your first Studio and Working in a governed deployment. - Keys come from the Organisations console, under Identity & access, Programmatic access. New API key needs an owner or operator, or the ProgrammaticAccessAdministrator role. Studio has no key screen. What a key carries is on API keys.
- It reads and runs; it does not build. Flows, agents, Data Bridge connectors, kernels and Intelligence Graphs are built in Studio only.
- It never approves. Steps waiting for a person stay in Studio's Inbox, where approvals from API-triggered runs appear for everyone assigned to the deployment; the API reads them and never releases them.
- It sees only its own runs. A key lists and reads the runs it created; runs started in Studio or by another key answer
404 run_not_found. - Every run is checked before it starts. The Flow's agents, kernels, Intelligence Graphs, connectors and Folio inputs are checked as your key, and a run that would fail is refused with
409 workflow_not_readyand the reasons; for example a connector needs a passing Test connection (the test at creation counts). A check that does not finish in time answers503 access_check_unavailable: retry (The check before a run). A connector that signs in as each person cannot be used at all: "This connector signs in as each person, so runs started with an API key cannot use it." - Reached on your network. On a private deployment
https://<app_domain>/api/v1answers only callers in the deployment's user access ranges, over your Transit Gateway; a caller anywhere else gets no answer at all. The ranges are set as described in Private network access. - No webhooks, no streaming. Poll
GET /runs/{run_id}no more than every 5 seconds per run. - Per-key limits (60 requests a minute, 100 runs a day, 10 runs in flight by default), the other
503reasons and every code are on Limits, errors and codes.
Related
- API keys: what a key carries and how it changes.
- Authentication: the two headers and the order of checks.
- Run a Flow from your system: every route, in curl and Python.
- Patterns: files in S3; training an Intelligence Graph.
- Limits, errors and codes: every limit and code, the OpenAPI file.
- Flows: trigger from outside: the Studio side.