HTTP API
The web app reads everything from QA-Board's HTTP API, and your scripts, CI jobs and agents can too, in any language. This page shows how to authenticate, get everything about one commit, and read the answers.
| Your server's | Address |
|---|---|
| API | <your-qaboard>/api/v1 |
| API reference, to browse and try requests | <your-qaboard>/api/v1/docs |
| OpenAPI document | <your-qaboard>/api/v1/openapi.json |
<your-qaboard> is the address of your QA-Board, the one you open in a browser, like https://qaboard.example.com.
From Python, qaboard.runs(url) gets the runs a web app page shows, and qa gate --json compares a commit with its
reference: they call this API for you. See Results in scripts. Use HTTP from other languages, or for
what they don't cover.
Your first request
Ask for the latest commits of a project that have results:
QABOARD_URL=https://qaboard.example.com
curl "$QABOARD_URL/api/v1/commits?project=kitefin/detector&limit=5" | jq '.[] | {id, branch, message}'
{
"id": "7622c33790d16cf1a04ad6a5c7b1a1d2a3b4c5d6",
"branch": "quant/int8",
"message": "feat(quant): percentile calibration (99.99)\n\nMinmax let a few outliers set the scale..."
}
...
project is the project's id, as in the web app's URLs: <your-qaboard>/kitefin/detector/commit/7622c337.
If you get 401 and "reason": "sign_in_required", your server or the project requires signing in: send a token,
as below.
Authenticate
Reading is anonymous, unless your server requires signing in or the project isn't public. Changing things needs a token, except sending results when your server still accepts them anonymously. To get one:
- In the web app, open Settings → Access tokens and create a token (how). Give it only the scopes it needs: Read to read results. For a CI job, prefer a service account's token: it keeps working when people leave.
- Keep it in an environment variable, never in your code or in URLs. If you signed in with
qa auth login,qa auth tokenprints yours.export QABOARD_TOKEN=qab_pat_... - Send it in the
Authorizationheader:curl -H "Authorization: Bearer $QABOARD_TOKEN" "$QABOARD_URL/api/v1/user/me/"{"is_authenticated": true,"user_name": "arjun","token": {"name": "nightly report", "scopes": ["read"], "projects": ["kitefin/*"], "expires_at": "2027-02-04T00:00:00Z"}}/user/me/says who you are and which token you use: check your setup with it.
A token can do what its scopes allow, on the projects its user can see, and only on the projects it's restricted to, if any:
| Scope | Lets the token |
|---|---|
read | Read projects, commits, runs and files. |
ingest | Send results (qa run, qa batch), and add metrics to runs. |
act | Redo runs, start or delete batches, save milestones. |
admin | Use the admin API (admins only). |
When a token is refused: the reasons
Errors are JSON, with what went wrong in error and a stable code in reason:
{"error": "This token expired on 2026-10-01.", "reason": "token_expired"}
| Status | reason | What to do |
|---|---|---|
| 401 | sign_in_required, login_required | Send a token. Files always need one, whatever the server's settings for other results. |
| 401 | ingest_token_required | The server only takes results sent with a token: send one. |
| 401 | token_invalid | The token is mistyped, or was deleted: check it, or create another. |
| 401 | token_expired, token_idle_expired, token_revoked | Create another token. |
| 401 | token_in_url | Send the token in the Authorization header: ?token= is only accepted to read. |
| 403 | missing_scope | The token needs the scope in required. |
| 403 | token_project | The token is restricted to other projects. |
| 403 | missing_role, forbidden_project | You can't see or change this project. With missing_role, owners lists whom to ask. |
| 403 | cross_site_write | A browser sent a change from another website, with your session: use a token. |
From a browser, a token in a URL
- In a browser signed in to QA-Board, requests to the API use your session: the API reference page works without a token.
- Changes sent with a session from other websites are refused (
cross_site_write). Pages on another site send a token instead. ?token=<token>is accepted forGETrequests to the API, for tools that can't send headers. Avoid it: URLs end up in logs and browser histories. Files under/s/only accept the header.
Everything about one commit
The four requests most scripts need, for a commit's CI batch. In the API, runs are called outputs, and the CI
batch's label is default (the web app shows it as CI).
1. Get the commit, its batches and runs
curl -H "Authorization: Bearer $QABOARD_TOKEN" \
"$QABOARD_URL/api/v1/commit/7622c337?project=kitefin/detector&batch=default"
The commit can be a sha or its first characters, a branch (its latest commit with results), or a tag. Without
batch, you get all the commit's batches. The answer, shortened:
{
"id": "7622c33790d16cf1a04ad6a5c7b1a1d2a3b4c5d6",
"branch": "quant/int8",
"message": "feat(quant): percentile calibration (99.99)",
"committer_name": "Arjun Sethuraman",
"authored_datetime": "2026-11-05T13:58:40+00:00",
"outputs_url": "/s/mnt/qaboard/kitefin/detector/outputs/7622c337",
"data": {"qatools_config": {"project": {"reference_branch": "main"}}},
"batches": {
"default": {
"id": 1204,
"label": "default",
"origin": "ci",
"valid_outputs": 7,
"pending_outputs": 0,
"failed_outputs": 1,
"outputs": {
"184467": {
"id": 184467,
"test_input_database": "/mnt/datasets/kitefin",
"test_input_path": "slices/indoor",
"configurations": ["fp32", "size-320"],
"extra_parameters": {},
"platform": "linux",
"metrics": {"mAP": 0.612, "latency_ms": 18.4},
"is_pending": false,
"is_failed": false,
"output_dir_url": "/s/mnt/qaboard/kitefin/detector/outputs/7622c337/default/slices-indoor"
}
}
}
}
}
Get a run's metrics with .batches.default.outputs[] | {test_input_path, metrics} in jq. A run has finished when
is_pending is false; it succeeded when is_failed is also false. All the fields are below.
A batch can have thousands of runs. with_outputs=false leaves them out: you get the batches' counts, and with
metrics={"mAP": 0.5}, each batch's median, average and sum of these metrics (aggregated_metrics.mAP_median).
2. List a run's files
curl -H "Authorization: Bearer $QABOARD_TOKEN" "$QABOARD_URL/api/v1/output/184467/manifest"
{
"output.png": {"st_size": 1843211, "md5": "9b2c1e0f4f6d3a8c7e5b1a2d3c4e5f60"},
"detections.json": {"st_size": 20480, "md5": "2f1e0d9c8b7a6f5e4d3c2b1a09f8e7d6"}
}
After adding files to a run's folder yourself, list them again with POST on the same URL (signed-in users only).
3. Download a file
The *_url fields are paths on your server. Add your server's address before them, and the file's path after:
curl -H "Authorization: Bearer $QABOARD_TOKEN" -O \
"$QABOARD_URL/s/mnt/qaboard/kitefin/detector/outputs/7622c337/default/slices-indoor/detections.json"
On the machines that mount the storage, the same file is at the path after /s:
/mnt/qaboard/kitefin/detector/.... Read it there instead of downloading large files.
4. Compare with the reference
The numbers of the Summary and Metrics Diff views: each metric's median against the reference's, and each run
against the reference run of the same test. qa gate decides from them.
curl -H "Authorization: Bearer $QABOARD_TOKEN" \
"$QABOARD_URL/api/v1/commit/7622c337/compare?project=kitefin/detector&batch=default&reference=main"
{
"status": "complete",
"messages": [],
"commit": {"id": "7622c337...", "batch": "default", "runs": {"total": 8, "valid": 7, "failed": 1, "pending": 0, "running": 0}},
"reference": {"requested": "main", "type": "branch", "id": "51f0e2a9...", "batch": "default", "runs": {"total": 8, "valid": 8, "failed": 0, "pending": 0, "running": 0}},
"metrics": {
"mAP": {
"smaller_is_better": false,
"target": 0.55,
"new": {"median": 0.612, "count": 7, "pass_rate": 0.86},
"ref": {"median": 0.598, "count": 8, "pass_rate": 0.75},
"delta": 0.014,
"delta_relative": 0.023
}
},
"tests": [
{
"id": 184467,
"reference_id": 183902,
"reference_mismatch": null,
"test_input_path": "slices/indoor",
"is_failed": false,
"metrics": {"mAP": {"new": 0.612, "ref": 0.601, "delta": 0.011, "delta_relative": 0.018}}
}
]
}
- Check
statusfirst. The numbers are final only when it'scomplete.runningmeans some runs aren't done;missingmeans runs or the reference are missing, andmessagessays what. referenceis a branch (its latest commit with runs with the label), a commit sha, or a shared milestone's name. Without it, the commit'sgate.referencein qaboard.yaml, else the project'sreference_branch.- Whether a change is better depends on
smaller_is_better. When it'snull, QA-Board doesn't know which way is better: don't call the change an improvement or a regression. reference_mismatchisn'tnullwhen the reference run isn't the same test (another input, configuration or platform): it says what differs.
Every parameter, and the rest of the answer
| Parameter | Default | Meaning |
|---|---|---|
project | required | The project's name, as in qaboard.yaml. |
batch | default | The label of the runs to compare, as qa --label sets it: default for the CI's. |
reference | the commit's gate.reference, else project.reference_branch | A shared milestone's name (or #<id>), a commit or a branch. |
reference_batch | batch | The reference's label, to compare runs with two different labels. |
metrics | all | Metrics to compare, separated by commas. |
bit_accuracy | false | true compares the runs' output files. |
Besides status, messages, metrics and tests, the answer has:
- in
tests, each run'sbatch, the name afterqa batchthat started it (servers from November 2026), andattemptswhen the run was done again; commit.reruns, the counts of runs that were done again;reference.gate, thegate:section of the reference's qaboard.yaml, andproject_gate, the rules the project's owners set in the web app.
The same from Python
A script that prints, for each test of a commit's CI batch, its metric and the reference's. Save it as compare.py
and run uv run compare.py 7622c337:
# /// script
# dependencies = ["requests"]
# ///
import os
import sys
import requests
server = os.environ.get("QABOARD_URL", "https://qaboard.example.com")
api = requests.Session()
if os.environ.get("QABOARD_TOKEN"):
api.headers["Authorization"] = f"Bearer {os.environ['QABOARD_TOKEN']}"
def get(path, **params):
response = api.get(f"{server}/api/v1/{path}", params=params, timeout=60)
if not response.ok:
sys.exit(f"{response.status_code} {path}: {response.json().get('error', response.text)}")
return response.json()
project, commit = "kitefin/detector", sys.argv[1]
comparison = get(f"commit/{commit}/compare", project=project, batch="default", reference="main")
if comparison["status"] != "complete":
sys.exit(f"Not comparable yet ({comparison['status']}): {comparison['messages']}")
metric = "mAP"
info = comparison["metrics"][metric]
print(f"{metric}: {info['new']['median']} vs {info['ref']['median']} (smaller is better: {info['smaller_is_better']})")
for test in comparison["tests"]:
cell = test["metrics"].get(metric) or {}
print(f"{test['test_input_path']:<30} {cell.get('new')} vs {cell.get('ref')}")
Read the answers
Each run, batch and commit has these fields. The API reference has them all, with their types.
A run (an "output")
| Field | What it is |
|---|---|
id | The run's id: use it with /output/<id>. |
test_input_database, test_input_path | The input: its database, and its path in it. |
test_input_metadata | The input's metadata, from the batch's definition. |
configurations | The configurations (qa --config): strings and mappings. |
extra_parameters | The tuning parameters. |
platform | Where it ran, e.g. linux. |
metrics | Its metrics: those it returned, and those added by scripts. |
is_pending, is_running, is_failed | Waiting or running; running; failed. |
deleted | Its files were deleted. |
output_type | optim_iteration for the evaluations of an automated tuning. |
output_dir_url | Its folder, as a path on the server: see Download a file. |
data | What else the server knows: who sent it (submitted_by), the parameters it reported (params), who added which metrics (added_metrics). |
created_date, queued_at, started_at, finished_at | When. |
A batch
| Field | What it is |
|---|---|
id, label | The batch, and its label: default for the CI batch. |
commit_id | Its commit's sha. |
origin, user_name | Where it was started (ci, webapp or local), and by whom. |
valid_outputs, pending_outputs, running_outputs, failed_outputs, deleted_outputs | How many runs succeeded, wait or run, run, failed, had their files deleted. |
aggregated_metrics | With metrics={"<name>": <target>}: <name>_median, <name>_average, <name>_sum over its successful runs. |
outputs | Its runs, by id, when you ask for them. |
batch_dir_url | Where its runs are saved, as a path on the server. |
created_date, latest_output_datetime | When it was created, and got its latest run. |
data | Its settings and bookkeeping. |
A commit
| Field | What it is |
|---|---|
id | The full sha. |
branch, message, committer_name, committer_avatar_url | From git. branch is empty when the client that sent results didn't know it. |
authored_datetime, authored_date | When it was authored. |
latest_output_datetime | When it got its latest run. |
batches | Its batches, by label. |
data | Its qaboard.yaml (qatools_config), metrics definitions (qatools_metrics), who sent it (submitted_by), and the metadata clients saved. |
outputs_url, artifacts_url, repo_artifacts_url | Where its runs and artifacts are saved, as paths on the server. |
deleted | Its artifacts were deleted. |
artifacts | From /commit/<sha> only: whether its artifacts are there, to run tests from the web app. |
Dates are ISO 8601. Those without a time zone, like 2026-11-05T14:02:11.391000, are in UTC.
Other requests
Lists of commits, branches and projects
GET /commits?project=<project>: the commits with results, newest first. By default those of the last days with commits, or offromandto(2026-10-01T00:00:00.000Z)./commits/<branch>for a branch's,committer=<name>for a committer's.limit(at most 1000) andoffsetgive pages: theX-Has-Moreresponse header (trueorfalse) says if there are more.qsearches the whole history, with the syntax of the web app's search box, e.g.q=branch:release -wip.only_ci_batches=trueorbatch=<label>keep one batch per commit;with_outputs=trueadds their runs.
GET /commit?project=<project>&branch=<branch>: the branch's latest commit with successful runs, with its runs.GET /project/branches?project=<project>: the branches with results (q=quantfor those whose name contains it).GET /projects?summary=true: the projects you can read, by id.GET /project?project=<project>for one's qaboard.yaml and metrics definitions.GET /batches?project=<project>: the latest batches, each with its commit;scope=minefor yours in every project.
curl -i "$QABOARD_URL/api/v1/commits?project=kitefin/detector&q=committer:arjun&limit=50&offset=50"
Milestones
GET /milestones?project=<project> lists the shared milestones, and yours when you
send a token: each with its label, group, notes, commit, batch and filter. Compare with one with
reference=<label>.
Add metrics to a run
A script can add the metrics it computed to a finished run. It needs a token with the ingest scope and the developer
role on the project:
curl -X PATCH -H "Authorization: Bearer $QABOARD_TOKEN" -H "Content-Type: application/json" \
-d '{"metrics": {"sharpness": 0.42}, "source": {"script": "sharpness.py"}}' \
"$QABOARD_URL/api/v1/output/184467/metrics"
QA-Board records who added each metric, when and with which script, in the run's data.added_metrics. Metrics the
run returned itself are refused (409, metrics_exist) unless you send "overwrite": true. From Python,
run.log_metrics() does it: see Add metrics to runs.
Report a running run's metrics
A run that says it is running (POST /output/ with is_pending and is_running) can report its metrics and
parameters so far, as often as it wants, so that the web app shows them before it ends. Each request replaces what
the run said before:
curl -X PATCH -H "Authorization: Bearer $QABOARD_TOKEN" -H "Content-Type: application/json" \
-d '{"metrics": {"train/loss": 0.31}, "params": {"device": "cuda:0"}}' \
"$QABOARD_URL/api/v1/output/184467/progress"
It answers 409 (not_running) once the run has ended. From Python, qaboard.start_run()
does it for you.
Heartbeats: send "heartbeat": true when the run starts, then report at least every few minutes, with {} when
there's nothing new (it changes nothing). Runs that said so and stay silent are
marked failed; a run that reports again is running again.
Send a run's files
Runs that don't save their files in a storage shared with the server send them, on servers that
accept uploads (uploads.enabled in GET /config). Create the run with
POST /output/ and "storage": "upload", as running: the server chooses its folder. Then send each file, with its
path in the run's folder, while the run is pending or running:
curl -X PUT -H "Authorization: Bearer $QABOARD_TOKEN" --data-binary @junit.xml \
-H "X-Content-SHA256: $(sha256sum junit.xml | cut -d' ' -f1)" \
"$QABOARD_URL/api/v1/output/184467/files/reports/junit.xml"
Sending a file again replaces it. ?offset=<the file's size> adds the body at its end instead, for logs: 409
(offset_mismatch, with the size the server has) means to send the file whole. The server checks the SHA-256
when you send it (422), and refuses files larger than its limit (413). Files always need a token that can send
results to the project. qa, qa upload and
qaboard.start_run() do all this: see
Send results without a shared storage.
Send a commit's artifacts
qa save-artifacts sends the files runs started from the web app need, on servers that accept uploads, for a commit
the server knows (POST /commit/): each file by its path in the repository, then the
manifests that list them, in the project's folder (<subproject>/manifests/<group>.json).
The SHA-256 is required. GET /commit/<commit>/artifacts?project=<project> lists what the server has, with each
file's SHA-256 and a hash of the whole: download the files from <url>/<path>.
curl -X PUT -H "Authorization: Bearer $QABOARD_TOKEN" --data-binary @build/my-tool \
-H "X-Content-SHA256: $(sha256sum build/my-tool | cut -d' ' -f1)" \
"$QABOARD_URL/api/v1/commit/$GIT_COMMIT/artifacts/files/build/my-tool?project=group/repo"
Start a batch on a commit
POST /commit/<sha>/batch?project=<project> starts a batch on a commit as the web app's Run Tests / Tuning does:
QA-Board runs qa batch from the commit's artifacts, with the project's runner, and the runs show on the commit's
page under batch_label. POST /commit/<sha>/batch/check takes the same request and only says what's wrong. Both
need a token with the act scope, of an account with the developer role:
curl -X POST -H "Authorization: Bearer $QABOARD_TOKEN" -H "Content-Type: application/json" \
-d '{"batch_label": "nms-sweep", "selected_group": "ci", "notify": false,
"tuning_search": {"search_type": "grid", "parameter_search": {"score_threshold": [0.3, 0.5]}}}' \
"$QABOARD_URL/api/v1/commit/3f2a91c/batch?project=kitefin/detector"
From the shell, qa batch --commit sends this request, after checking it, and can send batch files that aren't in the
commit: see start batches from a terminal. The request's fields
are in the reference (startBatch).
Starting other runs
Redoing runs needs a token with the act scope too. Those endpoints serve the web app, aren't in the reference yet,
and may change.
QA-Board can start Jenkins builds with its own Jenkins credentials
(Jenkins builds). From a script, send a token with the
act scope:
curl -X POST -H "Authorization: Bearer $QABOARD_TOKEN" -H "Content-Type: application/json" \
-d '{"build_url": "https://jenkins.example.com/job/my-job", "params": {"key": "value"}}' \
"$QABOARD_URL/api/v1/jenkins/build/trigger/"
Without a token, QA-Board only starts the jobs listed in the project's qaboard.yaml.
API reference
Your server describes its API at:
<your-qaboard>/api/v1/docs: the reference, to browse the endpoints, their parameters and answers, and try them. If you're signed in to QA-Board in the same browser, requests use your session; otherwise click Authorize and paste a token.<your-qaboard>/api/v1/openapi.json: the same as an OpenAPI 3.1 document, for client generators, Postman, and agents.
Both are public, also when the server requires signing in: they describe the API, not your data.
The reference covers the endpoints on this page: those to read results, to add metrics to runs, and to start batches on a commit. The others serve the web app and may change without notice. The document is written by hand for now; generating it from the backend's code is on the roadmap.
For coding agents
Agents use the same API. What helps them get it right:
- Fetch
<your-qaboard>/api/v1/openapi.jsonfirst: it has every parameter and field, with descriptions. - To judge a change, use
/commit/<sha>/compare: checkstatus, then readsmaller_is_betterbefore calling a change better. Report the tests that regressed, not only medians. - To get results for a commit without the local changes of a checkout, have QA-Board start the batch on the pushed
commit:
qa --label <name> batch --commit <sha> <batch>, or/commit/<sha>/batch. Then read the runs or askqa gate --label <name>once they're done. - Read the token from
QABOARD_TOKEN, send it in the header, never in a URL or a log. - Read files on the storage, never change them: runs' folders are shared with everyone.
The qaboard-results skill teaches agents all of this, with the Python SDK and qa gate.
- Results in scriptsThe runs a page shows from Python, and adding metrics and files.
- Quality gateFail the CI when metrics regress.
- Coding agentsSkills that teach agents to read results.