Integration · API
Every integration on this site comes down to the same few calls: start a Synthesized workflow, wait for it, and read the log if it fails. Any tool that can send an HTTPS request can prepare its own test data this way.
Paths are relative to [scheme]://[host]:[port]/external/api/v1 on your Governor. Every request sends an access key in the X-Access-Key header.
| Endpoint | What it does |
|---|---|
GET /healthy | Checks the API is reachable; returns OK. |
POST /workflow/{workflow_id}/run | Starts a run and returns once it is accepted. |
POST /workflow/{workflow_id}/runsync | Starts a run and waits for it to finish. |
POST /workflow/{workflow_id}/stop | Stops the workflow's current run; 404 if none is running. |
GET /workflow/{workflow_id}/runs | Lists the workflow's runs. |
GET /workflow-run/{workflow_run_id} | Gets a run's status, start and end time, and error message. |
GET /workflow-run/{workflow_run_id}/logs | Gets the run log as plain text; skip and limit page through it. |
GET /workers | Lists connected workers; needs the Administrator role. |
run, runsync and GET /workflow-run/{id} all return the same object.
| Field | Meaning |
|---|---|
workflow_run_id | The run ID, used for status and log calls. |
workflow_run_status | QUEUED, RUNNING or STOPPING while in progress; COMPLETED, FAILED or STOPPED when final. |
start_date, end_date | Timestamps; end_date is null while the run is in progress. |
error_message | Null when there is no error. |
user_id | The user whose key started the run. |
A POSIX shell script that works in Jenkins, GitLab, Azure DevOps, GitHub Actions, qTest agents or a developer's terminal. It exits 0 when the data is ready, and 1 if the run fails, a call is rejected or it times out (30 minutes by default; set TIMEOUT_SEC to change it).
run-synthesized-workflow.sh
Error codes: 401 for an invalid or expired key, 403 for missing permissions (for example on /workers), 404 from stop when nothing is running, and 500 if a stop fails. The docs don't state rate limits.
In Governor, open Access Keys, choose Generate a New Access Key, pick an expiry from 1 hour to a year, and copy the key.
Requests run with the permissions of the user who generated the key. Create a dedicated user per tool or pipeline that can reach only its workflows.
The docs say keys can't yet be revoked, so prefer short expiries and rotate them. Store keys in your CI or test tool's secret store, never in the test project.
There's no shared public endpoint. Each Governor serves its own API under /external/api/v1, and that address can differ from the Governor web UI address.
run returns as soon as the run is accepted, and you poll GET /workflow-run/{id} until it reaches a final status. runsync waits for the run to finish before it responds. Polling is the safer choice for long runs, because it doesn't depend on one HTTP request staying open.
The API documents no request body for run or runsync. A run uses the workflow's configuration in Governor, so create one workflow per environment or dataset.
Call POST /workflow/{workflow_id}/stop. It takes the workflow ID, not the run ID, and returns 404 if nothing is running.
Everything the user who generated it can do. Give each tool its own Governor user with access to only the workflows it runs, and a short expiry.
Show us the tool that runs your tests, and we'll show the workflow call that prepares its data.
All product names are trademarks of their respective owners.