Skip to main content
Version: Studio 2.2.32

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.

  1. Check the API is on. GET /health is the one call that needs no credentials:

    curl https://<app_domain>/api/v1/health
  2. Discover what your key can do. GET /me returns the key's scopes, Flows and limits; GET /workflows lists the active Flows it may run; GET /workflows/{workflow_id} and /parameters return a Flow's input contract and readiness.

  3. Start a run. POST /workflows/{workflow_id}/runs with the parameters, an optional free-text input_text, and an Idempotency-Key header.

  4. Follow it. GET /runs lists the runs your key created; GET /runs/{run_id} is one run in full; /steps, /approvals, /events and /pii-redaction give per-step state, the steps waiting for a person, the durable event log and the personally identifiable information (PII) redaction counts.

  5. Collect the outputs. GET /runs/{run_id}/outputs lists what a finished run produced; /outputs/{output_id}/content downloads one file, /outputs.zip all of them.

  6. Stop or erase. POST /runs/{run_id}/cancel stops a run; DELETE /runs/{run_id}/data erases 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.reason not_governed, "Programmatic access requires a governed deployment.") on every authenticated route and disabled on /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_ready and the reasons; for example a connector needs a passing Test connection (the test at creation counts). A check that does not finish in time answers 503 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/v1 answers 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 503 reasons and every code are on Limits, errors and codes.