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

FieldTypeRequiredWhat it is
planstringYesThe plan file's text (YAML).
plan_pathstringYesWhere the plan lives in the repository, such as .pod/qa/billing.yaml.
buildsQaBuild[]Yes
systems"linux" | "windows" | "android" | "macos" | "ios"[]NoThe plan's own list when empty.
repositorystring | nullNoowner/name. Required through the API.
head_shastring | nullNoThrough the API only.
trust"trusted" | "untrusted" | nullNoA caller may ask for an untrusted run, never for more than it has.

Answer

202. Started.

202
{
  "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
            }
          ]
        }
      ]
    }
  ]
}
FieldTypeAlwaysWhat it is
idstringYes
repositorystringYes
plan_pathstringYes
plan_namestringYes
plan_sha256stringYes
head_shastring | nullNo
trust"trusted" | "untrusted"Yes
requested_byobjectYesjob (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" | nullNo
modelobjectYesScreenshots go to this provider.
created_atstringYes
ended_atstring | nullNo
systemsQaSystemRun[]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.