Start a QA run through the API
For the dashboard and agents.
POST/v1/ci/qa/runs
For the dashboard and agents. repository is required; with head_sha a check per system is written on that commit. The run is trusted, as the customer's own, unless it asks for trust: untrusted.
A key with the ci:write scope.
Request
curl -X POST "https://api.pod.mapier.ai/v1/ci/qa/runs" \
-H "Authorization: Bearer $POD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"plan":"example","plan_path":"example","builds":[{"system":"linux","kind":"web","url":"https://app.example.com"}]}'Body
| Field | Type | Required | What it is |
|---|---|---|---|
plan | string | Yes | The plan file's text (YAML). |
plan_path | string | Yes | Where the plan lives in the repository, such as .pod/qa/billing.yaml. |
builds | QaBuild[] | Yes | |
systems | "linux" | "windows" | "android" | "macos" | "ios"[] | No | The plan's own list when empty. |
repository | string | null | No | owner/name. Required through the API. |
head_sha | string | null | No | Through the API only. |
trust | "trusted" | "untrusted" | null | No | A caller may ask for an untrusted run, never for more than it has. |
Answer
202. Started.
{
"id": "qar_3ahrz6dmv29gqy5ckt18fp",
"repository": "example",
"plan_path": "example",
"plan_name": "example",
"plan_sha256": "example",
"head_sha": null,
"trust": "trusted",
"requested_by": {
"kind": "job",
"runner": "example",
"job_id": 1,
"run_id": 1,
"name": "example"
},
"state": "queued",
"conclusion": null,
"model": {
"provider": "example",
"model": "example"
},
"created_at": "2026-11-23T12:00:00.000Z",
"ended_at": null,
"systems": [
{
"system": "linux",
"state": "queued",
"conclusion": null,
"sandbox": null,
"watch_url": null,
"recording": null,
"check_run_id": null,
"started_at": null,
"ended_at": null,
"error": null,
"steps": [
{
"index": 1,
"do": "example",
"expect": "example",
"status": "pending",
"reason": null,
"screenshot": null,
"recording_at_s": null,
"started_at": null,
"ended_at": null,
"actions": [
{
"kind": null,
"x": null,
"y": null,
"text": null,
"name": null,
"keys": null,
"dx": null,
"dy": null,
"ms": null
}
],
"replayed": false,
"looks": [
{
"source": null,
"verdict": null,
"reason": null
}
]
}
]
}
]
}| Field | Type | Always | What it is |
|---|---|---|---|
id | string | Yes | |
repository | string | Yes | |
plan_path | string | Yes | |
plan_name | string | Yes | |
plan_sha256 | string | Yes | |
head_sha | string | null | No | |
trust | "trusted" | "untrusted" | Yes | |
requested_by | object | Yes | job (runner, job_id, run_id) for a workflow step; caller (name) for the API. |
state | "queued" | "running" | "finished" | Yes | |
conclusion | "passed" | "failed" | "unstable" | "could_not_judge" | "broken" | "cancelled" | null | No | |
model | object | Yes | Screenshots go to this provider. |
created_at | string | Yes | |
ended_at | string | null | No | |
systems | QaSystemRun[] | Yes |
Errors
The refusals this call is known for: unauthorized, forbidden, not_found, invalid, unavailable. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.