The API allows you to insert jobs, monitor their progress, and access some information about the build system. Authentication to this API is brokered by This API uses standard error responses. All requests should be submitted via

Notice: the API is due for an overhaul in the foreseeable future; be prepared for it to change. The changes will be announced in advance on the and mailing lists.

API Endpoints

The following endpoints are available to users with an OAuth key valid for the specified scope.

GET /api/jobs

Scopes: jobs:read

Returns a paginated list of job resources.

POST /api/jobs

Scopes: jobs:write

Inserts a new job into the job queue.

  "manifest": "string",         The build manifest
  "note": "string",             Human-friendly description of this build
                                  (markdown, optional)
  "tags": [...],                Arbitrary list of strings that identify this
                                  build and can be used to navigate the
                                  dashboard. Each string must use only
                                  lowercase alphanumeric characters, or any
                                  of "-_." (optional)
  "access:read": [              List of users that have read access to this
                                  job (optional). The user submitting the
                                  build will be included regardless of this
                                  value. The special username "*" indicates
                                  public read access to this build.
                                  Defaults to *.
    "string"                    Username
  "access:write": [             List of users that have write access to this
                                  job (optional). The user submitting the
                                  build will be included regardless of this
    "string"                    Username
  "execute": boolean,           True to start the build immediately
                                  (optional - defaults to true)
  "secrets": boolean,           True to provide secrets during the build
                                  (optional - defaults to true)

Note: build manifests are YAML, which is machine editable. You are encouraged to edit it before submitting!

GET /api/jobs/:id

Gets information about a job by its ID.

Scopes: jobs:read

  "id": integer,
  "status": "job status enum",
  "setup_log": "url",               URL to captured stdout/stderr of setup
  "tasks": [
      "name": "setup",
      "status": "task status enum"
      "log": "url",

Job status enum

Task status enum

GET /api/jobs/:id/artifacts

Returns a paginated list of artifact resources created by this job.

Scopes: jobs:read

Artifact resource:

    "id": integer,
    "created": timestamp,
    "path": /original/filepath/in/guest,
    "name": basename,
    "url": URL from which the artifact may be downloaded,
    "size": size in bytes

GET /api/jobs/:id/manifest

Returns the original job's build manifest as plain text.

POST /api/jobs/:id/start

Starts a job that was created with execute=false. Returns an empty JSON object when successful.

About this wiki

commit 316b198186ddf05b8a6bb6cc4e6f9fb79748a333
Author: Drew DeVault <>
Date:   2020-03-26T10:26:26-04:00 minor tweaks
Clone this wiki (read-only) (read/write)