# Mapier Pod CI/QA (Preview)
# Delete one cache entry (https://docs.mapier.ai/pod/ci/api/cache/delete-ci-cache)
> The entry's bytes are freed; a job that asks for it next gets a miss.
**DELETE** `/v1/ci/installations/{installation}/repositories/{repository_id}/caches/{entry}`
The entry's bytes are freed; a job that asks for it next gets a miss.
A key with the `ci:write` scope.
## Request [#request]
```bash
curl -X DELETE "https://api.pod.mapier.ai/v1/ci/installations/1/repositories/1/caches/1" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------------- | ---- | --------- | -------- | --------------------------------------- |
| `installation` | path | `integer` | Yes | The GitHub App installation. |
| `repository_id` | path | `integer` | Yes | GitHub's repository id. |
| `entry` | path | `integer` | Yes | The entry's id, as the list answers it. |
## Answer [#answer]
**204.** Deleted.
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# A repository's cache entries and its use of the limit (https://docs.mapier.ai/pod/ci/api/cache/list-ci-caches)
> The entries the repository's jobs saved, most recently used first, with the bytes they hold against the repository's limit.
**GET** `/v1/ci/installations/{installation}/repositories/{repository_id}/caches`
The entries the repository's jobs saved, most recently used first, with the bytes they hold against the repository's limit. Entries still being uploaded are not listed.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/installations/1/repositories/1/caches" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------------- | ---- | --------- | -------- | ---------------------------- |
| `installation` | path | `integer` | Yes | The GitHub App installation. |
| `repository_id` | path | `integer` | Yes | GitHub's repository id. |
## Answer [#answer]
**200.** The entries.
```json title="200"
{
"repository_id": 1,
"used_bytes": 0,
"limit_bytes": 0,
"entries": [
{
"id": 1,
"key": "example",
"version": "example",
"scope": "example",
"size_bytes": 0,
"created_at": "2026-11-23T12:00:00.000Z",
"last_used_at": "2026-11-23T12:00:00.000Z"
}
]
}
```
| Field | Type | Always | What it is |
| --------------- | -------------- | ------ | ------------------------- |
| `repository_id` | `integer` | Yes | |
| `used_bytes` | `integer` | Yes | At least 0. |
| `limit_bytes` | `integer` | Yes | At least 0. |
| `entries` | `CacheEntry[]` | Yes | Most recently used first. |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# Connect a GitHub App installation to a project (https://docs.mapier.ai/pod/ci/api/ci/connect-ci-installation)
> People only, and only an owner of the project's organization with a fresh second factor, as a service grant is made.
**POST** `/v1/ci/connections`
People only, and only an owner of the project's organization with a fresh second factor, as a service grant is made. The controller reads the installation from GitHub and refuses it unless it belongs to the caller: `github_code`, the code GitHub hands the App's Setup URL when the App asks for user authorization during installation, is exchanged by Pod alone and must name a GitHub user who can reach the installation. It must also be an organization Pod CI can serve (runner groups, not suspended). The service grant named by `grant_key_id` must have reached the controller through Pod's grant hand-over (encrypted to the controller's own key, collected and acknowledged), for the same organization and project; its secret is checked against the project's signed key list: a `service_grant` of `pod-ci` for this project with CI's billing mark. An installation connected to another project moves only when the caller may connect that project too; otherwise `conflict`. Repeating the same connection answers it again, with 200.
For people only: a signed-in person with a fresh second factor makes this call, from the dashboard. Any API key is refused with `person_required`.
## Request [#request]
```bash
curl -X POST "https://api.pod.mapier.ai/v1/ci/connections" \
-H "Authorization: Bearer $POD_PERSON_TOKEN" \
-H "Content-Type: application/json" \
-d '{"installation_id":1,"project":"prj_3ahrz6dmv29gqy5ckt18fp","grant_key_id":"key_3ahrz6dmv29gqy5ckt18fp"}'
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------- | ----- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
## Body [#body]
| Field | Type | Required | What it is |
| ----------------- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `installation_id` | `integer` | Yes | |
| `project` | `string` | Yes | The same project as the `project` parameter. |
| `grant_key_id` | `string` | Yes | The key of the `pod-ci` service grant the owner made for the project. |
| `github_code` | `string` | No | The `code` GitHub sent the App's Setup URL with the installation, when the App asks for user authorization during installation. Pod exchanges it and checks that the GitHub user can reach the installation; the controller never sees the user's token. Required unless the installation is already connected to this project. |
## Answer [#answer]
**200.** The same connection, asked for again.
**201.** The connection, made now.
```json title="200"
{
"installation_id": 1,
"account": "example",
"account_type": "organization",
"project": "example",
"grant_key_id": "example",
"state": "active",
"connected_at": "2026-11-23T12:00:00.000Z",
"connected_by": "example",
"repositories": [
{
"id": 1,
"full_name": "example",
"public": false,
"allow_listed": false,
"default_label": null
}
]
}
```
| Field | Type | Always | What it is |
| ----------------- | ------------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `installation_id` | `integer` | Yes | |
| `account` | `string` | Yes | The GitHub organization the App is installed on. |
| `account_type` | `"organization" \| "user"` | Yes | |
| `project` | `string` | Yes | |
| `grant_key_id` | `string` | Yes | The service grant's key (`key_…`) the controller runs the project's sandboxes with. |
| `state` | `"active" \| "suspended" \| "uninstalled" \| "closed"` | Yes | `suspended` when GitHub suspended the installation: no runner starts until it is unsuspended. `uninstalled` when the App was uninstalled and `closed` when the Pod organization was closed: every runner is deleted and the installation's warm state and cache are forgotten. |
| `connected_at` | `string` | Yes | |
| `connected_by` | `string` | Yes | The identity account that connected it. |
| `repositories` | `CiRepository[]` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`person_required`](https://docs.mapier.ai/pod/api/errors#person_required), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`conflict`](https://docs.mapier.ai/pod/api/errors#conflict), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`ci_account_not_servable`](https://docs.mapier.ai/pod/api/errors#ci_account_not_servable). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# One bake run's log (https://docs.mapier.ai/pod/ci/api/ci/get-ci-bake-log)
> The controller's own record of the bake, a line per thing it knows: what started it, the commit, the sandbox, each folder published, and how it ended with what went wrong.
**GET** `/v1/ci/bake-runs/{bake_run}/logs`
The controller's own record of the bake, a line per thing it knows: what started it, the commit, the sandbox, each folder published, and how it ended with what went wrong. The recipe's own output is Pod's exec stream, which nothing keeps yet. `not_found` outside the project.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/bake-runs/example/logs" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| ---------- | ----- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `bake_run` | path | `string` | Yes | The bake run's id (`pod-ci-bake-…`). |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
## Answer [#answer]
**200.** The log.
```json title="200"
{
"bake_run": "example",
"text": "example",
"truncated": false
}
```
| Field | Type | Always | What it is |
| ----------- | --------- | ------ | ---------- |
| `bake_run` | `string` | Yes | |
| `text` | `string` | Yes | |
| `truncated` | `boolean` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# An installation as GitHub reports it, and whether Pod CI can serve it (https://docs.mapier.ai/pod/ci/api/ci/get-ci-installation)
> Read from GitHub.
**GET** `/v1/ci/installations/{installation}`
Read from GitHub. `servable` is false for a personal account, an organization without runner groups, or a suspended installation, and `reason` says why in the controller's words. `connected_project` names the project the installation is connected to when the caller may read that project; an installation connected to a project the caller cannot read is not servable here, with a reason that names no project. `not_found` when GitHub has no such installation of the App.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/installations/1" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| -------------- | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `installation` | path | `integer` | Yes | The GitHub App installation. |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
## Answer [#answer]
**200.** The installation.
```json title="200"
{
"installation_id": 1,
"account": "example",
"account_type": "organization",
"servable": false,
"reason": null,
"connected_project": null
}
```
| Field | Type | Always | What it is |
| ------------------- | -------------------------- | ------ | ------------------------------ |
| `installation_id` | `integer` | Yes | |
| `account` | `string` | Yes | |
| `account_type` | `"organization" \| "user"` | Yes | |
| `servable` | `boolean` | Yes | |
| `reason` | `string \| null` | Yes | Why not |
| `connected_project` | `string \| null` | Yes | The project it is connected to |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# The end of one job's log, read from GitHub (https://docs.mapier.ai/pod/ci/api/ci/get-ci-job-log)
> At most 256 KiB of the log's end, read now from GitHub.
**GET** `/v1/ci/jobs/{job_id}/logs`
At most 256 KiB of the log's end, read now from GitHub. The controller holds no token for it: Pod mints one for this read alone (Actions, read, on the job's repository), follows GitHub's download to its address without the token, and revokes the token straight after. `not_found` for a job outside the project, a Buildkite job, and until GitHub has a log for the job.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/jobs/1/logs" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------- | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `job_id` | path | `integer` | Yes | GitHub's job id. |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
## Answer [#answer]
**200.** The log's end.
```json title="200"
{
"job_id": 1,
"text": "example",
"truncated": false,
"fetched_at": "2026-11-23T12:00:00.000Z",
"total_bytes": 0
}
```
| Field | Type | Always | What it is |
| ------------- | --------- | ------ | --------------------------------------------------------- |
| `job_id` | `integer` | Yes | |
| `text` | `string` | Yes | The log's end, starting at a character. |
| `truncated` | `boolean` | Yes | The log is longer than `text`. |
| `fetched_at` | `string` | Yes | When it was read from GitHub. |
| `total_bytes` | `integer` | No | The whole log's length as GitHub answered it. At least 0. |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# One job with its timings (https://docs.mapier.ai/pod/ci/api/ci/get-ci-job)
> One job with its timings
**GET** `/v1/ci/jobs/{job_id}`
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/jobs/1" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------- | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `job_id` | path | `integer` | Yes | GitHub's job id. |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
## Answer [#answer]
**200.** The job.
```json title="200"
{
"id": 1,
"run_id": 1,
"name": "example",
"repository": "example",
"label": "example",
"state": "queued",
"conclusion": null,
"runner": null,
"trust": null,
"queued_at": "2026-11-23T12:00:00.000Z",
"sandbox_ready_at": null,
"runner_online_at": null,
"started_at": null,
"completed_at": null,
"steps_started_at": null,
"steps_ended_at": null,
"waiting": null,
"billed_s": null,
"already_waiting": false,
"stopped_above_default_size": false,
"html_url": "example",
"completed_runner": {
"sandbox": "example",
"deleted_at": "2026-11-23T12:00:00.000Z"
}
}
```
| Field | Type | Always | What it is |
| ---------------------------- | ------------------------------------------ | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id` | `integer` | Yes | GitHub's job id. |
| `run_id` | `integer` | Yes | |
| `name` | `string` | Yes | The job's name in its workflow |
| `repository` | `string` | Yes | `owner/name` |
| `label` | `string` | Yes | The Pod label the job asked for, such as `pod-4`. |
| `state` | `"queued" \| "in_progress" \| "completed"` | Yes | |
| `conclusion` | `string \| null` | Yes | |
| `runner` | `string \| null` | Yes | The runner that took it. |
| `trust` | `"trusted" \| "untrusted" \| null` | Yes | |
| `queued_at` | `string` | Yes | GitHub's creation of the job |
| `sandbox_ready_at` | `string \| null` | Yes | When Pod reported the runner's sandbox restored and reset. |
| `runner_online_at` | `string \| null` | Yes | When the runner was registered and online. |
| `started_at` | `string \| null` | Yes | |
| `completed_at` | `string \| null` | Yes | |
| `steps_started_at` | `string \| null` | No | When the before-job hook asked. |
| `steps_ended_at` | `string \| null` | No | When the after-job hook reported. |
| `waiting` | `WaitReason \| null` | Yes | Why a queued job waits, while the controller holds it back. |
| `billed_s` | `integer \| null` | Yes | Seconds billed: job start to job end, rounded up; null until it ends. |
| `already_waiting` | `boolean` | No | The job landed on a waiting runner that was online before the job was queued. `started_at` minus `queued_at` is then GitHub's hand-off time. |
| `stopped_above_default_size` | `boolean` | No | The before-job hook failed it as a stranger's job on a larger runner. |
| `html_url` | `string` | Yes | The job's page on GitHub. |
| `completed_runner` | `object` | No | On the single job lookup, the retained runner whose sandbox Pod confirmed deleted in the current project and key mode. May be absent if the confirmation or runner record is unavailable. |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# The account's standing, its CI core limit, and why queued jobs wait (https://docs.mapier.ai/pod/ci/api/ci/get-ci-limits)
> `max_cores` is the CI core limit the controller acts on: the standing list's `max_ci_cores` once the account service publishes it, else the connection's settings.
**GET** `/v1/ci/limits`
`max_cores` is the CI core limit the controller acts on: the standing list's `max_ci_cores` once the account service publishes it, else the connection's settings. `waiting` has one row per repository and label whose queued jobs the controller holds back, with how many jobs and why.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/limits" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------- | ----- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
## Answer [#answer]
**200.** The limits.
```json title="200"
{
"standing": "good",
"max_cores": 1,
"cores_in_use": 1,
"job_time_limit_s": 1,
"waiting": [
{
"repository": "example",
"label": "example",
"jobs": 1,
"reason": {
"kind": "suspended"
}
}
]
}
```
| Field | Type | Always | What it is |
| ------------------ | ------------------------------------- | ------ | ------------------------------------------------------ |
| `standing` | `"good" \| "past_due" \| "suspended"` | Yes | |
| `max_cores` | `integer` | Yes | The most cores the project's runners may hold at once. |
| `cores_in_use` | `integer` | Yes | |
| `job_time_limit_s` | `integer` | Yes | |
| `waiting` | `object[]` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# One repository's settings (https://docs.mapier.ai/pod/ci/api/ci/get-ci-repository-settings)
> Whether a public repository is on the allow list, the largest runner a stranger's job gets on it, how long a failed trusted job's sandbox is kept, and whether the customer confirmed that GitHub's approval for first-time contributors stays on.
**GET** `/v1/ci/installations/{installation}/repositories/{repository_id}/settings`
Whether a public repository is on the allow list, the largest runner a stranger's job gets on it, how long a failed trusted job's sandbox is kept, and whether the customer confirmed that GitHub's approval for first-time contributors stays on. `not_found` for a repository the project does not serve.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/installations/1/repositories/1/settings" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------------- | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `installation` | path | `integer` | Yes | The GitHub App installation. |
| `repository_id` | path | `integer` | Yes | GitHub's repository id. |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
## Answer [#answer]
**200.** The settings.
```json title="200"
{
"allow_listed": false,
"default_label": "example",
"keep_failures_s": 0,
"contributor_approval_confirmed": false,
"public": false,
"served": false
}
```
| Field | Type | Always | What it is |
| -------------------------------- | --------- | ------ | ------------------------------------------------------------------------------------------------------------------------- |
| `allow_listed` | `boolean` | Yes | A public repository is served only while it is on the allow list. |
| `default_label` | `string` | Yes | The largest runner a stranger's job gets on an allow-listed public repository, such as `pod-4`. |
| `keep_failures_s` | `integer` | Yes | How long a failed trusted job's sandbox is kept for inspection; 0 keeps none. At least 0. |
| `contributor_approval_confirmed` | `boolean` | Yes | The customer confirmed GitHub's approval for first-time contributors stays on. |
| `public` | `boolean` | No | The repository's visibility on GitHub. |
| `served` | `boolean` | No | Runners are made for its jobs: a private repository, or a public one on the allow list, while the installation is served. |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# One workflow run, with each of its jobs and their timings (https://docs.mapier.ai/pod/ci/api/ci/get-ci-run)
> One workflow run, with each of its jobs and their timings
**GET** `/v1/ci/runs/{run_id}`
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/runs/1" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------- | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `run_id` | path | `integer` | Yes | GitHub's run id. |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
## Answer [#answer]
**200.** The run.
```json title="200"
{
"run_id": 1,
"repository": "example",
"jobs": [
{
"id": 1,
"run_id": 1,
"name": "example",
"repository": "example",
"label": "example",
"state": "queued",
"conclusion": null,
"runner": null,
"trust": null,
"queued_at": "2026-11-23T12:00:00.000Z",
"sandbox_ready_at": null,
"runner_online_at": null,
"started_at": null,
"completed_at": null,
"steps_started_at": null,
"steps_ended_at": null,
"waiting": null,
"billed_s": null,
"already_waiting": false,
"stopped_above_default_size": false,
"html_url": "example",
"completed_runner": {
"sandbox": "example",
"deleted_at": "2026-11-23T12:00:00.000Z"
}
}
]
}
```
| Field | Type | Always | What it is |
| ------------ | --------- | ------ | ---------- |
| `run_id` | `integer` | Yes | |
| `repository` | `string` | Yes | |
| `jobs` | `Job[]` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# Seconds billed in one month, by repository and label (https://docs.mapier.ai/pod/ci/api/ci/get-ci-usage)
> One row per repository and label: how many jobs ended in the month and the seconds billed for them, by the second from each job's start to its end.
**GET** `/v1/ci/usage`
One row per repository and label: how many jobs ended in the month and the seconds billed for them, by the second from each job's start to its end. Queue time is free, a runner that got no job is zero, and a stranger's job stopped on a larger runner is zero. Rows are paged like Pod's usage, by `limit` and `cursor`; every page repeats the period.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/usage" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------- | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
| `period` | query | `string` | No | The month, `YYYY-MM` in UTC. The current month when left out. |
| `limit` | query | `integer` | No | |
| `cursor` | query | `string` | No | The `next_cursor` of the previous page. |
## Answer [#answer]
**200.** Usage in the period.
```json title="200"
{
"period": "example",
"start": "2026-11-23T12:00:00.000Z",
"end": "2026-11-23T12:00:00.000Z",
"billing_mark": "example",
"data": [
{
"repository": "example",
"label": "example",
"jobs": 1,
"seconds": 1
}
],
"next_cursor": null
}
```
| Field | Type | Always | What it is |
| -------------- | ---------------- | ------ | ------------------------------------ |
| `period` | `string` | Yes | `YYYY-MM` |
| `start` | `string` | Yes | |
| `end` | `string` | Yes | |
| `billing_mark` | `string` | Yes | The billing mark CI's usage carries. |
| `data` | `object[]` | Yes | |
| `next_cursor` | `string \| null` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# The project's bake runs, newest first, with what each built and how it ended (https://docs.mapier.ai/pod/ci/api/ci/list-ci-bake-runs)
> A bake run is started by the service itself, never by a job, after a push to the default branch, a change of the runner image, the daily timer, or when a repository with warm folders has none yet (`reason`).
**GET** `/v1/ci/bake-runs`
A bake run is started by the service itself, never by a job, after a push to the default branch, a change of the runner image, the daily timer, or when a repository with warm folders has none yet (`reason`). It has no runner and no secrets, and builds either the repository's warm folders (`target.kind` = `folders`) or a whole-sandbox warm snapshot for one runner label (`snapshot`). `log` is the last thing that went wrong, in Pod's or the recipe's words. The sandbox is in the customer's own project.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/bake-runs" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| ------------ | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
| `repository` | query | `string` | No | Only this repository's bake runs, as `owner/name`. |
| `limit` | query | `integer` | No | |
| `cursor` | query | `string` | No | The `next_cursor` of the previous page. |
## Answer [#answer]
**200.** One page of bake runs.
```json title="200"
{
"data": [
{
"id": "example",
"repository": "example",
"reason": "push",
"target": {
"kind": "folders",
"label": "example"
},
"state": "wanted",
"outcome": null,
"commit": null,
"template": "example",
"sandbox": null,
"folders": [
{
"name": "example",
"path": "example",
"generation": null
}
],
"snapshot": null,
"log": null,
"created_at": "2026-11-23T12:00:00.000Z",
"state_at": "2026-11-23T12:00:00.000Z",
"started_at": null,
"ended_at": null
}
],
"next_cursor": null
}
```
| Field | Type | Always | What it is |
| ------------- | ---------------- | ------ | ---------- |
| `data` | `BakeRun[]` | Yes | |
| `next_cursor` | `string \| null` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# The GitHub App installations connected to the project (https://docs.mapier.ai/pod/ci/api/ci/list-ci-connections)
> Each installation connected to the project named by `project`, with its repositories and the rules the controller applies to each.
**GET** `/v1/ci/connections`
Each installation connected to the project named by `project`, with its repositories and the rules the controller applies to each. A project may hold several installations, one per GitHub account.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/connections" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------- | ----- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
## Answer [#answer]
**200.** The connections.
```json title="200"
{
"data": [
{
"installation_id": 1,
"account": "example",
"account_type": "organization",
"project": "example",
"grant_key_id": "example",
"state": "active",
"connected_at": "2026-11-23T12:00:00.000Z",
"connected_by": "example",
"repositories": [
{
"id": 1,
"full_name": "example",
"public": false,
"allow_listed": false,
"default_label": null
}
]
}
],
"next_cursor": null
}
```
| Field | Type | Always | What it is |
| ------------- | ---------------- | ------ | ---------- |
| `data` | `Connection[]` | Yes | |
| `next_cursor` | `string \| null` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# The sets of copies one job's steps asked for, oldest first (https://docs.mapier.ai/pod/ci/api/ci/list-ci-job-shards)
> Each set as the step itself follows it (`/v1/ci/runtime/shards/{shard_set}`): its copies' states, exit codes and the report files copied back.
**GET** `/v1/ci/jobs/{job_id}/shards`
Each set as the step itself follows it (`/v1/ci/runtime/shards/{shard_set}`): its copies' states, exit codes and the report files copied back. One page; `next_cursor` is always null. `not_found` for a job outside the project.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/jobs/1/shards" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------- | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `job_id` | path | `integer` | Yes | GitHub's job id. |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
## Answer [#answer]
**200.** The job's sets.
```json title="200"
{
"data": [
{
"id": "example",
"count": 1,
"state": "forking",
"copies": [
{
"index": 1,
"sandbox": null,
"state": "running",
"exit_code": null,
"collected": ["example"],
"left_behind": null
}
],
"error": null
}
],
"next_cursor": null
}
```
| Field | Type | Always | What it is |
| ------------- | ---------------- | ------ | ---------- |
| `data` | `ShardSet[]` | Yes | |
| `next_cursor` | `string \| null` | No | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# The project's jobs, newest first, with their timings (https://docs.mapier.ai/pod/ci/api/ci/list-ci-jobs)
> The project's jobs, newest first, with their timings
**GET** `/v1/ci/jobs`
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/jobs" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| ------------ | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
| `repository` | query | `string` | No | Only this repository's jobs, as `owner/name`. |
| `limit` | query | `integer` | No | |
| `cursor` | query | `string` | No | The `next_cursor` of the previous page. |
## Answer [#answer]
**200.** One page of jobs.
```json title="200"
{
"data": [
{
"id": 1,
"run_id": 1,
"name": "example",
"repository": "example",
"label": "example",
"state": "queued",
"conclusion": null,
"runner": null,
"trust": null,
"queued_at": "2026-11-23T12:00:00.000Z",
"sandbox_ready_at": null,
"runner_online_at": null,
"started_at": null,
"completed_at": null,
"steps_started_at": null,
"steps_ended_at": null,
"waiting": null,
"billed_s": null,
"already_waiting": false,
"stopped_above_default_size": false,
"html_url": "example",
"completed_runner": {
"sandbox": "example",
"deleted_at": "2026-11-23T12:00:00.000Z"
}
}
],
"next_cursor": null
}
```
| Field | Type | Always | What it is |
| ------------- | ---------------- | ------ | ---------- |
| `data` | `Job[]` | Yes | |
| `next_cursor` | `string \| null` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# The customer's repositories, why their jobs wait, and the account's limit (https://docs.mapier.ai/pod/ci/api/ci/list-ci-repositories)
> Each connected repository with whether it is served (a public repository only while it is on the allow list), its default size for strangers' jobs, and, per label, why its queued jobs wait: the account's core limit, a suspended account, or a stranger's job queued for a size above the default.
**GET** `/v1/ci/repositories`
Each connected repository with whether it is served (a public repository only while it is on the allow list), its default size for strangers' jobs, and, per label, why its queued jobs wait: the account's core limit, a suspended account, or a stranger's job queued for a size above the default. `account` is the standing and the CI core limit the controller acts on, and where they came from.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/repositories" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------- | ----- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
## Answer [#answer]
**200.** The repositories.
```json title="200"
{
"account": {
"standing": "good",
"max_cores": 1,
"cores_in_use": 1,
"source": "example"
},
"data": [
{
"repository": "example",
"public": false,
"allow_listed": false,
"served": false,
"default_size": "example",
"waiting": [
{
"label": "example",
"jobs": 1,
"reason": {
"kind": null
}
}
]
}
]
}
```
| Field | Type | Always | What it is |
| --------- | ---------- | ------ | ---------- |
| `account` | `object` | Yes | |
| `data` | `object[]` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# One repository's bake runs, newest first, in the dashboard's summary (https://docs.mapier.ai/pod/ci/api/ci/list-ci-repository-bake-runs)
> The repository page's view of `/v1/ci/bake-runs`, whose `BakeRun` holds every field.
**GET** `/v1/ci/installations/{installation}/repositories/{repository_id}/bake-runs`
The repository page's view of `/v1/ci/bake-runs`, whose `BakeRun` holds every field. `cursor` is the id the previous page ended at; one this route did not give is `invalid`.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/installations/1/repositories/1/bake-runs" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------------- | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `installation` | path | `integer` | Yes | The GitHub App installation. |
| `repository_id` | path | `integer` | Yes | GitHub's repository id. |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
| `limit` | query | `integer` | No | |
| `cursor` | query | `string` | No | The `next_cursor` of the previous page. |
## Answer [#answer]
**200.** One page of bake runs.
```json title="200"
{
"data": [
{
"id": "example",
"repository": "example",
"trigger": "push",
"commit": "example",
"state": "queued",
"started_at": null,
"ended_at": null,
"generation": null,
"error": null,
"target": {
"kind": "folders",
"label": "example"
},
"generations": ["example"],
"created_at": "2026-11-23T12:00:00.000Z"
}
],
"next_cursor": null
}
```
| Field | Type | Always | What it is |
| ------------- | --------------------- | ------ | ---------- |
| `data` | `RepositoryBakeRun[]` | Yes | |
| `next_cursor` | `string \| null` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# One repository's warm generations, newest first, in the dashboard's summary (https://docs.mapier.ai/pod/ci/api/ci/list-ci-repository-warm-generations)
> The repository page's view of `/v1/ci/warm-generations`: each warm folder's generations (`kind` = `folders`) and each runner label's warm snapshots (`snapshot`).
**GET** `/v1/ci/installations/{installation}/repositories/{repository_id}/warm-generations`
The repository page's view of `/v1/ci/warm-generations`: each warm folder's generations (`kind` = `folders`) and each runner label's warm snapshots (`snapshot`). `state` is `current` for what a trusted job gets now, `previous` for a kept generation that is not, and `retired` for one no runner is started from again (a broken snapshot, or one baked on another runner image than the one in use). `cursor` is the id the previous page ended at; one this route did not give is `invalid`.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/installations/1/repositories/1/warm-generations" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------------- | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `installation` | path | `integer` | Yes | The GitHub App installation. |
| `repository_id` | path | `integer` | Yes | GitHub's repository id. |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
| `limit` | query | `integer` | No | |
| `cursor` | query | `string` | No | The `next_cursor` of the previous page. |
## Answer [#answer]
**200.** One page of warm generations.
```json title="200"
{
"data": [
{
"id": "example",
"kind": "folders",
"system": "linux",
"commit": "example",
"recipe_sha256": "example",
"image_version": "example",
"size_bytes": 0,
"created_at": "2026-11-23T12:00:00.000Z",
"state": "current",
"bake_run": "example",
"repository": "example",
"folder": null,
"label": null
}
],
"next_cursor": null
}
```
| Field | Type | Always | What it is |
| ------------- | ---------------------------- | ------ | ---------- |
| `data` | `RepositoryWarmGeneration[]` | Yes | |
| `next_cursor` | `string \| null` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# The reuses of an earlier pass given in the project, newest first (https://docs.mapier.ai/pod/ci/api/ci/list-ci-reuses)
> Each row is one check a trusted pull-request job skipped because the same check passed on the same declared inputs and the same runner image.
**GET** `/v1/ci/reuses`
Each row is one check a trusted pull-request job skipped because the same check passed on the same declared inputs and the same runner image. `from` is the pass reused. Each reuse is also metered as one `ci_pass_reuse` usage event, with no price yet.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/reuses" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| ------------ | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
| `repository` | query | `string` | No | Only this repository's reuses, as `owner/name`. |
| `limit` | query | `integer` | No | |
| `cursor` | query | `string` | No | The `next_cursor` of the previous page. |
## Answer [#answer]
**200.** One page of reuses.
```json title="200"
{
"data": [
{
"id": "example",
"repository": "example",
"check": "example",
"job_id": 1,
"run_id": 1,
"commit": "example",
"image": "example",
"inputs_sha256": "example",
"from": {
"commit": "example",
"run_id": 1,
"job_id": 1,
"passed_at": "2026-11-23T12:00:00.000Z"
},
"at": "2026-11-23T12:00:00.000Z"
}
],
"next_cursor": null
}
```
| Field | Type | Always | What it is |
| ------------- | ---------------- | ------ | ---------- |
| `data` | `PassReuse[]` | Yes | |
| `next_cursor` | `string \| null` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# The project's live runners and the state each is in, newest first (https://docs.mapier.ai/pod/ci/api/ci/list-ci-runners)
> The project's live runners and the state each is in, newest first
**GET** `/v1/ci/runners`
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/runners" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------- | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
| `limit` | query | `integer` | No | |
| `cursor` | query | `string` | No | The `next_cursor` of the previous page. |
## Answer [#answer]
**200.** One page of runners.
```json title="200"
{
"data": [
{
"id": "example",
"repository": "example",
"label": "example",
"size": "example",
"system": "linux",
"warm_generation": null,
"waiting": false,
"cores": 1,
"state": "wanted",
"state_at": "2026-11-23T12:00:00.000Z",
"created_at": "2026-11-23T12:00:00.000Z",
"sandbox": null,
"job_id": null,
"trust": null,
"delete_reason": null,
"last_error": null
}
],
"next_cursor": null
}
```
| Field | Type | Always | What it is |
| ------------- | ---------------- | ------ | ---------- |
| `data` | `Runner[]` | Yes | |
| `next_cursor` | `string \| null` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# The warm state bake runs published, newest first, and what a trusted job gets now (https://docs.mapier.ai/pod/ci/api/ci/list-ci-warm-generations)
> Each warm folder's generations (`kind` = `folder`) and each runner label's warm snapshots (`snapshot`), as many as the service keeps.
**GET** `/v1/ci/warm-generations`
Each warm folder's generations (`kind` = `folder`) and each runner label's warm snapshots (`snapshot`), as many as the service keeps. `in_use` marks what a trusted job gets now: a folder's newest generation, and a label's newest snapshot that is not broken and was baked on the runner image in use. An untrusted job never gets any of it. All of it lives in the customer's own Pod project.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/warm-generations" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| ------------ | ----- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
| `repository` | query | `string` | No | Only this repository's warm state, as `owner/name`. |
## Answer [#answer]
**200.** Every kept generation. One page; `next_cursor` is always null.
```json title="200"
{
"data": [
{
"id": "example",
"kind": "folder",
"repository": "example",
"folder": null,
"label": null,
"commit": "example",
"template": "example",
"bake_run": "example",
"published_at": "2026-11-23T12:00:00.000Z",
"size_bytes": null,
"broken": false,
"in_use": false
}
],
"next_cursor": null
}
```
| Field | Type | Always | What it is |
| ------------- | ------------------ | ------ | ---------- |
| `data` | `WarmGeneration[]` | Yes | |
| `next_cursor` | `string \| null` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# Open a kept failed sandbox to a public key until its hold ends (https://docs.mapier.ai/pod/ci/api/ci/open-kept-runner)
> A failed trusted job's sandbox is kept for the repository's `keep_failures_s`.
**POST** `/v1/ci/runners/{runner}/access`
**Not available yet.** Failed sandboxes are kept, but opening one over SSH is refused until Pod's SSH access is offered.
A failed trusted job's sandbox is kept for the repository's `keep_failures_s`. The person who started the run, or an admin of the repository (read from GitHub), may let one OpenSSH public key in until the hold ends. Until Pod's SSH and the check of who is calling are in place, every open is refused.
For people only: a signed-in person's token makes this call. An API key is refused with `unauthorized`.
## Request [#request]
```bash
curl -X POST "https://api.pod.mapier.ai/v1/ci/runners/example/access" \
-H "Authorization: Bearer $POD_PERSON_TOKEN" \
-H "Content-Type: application/json" \
-d '{"public_key":"example"}'
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| -------- | ---- | -------- | -------- | ---------- |
| `runner` | path | `string` | Yes | |
## Body [#body]
| Field | Type | Required | What it is |
| ------------ | -------- | -------- | ---------------------------- |
| `public_key` | `string` | Yes | One OpenSSH public key line. |
## Answer [#answer]
**200.** Where to connect, and until when.
```json title="200"
{
"host": "example",
"port": 1,
"user": "example",
"expires_at": "2026-11-23T12:00:00.000Z"
}
```
| Field | Type | Always | What it is |
| ------------ | --------- | ------ | ---------- |
| `host` | `string` | Yes | |
| `port` | `integer` | Yes | |
| `user` | `string` | Yes | |
| `expires_at` | `string` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# Change one repository's settings (https://docs.mapier.ai/pod/ci/api/ci/update-ci-repository-settings)
> People only, whose role holds `ci:write` (owners, admins and members), with a second factor proved in the last few minutes, as connecting an installation takes; an API key is refused with `person_required`.
**PATCH** `/v1/ci/installations/{installation}/repositories/{repository_id}/settings`
People only, whose role holds `ci:write` (owners, admins and members), with a second factor proved in the last few minutes, as connecting an installation takes; an API key is refused with `person_required`. Only the fields sent change: changes made at the same time are applied one after the other, each to the other's result. A repository joins the allow list only with `contributor_approval_confirmed: true` in the same change, whether it is public or private now (GitHub may make a private one public later), and an allow-listed repository cannot drop the confirmation alone: either is `invalid` with `field` = `contributor_approval_confirmed`. `default_label` is one of Pod's CI sizes no larger than `pod-4` (strangers' jobs run at the default size at most): `pod-2` or `pod-4`; any other is `invalid` with `field` = `default_label`. `keep_failures_s` is at most 43200, 12 hours; more is `invalid` with `field` = `keep_failures_s`. The change is kept, with who made it, and wins over the controller's settings file from then on. The answer is the settings as served now.
For people only: a signed-in person with a fresh second factor makes this call, from the dashboard. Any API key is refused with `person_required`.
## Request [#request]
```bash
curl -X PATCH "https://api.pod.mapier.ai/v1/ci/installations/1/repositories/1/settings" \
-H "Authorization: Bearer $POD_PERSON_TOKEN" \
-H "Content-Type: application/json" \
-d '{"allow_listed":true}'
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| --------------- | ----- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `installation` | path | `integer` | Yes | The GitHub App installation. |
| `repository_id` | path | `integer` | Yes | GitHub's repository id. |
| `project` | query | `string` | No | The Pod project (`prj_…`) whose CI is read. An API key reaches only its own project, which is taken when this is left out; a person names the organization in the `Pod-Organisation` header, and must reach the project as a member (the controller asks Pod's account service with the person's own token). |
## Body [#body]
Only the fields sent change.
| Field | Type | Required | What it is |
| -------------------------------- | -------------------- | -------- | -------------------------------------------------------------------------------------------- |
| `allow_listed` | `boolean` | No | |
| `default_label` | `"pod-2" \| "pod-4"` | No | One of Pod's CI sizes no larger than `pod-4`. |
| `keep_failures_s` | `integer` | No | At most 12 hours; 0 keeps none. From 0 to 43200. |
| `contributor_approval_confirmed` | `boolean` | No | Required, `true`, in the change that puts a repository on the allow list, public or private. |
## Answer [#answer]
**200.** The settings, changed.
```json title="200"
{
"allow_listed": false,
"default_label": "example",
"keep_failures_s": 0,
"contributor_approval_confirmed": false,
"public": false,
"served": false
}
```
| Field | Type | Always | What it is |
| -------------------------------- | --------- | ------ | ------------------------------------------------------------------------------------------------------------------------- |
| `allow_listed` | `boolean` | Yes | A public repository is served only while it is on the allow list. |
| `default_label` | `string` | Yes | The largest runner a stranger's job gets on an allow-listed public repository, such as `pod-4`. |
| `keep_failures_s` | `integer` | Yes | How long a failed trusted job's sandbox is kept for inspection; 0 keeps none. At least 0. |
| `contributor_approval_confirmed` | `boolean` | Yes | The customer confirmed GitHub's approval for first-time contributors stays on. |
| `public` | `boolean` | No | The repository's visibility on GitHub. |
| `served` | `boolean` | No | Runners are made for its jobs: a private repository, or a public one on the allow list, while the installation is served. |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`person_required`](https://docs.mapier.ai/pod/api/errors#person_required), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# API reference (https://docs.mapier.ai/pod/ci/api)
> Every call of Pod CI/QA's API, with its fields, its answer and its errors
Read your CI's jobs, runners, repositories and usage, change a repository's settings, start QA runs and read their results, and manage a repository's cache. Every call goes to Pod's API at `https://api.pod.mapier.ai`, beside Pod's own calls, and is signed the same way: an API key in `Authorization: Bearer`, with the scope each page names, or a signed-in person in the dashboard. [Keys and projects](https://docs.mapier.ai/pod/sandboxes/keys-and-projects) explains keys and scopes.
Answers are JSON. A refusal names its error from Pod's one [error list](https://docs.mapier.ai/pod/api/errors).
Runs, jobs, runners, repositories and usage of one customer's CI.
QA runs.
A repository's cache entries.
# Stop a QA run (https://docs.mapier.ai/pod/ci/api/qa/cancel-qa-run)
> Systems not started end `cancelled`; a running one stops before its next step.
**POST** `/v1/ci/qa/runs/{qa_run}/cancel`
Systems not started end `cancelled`; a running one stops before its next step.
A key with the `ci:write` scope.
## Request [#request]
```bash
curl -X POST "https://api.pod.mapier.ai/v1/ci/qa/runs/qar_3ahrz6dmv29gqy5ckt18fp/cancel" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| -------- | ---- | -------- | -------- | ---------- |
| `qa_run` | path | `string` | Yes | |
## Answer [#answer]
**200.** The run.
```json title="200"
{
"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 [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# One QA run, with a row per step on each system (https://docs.mapier.ai/pod/ci/api/qa/get-qa-run)
> The same result the GitHub checks show, as JSON for a coding agent to read.
**GET** `/v1/ci/qa/runs/{qa_run}`
The same result the GitHub checks show, as JSON for a coding agent to read.
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/qa/runs/qar_3ahrz6dmv29gqy5ckt18fp" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| -------- | ---- | -------- | -------- | ---------- |
| `qa_run` | path | `string` | Yes | |
## Answer [#answer]
**200.** The run.
```json title="200"
{
"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 [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# The screenshot a step was judged from (https://docs.mapier.ai/pod/ci/api/qa/get-qa-screenshot)
> The screenshot a step was judged from
**GET** `/v1/ci/qa/runs/{qa_run}/screenshots/{screenshot}`
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/qa/runs/qar_3ahrz6dmv29gqy5ckt18fp/screenshots/example" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| ------------ | ---- | -------- | -------- | ----------------------------------------------- |
| `qa_run` | path | `string` | Yes | |
| `screenshot` | path | `string` | Yes | A step's `screenshot`, such as `android-1.png`. |
## Answer [#answer]
**200.** The image.
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# The customer's QA runs, newest first (https://docs.mapier.ai/pod/ci/api/qa/list-qa-runs)
> The customer's QA runs, newest first
**GET** `/v1/ci/qa/runs`
A key with the `ci:read` scope.
## Request [#request]
```bash
curl "https://api.pod.mapier.ai/v1/ci/qa/runs" \
-H "Authorization: Bearer $POD_API_KEY"
```
## Parameters [#parameters]
| Name | In | Type | Required | What it is |
| ------------ | ----- | --------- | -------- | --------------------------------------------- |
| `repository` | query | `string` | No | Only this repository's runs, as `owner/name`. |
| `limit` | query | `integer` | No | |
| `cursor` | query | `string` | No | The `next_cursor` of the previous page. |
## Answer [#answer]
**200.** One page of runs.
```json title="200"
{
"data": [
{
"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": null,
"do": null,
"expect": null,
"status": null,
"reason": null,
"screenshot": null,
"recording_at_s": null,
"started_at": null,
"ended_at": null,
"actions": null,
"replayed": null,
"looks": null
}
]
}
]
}
],
"next_cursor": null
}
```
| Field | Type | Always | What it is |
| ------------- | ---------------- | ------ | ---------- |
| `data` | `QaRun[]` | Yes | |
| `next_cursor` | `string \| null` | Yes | |
## Errors [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# Start a QA run through the API (https://docs.mapier.ai/pod/ci/api/qa/start-qa-run)
> 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 [#request]
```bash
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 [#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 [#answer]
**202.** Started.
```json title="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
}
]
}
]
}
]
}
```
| 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 [#errors]
The refusals this call is known for: [`unauthorized`](https://docs.mapier.ai/pod/api/errors#unauthorized), [`forbidden`](https://docs.mapier.ai/pod/api/errors#forbidden), [`not_found`](https://docs.mapier.ai/pod/api/errors#not_found), [`invalid`](https://docs.mapier.ai/pod/api/errors#invalid), [`unavailable`](https://docs.mapier.ai/pod/api/errors#unavailable). Any call can also answer `unauthorized`, `rate_limited`, `unavailable` or `internal`; the [error list](https://docs.mapier.ai/pod/api/errors) says what each means and when to send the call again.
# Buildkite (https://docs.mapier.ai/pod/ci/guides/buildkite)
> Run Buildkite pipeline steps on Pod CI's runners by naming a size as the step's queue
**Not available yet.** Pod CI/QA is open to invited customers until public sign-up opens.
Pod CI also runs Buildkite pipelines. Each step that names a Pod CI size as its queue runs in a fresh sandbox of its own, as a GitHub Actions job does, and is billed the same way.
```yaml title=".buildkite/pipeline.yml"
steps:
- label: "Test"
command: make test
agents:
queue: pod-4
```
The queues are the [runner labels](https://docs.mapier.ai/pod/ci/guides/runners): `pod-2`, `pod-4`, `pod-8`, and the Windows and macOS sizes once they are offered.
## Connect a Buildkite organization [#connect-a-buildkite-organization]
Mapier sets up Buildkite connections. Contact Mapier with your Buildkite organization and the pipelines to serve, and you get the webhook address to add in Buildkite.
## How it differs from GitHub Actions [#how-it-differs-from-github-actions]
- A Buildkite agent is started for one scheduled job, with an agent token made for that sandbox alone and revoked as soon as Buildkite shows the agent on the job, so no other job can land on it.
- Builds started from Buildkite's own page, API or schedules count as trusted. A build started by a trigger step takes the trust of the build that triggered it, so a pull request from a fork can't trigger a trusted build.
- Warm folders and kept sandboxes are for GitHub repositories only.
## Windows agents [#windows-agents]
**Not available yet.** Windows queues for Buildkite start once Pod offers Windows sandboxes.
# Cache (https://docs.mapier.ai/pod/ci/guides/cache)
> actions/cache and the setup actions, served next to the runners, and a pull-through mirror for Docker Hub
Your workflows keep using `actions/cache` and the `setup-*` actions as they are. On a Pod CI runner, the cache they talk to sits beside the runners instead of across the internet.
**Not available yet.** Until the cache beside the runners is switched on, jobs use GitHub's own cache, with no change to your workflows.
## How entries are scoped [#how-entries-are-scoped]
The same way GitHub scopes them:
- A run reads its own branch's entries and the default branch's.
- A pull request also reads its base branch's, and saves only under its own merge ref, so its entries stay apart from the default branch's.
- `pull_request_target`, `issue_comment` and `workflow_run` read the default branch and save nothing.
- A pull request from a fork can read the default branch's entries, and saves only where nobody else reads.
The scope comes from GitHub's record of the job, never from what the job sends, and a job's access ends within half a minute of the job's end.
## Limits [#limits]
GitHub's own: 10 GB per repository. Entries nobody used for 7 days are removed, then the least recently used once a repository is over its size.
Entries are stored encrypted under a key of your own, which is destroyed when you remove Pod CI's App or close your organization.
## See and delete entries [#see-and-delete-entries]
**CI** › **Repositories** in the [dashboard](https://pod.mapier.ai/app) lists a repository's entries, and deletes one. From the command line:
```sh
mpod ci caches list
mpod ci caches delete
```
Deleting needs `ci:write`.
## Docker Hub mirror [#docker-hub-mirror]
Runners pull public images from Docker Hub through a mirror beside them, so runners that share outbound addresses don't run into Docker Hub's pull limits. Images are checked against their digest before they are kept.
# Keep failures (https://docs.mapier.ai/pod/ci/guides/keep-failures)
> Keep a failed job's sandbox asleep for a while, and open it over SSH to see what went wrong
When a trusted job fails, Pod CI can keep its sandbox instead of deleting it: put to sleep as it was at the end of the job, and held for a time you choose, so you can look inside.
## Turn it on for a repository [#turn-it-on-for-a-repository]
It is off until you turn it on. A newly connected repository keeps no failed sandbox: its `keep_failures_s` setting, how long a failed job's sandbox is held in seconds, is `0`. Set it to hold one for up to 43,200 seconds, 12 hours; `0` turns it off again. Choose a time in **CI** › **Repositories** in the [dashboard](https://pod.mapier.ai/app), or set any number of seconds in that range:
```sh
mpod ci repositories settings set --keep-failures-s 3600
```
More than 43,200 is refused as `invalid`, naming `keep_failures_s`. Changing a repository's settings takes a person whose role holds `ci:write` (owners, admins and members), with a second factor proved in the last few minutes. An API key is refused with `person_required`. The change is kept with who made it.
A sandbox is kept only when the job failed and was trusted. It is never kept for an untrusted job, such as a pull request from a fork, whatever the setting says, nor while the account is past due. Kept sandboxes are for GitHub repositories only, not Buildkite pipelines.
## Open a kept sandbox [#open-a-kept-sandbox]
**Not available yet.** Failed sandboxes are kept, but opening one over SSH is refused until Pod's SSH access is offered.
The person who started the run, or an admin of the repository on GitHub, can let one OpenSSH public key in until the hold ends:
```sh
mpod ci kept open pod-ci-… --public-key ~/.ssh/id_ed25519.pub
```
The sandbox wakes, and the answer says where to connect and until when. The same call is [open a kept runner](https://docs.mapier.ai/pod/ci/api/ci/open-kept-runner).
## What it costs [#what-it-costs]
The seconds a sandbox is kept show on its runner in your [usage](https://docs.mapier.ai/pod/ci/guides/limits-and-usage).
# Limits and usage (https://docs.mapier.ai/pod/ci/guides/limits-and-usage)
> The limits on how many runners you have at once, why a job waits, and where to see what your builds used
## Limits [#limits]
| Limit | Value | When it is reached |
| --------------------------------------------- | ----- | --------------------------------------------------- |
| Cores in use at once, across all your runners | 8 | New jobs wait in the queue until a running job ends |
**Not available yet.** macOS runners start once Pod's Macs are offered.
When macOS runners are offered, you can run 2 at once, counted apart from the core limit; new macOS jobs wait.
A runner counts its cores against the limit for as long as it lives, and so does each copy of a sharded job. To raise a limit, contact Mapier.
**Not available yet.** The pod-16 runner, a whole server for one job, is not offered yet.
The default limit of 8 cores is below the 16 cores a `pod-16` runner takes. Ask Mapier to raise your limit before you use `pod-16`: until then its jobs wait in the queue.
An account that is suspended starts no new runners. Jobs already running finish.
**CI** › **Limits** in the [dashboard](https://pod.mapier.ai/app) shows your limits and what is in use now, and **CI** › **Jobs** says why each waiting job waits. The same are in the API: [get your limits](https://docs.mapier.ai/pod/ci/api/ci/get-ci-limits) and [list jobs](https://docs.mapier.ai/pod/ci/api/ci/list-ci-jobs).
## Usage [#usage]
**CI** › **Usage** shows the month's usage by repository and runner label. Ask for any month with [get usage](https://docs.mapier.ai/pod/ci/api/ci/get-ci-usage), `GET /v1/ci/usage?period=YYYY-MM`, or `mpod ci usage --period YYYY-MM`.
| Kind | What it counts |
| ----------------- | ---------------------------------------------------------------------- |
| `ci_runner` | A runner's seconds, from the job's start to its end |
| `ci_shard_copy` | A copy of a job made to shard its tests, as a runner of the job's size |
| `ci_bake` | A bake run that fills warm folders |
| `ci_warm_storage` | The warm folders kept for your repositories |
| `ci_pass_reuse` | A check that reused an earlier pass instead of running |
| `ci_qa_sandbox` | The sandboxes a QA run used |
| `ci_qa_model` | The model's work in a QA run |
Usage goes to your Pod organization's bill, beside your sandboxes. Prices are on [Runner costs](https://docs.mapier.ai/pod/ci/guides/runners-and-costs).
# mpod ci (https://docs.mapier.ai/pod/ci/guides/mpod-ci)
> Every Pod CI/QA call from your terminal, with the mpod command line
`mpod ci` covers every call of the [CI API](https://docs.mapier.ai/pod/ci/api) that a customer makes. It ships with [`mpod`](https://docs.mapier.ai/pod/sandboxes/mpod), and signs in the same way.
## Signing in [#signing-in]
- **A key:** set `POD_API_KEY` to a key with `ci:read`, or `ci:write` to change anything. A key reaches only its own project.
- **A person:** `mpod login`, then name the project with `--project prj_…` and the organization with `--organisation org_…`.
Three commands are for people only, because they need a fresh second factor: `connections connect`, `repositories settings set` and `kept open`. With only an API key they are refused before anything is sent.
Output is a table in a terminal and Pod CI's JSON with `--json` or in a pipe. Lists take `--limit`, `--cursor` and `--all`, and `ls` works as `list`.
## Commands [#commands]
| Command | What it does |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| `mpod ci repositories` | List the connected repositories |
| `mpod ci repositories settings get ` | Read a repository's settings |
| `mpod ci repositories settings set [--allow-listed true\|false] [--default-label pod-2\|pod-4] [--keep-failures-s N] [--contributor-approval-confirmed true\|false]` | Change a repository's settings |
| `mpod ci repositories warm-generations ` | List a repository's warm folder generations |
| `mpod ci repositories bake-runs ` | List a repository's bake runs |
| `mpod ci connections list` | List GitHub connections |
| `mpod ci connections connect --installation N --grant-key key_…` | Connect a GitHub installation |
| `mpod ci installations get ` | Read an installation, and whether Pod CI can serve it |
| `mpod ci jobs list [--repository owner/name]` | List jobs, newest first |
| `mpod ci jobs get ` | Read a job and its times |
| `mpod ci jobs logs [--out FILE]` | Print the end of a job's log |
| `mpod ci jobs shards ` | List the copies a job asked for |
| `mpod ci runs get ` | Read a workflow run |
| `mpod ci runners` | List the runners running now |
| `mpod ci usage [--period YYYY-MM]` | Read a month's usage |
| `mpod ci limits` | Read your limits and what is in use |
| `mpod ci reuses list [--repository]` | List checks that reused an earlier pass |
| `mpod ci bake-runs list [--repository]` | List bake runs |
| `mpod ci bake-runs logs [--out FILE]` | Print a bake run's log |
| `mpod ci warm-generations list [--repository]` | List warm folder generations |
| `mpod ci qa runs create --plan FILE --plan-path P --repository owner/name --build KEY=VALUE,…` | Start a QA run |
| `mpod ci qa runs list [--repository]` | List QA runs |
| `mpod ci qa runs get ` | Read a QA run and its steps |
| `mpod ci qa runs cancel ` | Cancel a QA run |
| `mpod ci qa runs screenshots get [--out FILE]` | Download a QA run's screenshot |
| `mpod ci caches list ` | List a repository's cache entries |
| `mpod ci caches delete ` | Delete a cache entry |
| `mpod ci kept open --public-key FILE` | Let a public key into a kept sandbox |
`--public-key -` reads the key from standard input. Logs print control characters other than newlines and tabs as `?`, so a log never moves your terminal; `--out FILE` writes the text as it came.
# Reuse and sharding (https://docs.mapier.ai/pod/ci/guides/pass-reuse-and-sharding)
> Skip a check whose inputs already passed, and split a long test suite across copies of the job
## Reuse an earlier pass [#reuse-an-earlier-pass]
A check whose inputs haven't changed since it last passed doesn't need to run again. Declare each check's inputs in `.pod/checks.json`, on the branch your pull requests merge into:
```json title=".pod/checks.json"
{
"version": 1,
"checks": {
"unit": { "inputs": ["src/**/*.rs", "Cargo.toml", "Cargo.lock"] },
"docs": { "inputs": ["docs/**"] }
}
}
```
Then make the check's first step ask whether it may reuse, and skip the rest on a reuse:
```yaml title=".github/workflows/test.yml"
jobs:
unit:
runs-on: pod-4
steps:
- uses: actions/checkout@v4
- id: reuse
run: pod-ci-helper reuse --check unit
- if: steps.reuse.outputs.reused != 'true'
run: cargo test
```
The step writes `reused` (`true` or `false`) and, on a reuse, `reused-from`, the commit the check passed on. It never fails the job: with no answer in 20 seconds, the check runs.
### The file [#the-file]
- `version` is `1`. At most 200 checks; a field the format doesn't name makes the file unreadable.
- A check's name is 1 to 64 letters, digits, `.`, `_` or `-`, the name the step passes to `--check`. It doesn't have to be the job's name.
- `inputs` lists 1 to 100 glob patterns, relative to the repository's root. `*` matches within one part of a path, `?` one character, and `**` any number of parts.
- The workflow file that runs the check is always an input.
### When a check is reused [#when-a-check-is-reused]
Pod CI decides from GitHub's facts, never from the job:
- Only a trusted pull request's job may reuse. The default branch always runs every check, and untrusted jobs neither reuse nor record a pass.
- The file is read from the base branch, never from the pull request.
- The inputs are hashed at the commit the job runs on: GitHub's test merge of the pull request into its base. A change on the base branch to a declared input means the check runs.
- The job must start from the same runner image as the pass. A new image, or a job whose image Pod CI can't tell, means the check runs.
- A file that doesn't read, a check it doesn't name, or a check with no matching files means the check runs.
[List reuses](https://docs.mapier.ai/pod/ci/api/ci/list-ci-reuses), or `mpod ci reuses list`, shows the checks that were reused and the pass each one reused.
## Shard a test suite [#shard-a-test-suite]
**Not available yet.** Sharding needs forks with a first action and sandbox groups from Pod; until then the step fails with a message saying so.
A long test suite can run as several copies of the same job. Each copy is a fork of the job's sandbox as it is when you ask, so it starts with everything the job has done so far: the checkout, the installed packages, a database that is migrated and running.
```yaml title=".github/workflows/test.yml"
jobs:
test:
runs-on: pod-4
steps:
- uses: actions/checkout@v4
- run: pnpm install && pnpm db:migrate
- uses: Mapier-Labs/pod-ci-qa/packages/shard-action@main
with:
count: 3
run: uv run pytest -p pytest_pod_shard
```
Each copy's command gets `POD_CI_SHARD_INDEX` (from 0), `POD_CI_SHARD_COUNT` and `POD_CI_SHARD_OUT`. What a copy leaves in `POD_CI_SHARD_OUT`, such as JUnit files or Playwright's blob reports, is copied back under `out-dir/shard-/` when it ends. The step passes only if every copy passed.
Add-ons pick each copy's slice of the tests: `pytest_pod_shard` for pytest, and one for Playwright that sets its `shard` and blob reporter.
- At most 8 copies a job.
- Copies count against your [core limit](https://docs.mapier.ai/pod/ci/guides/limits-and-usage) and are billed as runners of the job's size.
- On a public repository, a job from outside the repository may not shard.
[List a job's shards](https://docs.mapier.ai/pod/ci/api/ci/list-ci-job-shards), or `mpod ci jobs shards `, shows the copies a job asked for.
# Quickstart (https://docs.mapier.ai/pod/ci/guides/quickstart)
> Connect your GitHub organization to Pod CI, change runs-on, and run your first job on Pod
**Not available yet.** Pod CI/QA is open to invited customers until public sign-up opens.
## Before you start [#before-you-start]
- A Pod organization and a project for your runners. Runner sandboxes run in that project.
- A GitHub organization on a plan that has runner groups. Personal accounts and organizations on GitHub Free are not served.
- You are an owner of the Pod organization. Connecting GitHub is something only a person can do, with a second factor proved in the last few minutes; an API key can't.
## Run your first job [#run-your-first-job]
### Connect GitHub [#connect-github]
In the [dashboard](https://pod.mapier.ai/app), choose the project, open **CI**, and press **Connect GitHub**. GitHub asks you to install Pod CI's App on your organization and pick its repositories. If you are not an owner on GitHub, GitHub sends your request to the organization's owners; come back and connect it once they install the App.
Back in the dashboard, confirm the GitHub account and the Pod project, prove it's you, and press **Connect**.
### Change `runs-on` [#change-runs-on]
In any workflow of a connected repository, set a job's `runs-on` to one of Pod CI's [runner labels](https://docs.mapier.ai/pod/ci/guides/runners):
```yaml title=".github/workflows/test.yml"
jobs:
test:
runs-on: pod-4
steps:
- uses: actions/checkout@v4
- run: make test
```
### Push [#push]
Push the change. The job shows up under **CI** › **Jobs** with its times: queued, sandbox ready, runner online, started and finished. GitHub shows the runner's name, which starts with `pod-ci-`.
## What connecting does [#what-connecting-does]
- Pod CI gets a key for this project that can do only what runners need: make, run and delete sandboxes.
- Runner sandboxes carry Pod CI's billing mark, so you pay for runner time by the second, and never for sandbox time.
- Pod CI can read your workflow jobs and register runners. It has no permission to change repository settings. Each repository gets a runner group of its own, so one repository's runners never take another's jobs.
Private repositories are served as soon as they are connected. A public repository is served only once you add it to the allow list in its settings; see [Security](https://docs.mapier.ai/pod/ci/guides/security).
## Next [#next]
- [Warm folders](https://docs.mapier.ai/pod/ci/guides/warm-folders) start each job with its dependencies in place.
- [Limits and usage](https://docs.mapier.ai/pod/ci/guides/limits-and-usage) explains why a job waits, and where to see what you used.
# Re-runs (https://docs.mapier.ai/pod/ci/guides/re-runs)
> When Pod CI stops a job it gave the wrong runner, it starts the job again on a fresh one
**Not available yet.** Automatic re-runs are off; a stopped job's message asks a person to re-run it.
Some runners start from a warm snapshot, a saved copy of a whole sandbox. Only trusted jobs may use those runners. Pod CI starts them only while every queued job for their label is trusted, but GitHub chooses which job goes to which runner, so an untrusted job can still land on one.
[Warm folders](https://docs.mapier.ai/pod/ci/guides/warm-folders) never stop a job: an untrusted job gets an empty folder at the same path and runs normally.
When an untrusted job lands on a runner restored from a warm snapshot, the runner stops the job before its first step, and Pod CI starts it again, once, on a plain runner. The stopped job shows as failed in GitHub, followed by its new attempt.
## What it needs [#what-it-needs]
Starting a job again takes the **Actions: write** permission on Pod CI's App. When your installation hasn't granted it, nothing is started again: the stopped job's message asks a person to re-run it.
A stopped job is not billed.
# Runner costs (https://docs.mapier.ai/pod/ci/guides/runners-and-costs)
> What Pod CI's runners cost a minute, and what a month of a team's builds comes to
A job is billed by the second, for the time it runs: from the job's start to its end, as GitHub reports them. Waiting in the queue and starting the sandbox are free.
## Prices [#prices]
| `runs-on` | Cores | Memory | Price a minute | Availability |
| ---------------- | ----- | ------ | ----------------- | ----------------- |
| `pod-2` | 2 | 8 GB | Not published yet | Available |
| `pod-4` | 4 | 16 GB | $0.004 | Available |
| `pod-8` | 8 | 32 GB | Not published yet | Available |
| `pod-16` | 16 | 64 GB | Not published yet | Not available yet |
| `pod-windows-4` | 4 | 16 GB | Not published yet | Not available yet |
| `pod-windows-8` | 8 | 32 GB | Not published yet | Not available yet |
| `pod-windows-16` | 16 | 64 GB | Not published yet | Not available yet |
The prices of the other runners are published here once they are set.
## What builds cost [#what-builds-cost]
These examples work out a month of builds on `pod-4`, at $0.004 a minute. Count your own the same way: jobs × minutes a job × the price a minute.
| Who | Jobs | Minutes | On `pod-4` |
| -------------------------- | ---------------------------------------------------------- | ------- | ---------- |
| One build | 1 job of 10 minutes | 10 | $0.04 |
| A team of 5, for a month | 2,100: 20 a working day each, for 21 days, 8 minutes each | 16,800 | $67.20 |
| A team of 25, for a month | 10,500: 20 a working day each, for 21 days, 8 minutes each | 84,000 | $336.00 |
| A team of 100, for a month | 42,000: 20 a working day each, for 21 days, 8 minutes each | 336,000 | $1,344.00 |
A job that runs on more cores often finishes sooner, so a larger runner can cost about the same for a shorter wait. Measure a few of your own jobs on two sizes before you choose.
## What else is billed [#what-else-is-billed]
- **Copies of a job** made to [shard a test suite](https://docs.mapier.ai/pod/ci/guides/pass-reuse-and-sharding) are billed as runners of the job's size, for the time each copy runs.
- **Bake runs**, which fill [warm folders](https://docs.mapier.ai/pod/ci/guides/warm-folders), and the warm folders' storage, show in your usage as their own lines.
- **QA runs** show the sandboxes they used and the model's work as their own lines; see [QA runs](https://docs.mapier.ai/pod/ci/qa).
See every line in **CI** › **Usage**, by repository and runner label; see [Limits and usage](https://docs.mapier.ai/pod/ci/guides/limits-and-usage).
# Runners (https://docs.mapier.ai/pod/ci/guides/runners)
> Pod CI's runs-on labels, their sizes, the image every job starts from, and what happens to a runner
A job names its runner with `runs-on`. Each label is a size: the number of whole cores and the memory the job's sandbox gets.
| `runs-on` | Cores | Memory | Price a minute | Availability |
| ---------------- | ----- | ------ | ----------------- | ----------------- |
| `pod-2` | 2 | 8 GB | Not published yet | Available |
| `pod-4` | 4 | 16 GB | $0.004 | Available |
| `pod-8` | 8 | 32 GB | Not published yet | Available |
| `pod-16` | 16 | 64 GB | Not published yet | Not available yet |
| `pod-windows-4` | 4 | 16 GB | Not published yet | Not available yet |
| `pod-windows-8` | 8 | 32 GB | Not published yet | Not available yet |
| `pod-windows-16` | 16 | 64 GB | Not published yet | Not available yet |
## Larger Linux runners [#larger-linux-runners]
**Not available yet.** The pod-16 runner, a whole server for one job, is not offered yet.
`pod-16` gives a job a whole server of its own.
## Windows runners [#windows-runners]
**Not available yet.** Windows runners start once Pod offers Windows sandboxes; Windows jobs wait in the queue until then.
`pod-windows-4`, `pod-windows-8` and `pod-windows-16` run jobs on Windows Server 2025.
## macOS runners [#macos-runners]
**Not available yet.** macOS runners start once Pod's Macs are offered.
`pod-macos-N` runs a job on one of Pod's Macs, on Apple silicon, the same way a Linux job runs. macOS runners have no kept sandboxes and no warm folders.
## The image [#the-image]
Linux jobs start from Ubuntu 26.04, built from the same scripts as GitHub's `ubuntu-26.04` image, with the same tool cache. A few of GitHub's setup steps are left out, and every package is pinned and reviewed.
GitHub's `ubuntu-latest` is still Ubuntu 24.04. A workflow that ran on `ubuntu-latest` moves to a
newer release on Pod CI, so check jobs that pin system packages or compilers.
The image is rebuilt every week against GitHub's newest runner and runner-images release.
## What happens to a runner [#what-happens-to-a-runner]
1. GitHub queues your job, and Pod CI learns of it within seconds.
2. A fresh sandbox is restored from the image. Nothing is left in it from any other job.
3. A runner is registered for this one job, with a registration that is never stored and never written into the image.
4. The job runs. The sandbox never sleeps while the job is quiet; the job's time limit still holds.
5. When the job ends, the sandbox is deleted, and the runner is removed from GitHub.
Billing runs from the job's start to its end, as GitHub reports them. The time a job waits in the queue, and the time a sandbox takes to start, are free.
Runner names start with `pod-ci-`. GitHub shows them on the job's page, and **CI** › **Runners** in the [dashboard](https://pod.mapier.ai/app) lists the ones running now, with their state.
# Security (https://docs.mapier.ai/pod/ci/guides/security)
> How Pod CI keeps jobs apart, what a pull request from a fork can and can't reach, and what the App may do
## A fresh sandbox for every job [#a-fresh-sandbox-for-every-job]
Every job runs in a sandbox of its own, restored from the clean image and deleted when the job ends. A runner takes one job and is gone. Its registration is handed in once the sandbox is running, through a channel Pod neither logs nor stores, and is never kept.
## Trusted and untrusted jobs [#trusted-and-untrusted-jobs]
Pod CI sorts every job by what GitHub reports about its run, never by anything the job says:
- **Trusted:** `push`, `schedule` and `workflow_dispatch` runs, and pull requests from a branch of the repository itself.
- **Untrusted:** pull requests from forks, pull requests opened by bots you haven't allowed, and any job whose facts are missing.
An untrusted job gets a plain runner: no [warm folders](https://docs.mapier.ai/pod/ci/guides/warm-folders), no [kept sandbox](https://docs.mapier.ai/pod/ci/guides/keep-failures), no [reused pass](https://docs.mapier.ai/pod/ci/guides/pass-reuse-and-sharding), and none of a QA plan's secrets. Its [cache](https://docs.mapier.ai/pod/ci/guides/cache) reads only the default branch's entries, and it saves nowhere anyone else reads.
## Public repositories [#public-repositories]
A public repository is served only once you add it to the allow list in its settings. Adding it asks you to confirm that GitHub's approval for first-time contributors stays on, so a first-time contributor's pull request waits for approval before its workflows run.
Each allow-listed repository also has a default size, `pod-2` or `pod-4`: the largest runner a stranger's job gets. Larger runners start only while every queued job is trusted. If GitHub still hands a stranger's job to a larger runner, the runner fails the job before its first step, with a message naming the default size, and the job is not billed.
```sh
mpod ci repositories settings set \
--allow-listed true --contributor-approval-confirmed true --default-label pod-2
```
## What the App may do [#what-the-app-may-do]
Pod CI's GitHub App reads your workflow jobs and registers runners. It has no permission to change repository settings. Each repository gets its own runner group, so one repository's runners never take another's jobs.
Tokens with more reach are made for one task, narrowed to one repository, and revoked when it's done: reading a private repository for a bake, starting a job again, reading a job's log.
## Who can change what [#who-can-change-what]
| Action | Who |
| ------------------------------------ | ---------------------------------------------------------------- |
| Connect GitHub | An owner of the Pod organization, with a fresh second factor |
| Change a repository's settings | A person whose role holds `ci:write`, with a fresh second factor |
| Open a kept sandbox | The person who started the run, or an admin of the repository |
| Read jobs, runners, usage and limits | A key or a person with `ci:read` |
None of the person-only actions can be done with an API key. See [keys and projects](https://docs.mapier.ai/pod/sandboxes/keys-and-projects) for roles and scopes.
# Warm folders (https://docs.mapier.ai/pod/ci/guides/warm-folders)
> Start each job with its dependencies already in place, from folders Pod CI fills ahead of time from your pod.yaml
**Not available yet.** Bakes are built but warm folders are not handed to jobs yet, so jobs start cold.
A warm folder is a folder a job would otherwise fill on every run: a package store, a browser download, a build cache. Pod CI fills it ahead of time in a bake run, and each trusted job of the repository starts with a copy of it, so the install step finds most of its work done.
## Declare them in pod.yaml [#declare-them-in-podyaml]
Warm folders and the recipe that fills them live in the repository's [`pod.yaml`](https://docs.mapier.ai/pod/sandboxes/spec-file), the same file that describes a Pod sandbox:
```yaml title="pod.yaml"
version: 1
name: web-app
system: linux
setup:
run:
- corepack enable
- pnpm install --frozen-lockfile
- pnpm exec playwright install chromium
ci:
warm_folders: [.pnpm-store, .cache/ms-playwright]
```
- `ci.warm_folders` lists up to 8 folders, each relative to the runner's home folder, `/home/runner`. A path that is absolute, climbs out with `..`, names the home folder itself, or sits inside another listed folder is refused. The same folder written twice counts once.
- `setup` is the recipe: its `packages` are installed first, then each `run` line runs in turn, in the checkout unless `workdir` says otherwise. The first line that fails stops the bake.
A `pod.yaml` that doesn't read fails the bake with the problem and its line. Nothing is published, so jobs keep the newest good copy.
## When bakes run [#when-bakes-run]
A bake reads `pod.yaml` at the commit it bakes, and runs:
- after each push to the default branch,
- when the runner image changes,
- once a day,
- and the first time a repository declares warm folders.
One bake runs at a time per repository. **CI** › **Repositories** in the [dashboard](https://pod.mapier.ai/app) lists each repository's bake runs, with their logs, and the generations of warm folders they published.
## What a bake can see [#what-a-bake-can-see]
A bake has no runner and none of your secrets. A private repository is cloned with a token that can read only that repository, and the token is revoked before the recipe runs. The folders are published from outside the sandbox once the recipe succeeds.
Only trusted jobs get a copy: jobs that start from the repository's own code, such as a push or a pull request from a branch of the repository, and never a pull request from a fork. See [Security](https://docs.mapier.ai/pod/ci/guides/security).
## What it works on [#what-it-works-on]
Warm folders are for Linux runners. macOS runners and [Buildkite](https://docs.mapier.ai/pod/ci/guides/buildkite) pipelines don't get them.
# Pod CI/QA (https://docs.mapier.ai/pod/ci)
> GitHub Actions runners on Pod, with whole cores and a fresh sandbox for every job, and QA runs on real screens
**Not available yet.** Pod CI/QA is open to invited customers until public sign-up opens.
Pod CI/QA runs your GitHub Actions jobs on Pod. You change one line, `runs-on`, and each job gets a fresh sandbox of its own on CI servers, where each core is a whole core, not a shared thread. The sandbox is deleted when the job ends, and you pay by the second for the time the job ran.
```yaml title=".github/workflows/test.yml"
jobs:
test:
runs-on: pod-4
steps:
- uses: actions/checkout@v4
- run: make test
```
Beside the runners, QA runs test your app the way a person would: an agent works through it on a real screen, step by step, and each system gets a GitHub check with a pass or a fail per step and a recording.
## Where to start [#where-to-start]
Connect GitHub, change `runs-on`, and push.
The labels, their sizes, and the image every job starts from.
What a minute costs, and what a month of builds comes to.
Test an app on real screens from a workflow step.
## Faster builds [#faster-builds]
Start each job with your dependencies already in place.
`actions/cache` next to the runners, and a mirror for Docker Hub.
Skip a check that already passed on the same inputs, or split a test suite across copies of the
job.
Keep a failed job's sandbox and look inside it over SSH.
## How it fits with Pod [#how-it-fits-with-pod]
Pod CI/QA is built on Pod. Runner sandboxes run in one of your Pod projects, under a key that can do only what runners need, and they show up in the [dashboard](https://pod.mapier.ai/app) under **CI**, not under **Sandboxes**. You pay for runner time, never for sandbox time. The same calls are in the [CI API reference](https://docs.mapier.ai/pod/ci/api) and in [`mpod ci`](https://docs.mapier.ai/pod/ci/guides/mpod-ci).
# QA runs (https://docs.mapier.ai/pod/ci/qa)
> An agent tests your app on real screens the way a person would, with a pass or a fail per step and a recording
**Not available yet.** Pod CI/QA is open to invited customers until public sign-up opens.
**Not available yet.** A QA run drives a sandbox's screen, which Pod does not offer on Linux yet.
A QA run tests your app the way a person would. You write a plan in plain language: what to do, and what must then be true. An agent works through it on a real screen, one action at a time, and each system you test on becomes a GitHub check with a row per step and a recording.
## How a run goes [#how-a-run-goes]
A [workflow step](https://docs.mapier.ai/pod/ci/qa/qa-action), the [dashboard](https://pod.mapier.ai/app), `mpod ci qa runs create` or an agent asks for a run: a [plan file](https://docs.mapier.ai/pod/ci/qa/plan-file), a build for each system, and the systems to test on.
For each system at once, a sandbox with a screen starts in your project, and the build is put in it.
The screen is recorded. For each step, the model looks at the screen, and at the accessibility tree where the system has one, and picks one action at a time.
Two separate looks judge each step's expectation. A step passes only when both agree it holds, and fails only when both agree it doesn't. Anything else is unstable, never a pass.
Each system becomes a GitHub check, with a row per step and a link to the recording at that step's second. The same result is JSON from the API; see [Results](https://docs.mapier.ai/pod/ci/qa/results).
## Trusted and untrusted runs [#trusted-and-untrusted-runs]
A run started from a workflow step takes that job's trust, repository and commit from GitHub. A run started through the API is yours and is trusted unless you ask for it not to be.
- An untrusted run, such as one for a pull request from a fork, gets none of the plan's secrets. A step that needs one is skipped as untrusted.
- After a trusted run passes on a push to the default branch, the actions each step took are kept. A later trusted run replays them where the screen is the same, and asks the model only where it differs. Every step is still judged each time.
## What QA can test [#what-qa-can-test]
Steps in plain language, secrets by name, and how each system starts your app.
The systems a run can test on, and the builds each one installs.
# Plan files (https://docs.mapier.ai/pod/ci/qa/plan-file)
> The QA plan format, steps written in plain language with what must then be true, kept in your repository
A plan file lives in your repository, such as `.pod/qa/billing.yaml`. Each step says what to do, and what must then be true.
```yaml title=".pod/qa/billing.yaml"
name: Billing
systems: [linux]
launch:
linux: { program: /usr/bin/example }
steps:
- do: Sign in as qa@example.com with the password {{secret.TEST_PASSWORD}}
expect: The home page says "Hello, QA"
- do: Open Billing and press Pay
expect: A receipt appears saying "Paid"
timeout_s: 60
```
**Not available yet.** QA on Windows and Android starts once Pod offers those systems with screens.
Once QA runs on Windows and Android, the same plan names them in `systems`, with a `launch` for each:
```yaml title=".pod/qa/billing.yaml"
name: Billing
systems: [linux, windows, android]
launch:
linux: { program: /usr/bin/example }
windows: { program: 'C:\Program Files\Example\example.exe' }
android: { package: com.example.app }
steps:
- do: Sign in as qa@example.com with the password {{secret.TEST_PASSWORD}}
expect: The home page says "Hello, QA"
```
## Fields [#fields]
| Field | Type | What it is |
| --------------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name` | string | The plan's name, shown on its checks. It defaults to the file's name, such as `billing` for `billing.yaml` |
| `systems` | list | The systems to test on: `linux`, `windows`, `android`, `macos` or `ios`. A run can name fewer. When the list is empty, the run names the systems itself, and a run that names none is refused |
| `launch` | map | How each system starts the installed app. A web build or an `.AppImage` needs none |
| `steps` | list, required | The steps, in order |
| `steps[].do` | string, required | What to do, in plain language |
| `steps[].expect` | string, required | What must then be true |
| `steps[].timeout_s` | integer, 1 to 600 | How long the step may take, in seconds |
| `steps[].max_actions` | integer, 1 to 30 | The most actions the step may take before it is judged as it stands |
## Writing good steps [#writing-good-steps]
- **One thing per step.** "Open Billing and press Pay" is fine; a step that walks through a whole flow is hard to judge.
- **Quote exact text.** Text in double quotes in an expectation is checked word for word against the screen's accessibility tree, before any model looks.
- **Say what is visible.** An expectation is judged from the screen, so name what a person would see, not what the app did inside.
## Secrets [#secrets]
A step that needs a secret names it as `{{secret.NAME}}`. The model sees the name, never the value; the value is typed in for it, with the recording masked while it is typed. A secret may be named only in `do`, never in `expect`: a plan that names one in `expect` is refused.
An untrusted run gets no secrets, and a step that needs one is skipped as untrusted.
## Starting an app [#starting-an-app]
| System | `launch` |
| ------- | ----------------------------------------------------------------------------------------- |
| Linux | `{ program: /usr/bin/example, args: [--flag] }` |
| Windows | `{ program: 'C:\Program Files\Example\example.exe', args: [] }` |
| Android | `{ package: com.example.app }` |
| macOS | `{ bundle_id: com.example.mac }`, or `{ app: Example.app }` for an app in `/Applications` |
| iOS | `{ bundle_id: com.example.ios }` |
A `.deb`, `.msi`, `.exe` or `.msix` build needs a `launch` for its system, and a plan without one is refused. An `.AppImage` starts itself, and `launch.linux` can override the program and its `args`. A web build needs no `launch`. What each system installs is on [Systems](https://docs.mapier.ai/pod/ci/qa/systems).
`args` is optional everywhere it appears. On Windows, an optional `install_args` replaces the installer's silent default (`/qn /norestart` for an `.msi`, `/S` for an `.exe`); it has no effect on an `.msix`. On Android, an optional `activity` picks the activity to start; without it, the package's launcher activity starts.
# The QA workflow step (https://docs.mapier.ai/pod/ci/qa/qa-action)
> Run a QA plan on this job's build from a GitHub Actions step, and fail the job unless every system passed
The `qa-action` step runs a [plan](https://docs.mapier.ai/pod/ci/qa/plan-file) on the build your job just made, and fails the step unless every system passed. It runs only on a Pod CI runner.
```yaml title=".github/workflows/qa.yml"
jobs:
qa:
runs-on: pod-2
steps:
- uses: actions/checkout@v4
- run: pnpm install && pnpm build:appimage
- uses: Mapier-Labs/pod-ci-qa/packages/qa-action@main
with:
plan: .pod/qa/billing.yaml
systems: linux
builds: |
linux=file:dist/app.AppImage
```
## Inputs [#inputs]
| Input | Required | What it is |
| ----------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `plan` | Yes | The plan file, such as `.pod/qa/billing.yaml` |
| `builds` | Yes | One build per line, per system: `SYSTEM=web:URL`, `SYSTEM=file:PATH` (uploaded from this job), or `SYSTEM=download:URL#SHA256` (fetched by the QA sandbox itself and checked against its SHA-256) |
| `systems` | No | The systems to run on, separated by spaces or commas. The plan's own list when empty |
| `wait` | No | `true` (the default) waits for the result and fails the step unless it passed. `false` starts the run and goes on |
| `timeout-minutes` | No | How long to wait for the result. 60 by default |
## Outputs [#outputs]
| Output | What it is |
| ------------- | -------------------------------------------------------------------------- |
| `qa-run` | The QA run's id |
| `conclusion` | `passed`, `failed`, `unstable`, `could_not_judge`, `broken` or `cancelled` |
| `result-file` | The run as JSON, a row per step, for a coding agent to read |
A download is fetched by the sandbox that tests it, never by Pod CI, so the address must be reachable from the internet.
## Without a workflow [#without-a-workflow]
Start a run from the API with [start a QA run](https://docs.mapier.ai/pod/ci/api/qa/start-qa-run), or from your terminal:
```sh
mpod ci qa runs create --plan .pod/qa/billing.yaml --plan-path .pod/qa/billing.yaml \
--repository acme/app --build system=linux,kind=web,url=https://staging.example.com
```
A run started this way is yours, and is trusted unless you pass `--untrusted`.
# Results (https://docs.mapier.ai/pod/ci/qa/results)
> What a QA run reports, on GitHub and in the API, and what each conclusion means
## On GitHub [#on-github]
Each system becomes a GitHub check on the commit, with a row per step. Each row links to the recording at that step's second. While a run is going, the check links to a live view of the screen.
## Conclusions [#conclusions]
A run has one conclusion, and so does each system:
| Conclusion | What it means |
| ----------------- | ----------------------------------------------------------------------------------------------------------- |
| `passed` | Every step's expectation held, judged by two separate looks that agreed. The only conclusion that is a pass |
| `failed` | Both looks agreed a step's expectation did not hold |
| `unstable` | The two looks disagreed. Shown apart from `failed`, and never counted as a pass |
| `could_not_judge` | The model could not be asked, so the step was not judged |
| `broken` | The run could not go on |
| `cancelled` | The run was cancelled |
A step's own status can also be `skipped_untrusted`, for a step that needs a secret in an untrusted run, or `not_run`, for a step that did not run.
## In the API [#in-the-api]
[Get a QA run](https://docs.mapier.ai/pod/ci/api/qa/get-qa-run) answers the whole run as JSON: each system, each step with its status and what was seen, and the screenshots by name. [Get a screenshot](https://docs.mapier.ai/pod/ci/api/qa/get-qa-screenshot) downloads one. [List QA runs](https://docs.mapier.ai/pod/ci/api/qa/list-qa-runs) and [cancel a QA run](https://docs.mapier.ai/pod/ci/api/qa/cancel-qa-run) are there too, and in `mpod ci qa runs`.
In a workflow, the step's `result-file` output is the same JSON on the runner's disk, so a coding agent in the next step can read why a step failed.
**CI** › **QA runs** in the [dashboard](https://pod.mapier.ai/app) lists your runs and shows each one, step by step.
# Systems (https://docs.mapier.ai/pod/ci/qa/systems)
> The systems a QA run can test on, and the builds each one installs
| System | Installs | Starts it with |
| --------- | ------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| `linux` | `.AppImage` or `.deb` | `launch: { program: … }` (none for an `.AppImage`), or a web address in the browser |
| `windows` | `.msi`, `.exe` or `.msix` | `launch: { program: … }`, or a web address in the browser |
| `android` | `.apk` | `launch: { package: … }` |
| `macos` | A zipped `.app`, `.dmg` or `.pkg`, into `/Applications` | `launch: { bundle_id: … }` or `{ app: … }` |
| `ios` | An `.ipa`, or a zipped simulator `.app` | `launch: { bundle_id: … }` |
Every system also takes a web address, opened in its browser.
## Linux [#linux]
**Not available yet.** A QA run drives a sandbox's screen, which Pod does not offer on Linux yet.
QA on Linux runs in a Pod Linux sandbox, and starts once Pod offers a Linux screen to drive.
## Windows and Android [#windows-and-android]
**Not available yet.** QA on Windows and Android starts once Pod offers those systems with screens.
QA on Windows and Android runs in Pod sandboxes of those systems, and starts once Pod offers them with screens.
## macOS and iOS [#macos-and-ios]
**Not available yet.** QA on macOS and iOS starts once Pod's Macs are offered.
QA on macOS and iOS runs on Pod's Macs. An iOS app runs in a simulator on the Mac.