Integration · API

The Synthesized REST API for test data automation

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.

Endpoints

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.

EndpointWhat it does
GET /healthyChecks the API is reachable; returns OK.
POST /workflow/{workflow_id}/runStarts a run and returns once it is accepted.
POST /workflow/{workflow_id}/runsyncStarts a run and waits for it to finish.
POST /workflow/{workflow_id}/stopStops the workflow's current run; 404 if none is running.
GET /workflow/{workflow_id}/runsLists 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}/logsGets the run log as plain text; skip and limit page through it.
GET /workersLists connected workers; needs the Administrator role.

Responses and run statuses

run, runsync and GET /workflow-run/{id} all return the same object.

FieldMeaning
workflow_run_idThe run ID, used for status and log calls.
workflow_run_statusQUEUED, RUNNING or STOPPING while in progress; COMPLETED, FAILED or STOPPED when final.
start_date, end_dateTimestamps; end_date is null while the run is in progress.
error_messageNull when there is no error.
user_idThe user whose key started the run.

Start a run and wait for it

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

#!/bin/sh
# run-synthesized-workflow.sh: start a Synthesized workflow and wait for it.
# Needs GOVERNOR_URL, WORKFLOW_ID and GOVERNOR_ACCESS_KEY; uses curl and jq.
set -eu
API="$GOVERNOR_URL/external/api/v1"
AUTH="X-Access-Key: $GOVERNOR_ACCESS_KEY"
TIMEOUT_SEC="${TIMEOUT_SEC:-1800}"
 
RUN=$(curl -sSf -X POST -H "$AUTH" "$API/workflow/$WORKFLOW_ID/run")
RUN_ID=$(printf '%s' "$RUN" | jq -r '.workflow_run_id')
echo "Started workflow run $RUN_ID"
 
WAITED=0
while [ "$WAITED" -lt "$TIMEOUT_SEC" ]; do
RUN=$(curl -sSf -H "$AUTH" "$API/workflow-run/$RUN_ID")
STATUS=$(printf '%s' "$RUN" | jq -r '.workflow_run_status')
case "$STATUS" in
COMPLETED) echo "Test data ready"; exit 0 ;;
FAILED|STOPPED)
echo "Run $RUN_ID ended as $STATUS: $(printf '%s' "$RUN" | jq -r '.error_message')"
curl -sS -H "$AUTH" "$API/workflow-run/$RUN_ID/logs" | tail -n 50
exit 1 ;;
esac
sleep 10
WAITED=$((WAITED + 10))
done
echo "Timed out after $TIMEOUT_SEC seconds; stopping workflow $WORKFLOW_ID"
curl -sS -X POST -H "$AUTH" "$API/workflow/$WORKFLOW_ID/stop" || true
exit 1

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.

Access keys

Generate a key

In Governor, open Access Keys, choose Generate a New Access Key, pick an expiry from 1 hour to a year, and copy the key.

Scope it to one tool

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.

Keep it short-lived

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.

Questions about the REST API

Is there a hosted API endpoint?

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.

Should I use run or runsync?

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.

Can I pass parameters to a run?

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.

How do I stop a run?

Call POST /workflow/{workflow_id}/stop. It takes the workflow ID, not the run ID, and returns 404 if nothing is running.

What does an access key allow?

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.

Wire it into your stack

Show us the tool that runs your tests, and we'll show the workflow call that prepares its data.

Updated November 2026

All product names are trademarks of their respective owners.