API Reference

Runs API

Run execution and monitoring endpoints.

Overview

Runs execute validation against selected cases or suites. Monitor status, fetch logs, cancel in-flight runs, and download artifacts programmatically for CI gates and reporting pipelines.

Terminal statuses: passed, failed, error, canceled. Poll GET /runs/{id} or subscribe to run.completed webhook for completion.

Who should read this

  • QA engineers, SREs, platform teams, and developers operating Zof Console and APIs.

Prerequisites

  • project_id from Console or projects API
  • Reviewed test case IDs or suite ID
  • Environment matching deployment target

When to use this workflow

  • Onboarding new team members to Zof terminology and workflows
  • Authoring internal runbooks aligned with Console labels
  • Designing CI/CD or webhook integrations against documented behavior

Step-by-step procedure

Start run

POST /v1/runs with project_id, environment, case or suite IDs.

Send Idempotency-Key header in CI retries.

Wait for completion

Poll GET /v1/runs/{id} or use SDK waitUntilComplete.

Subscribe to run.completed webhook for event-driven flows.

Gate pipeline

Fail job on failed or error status.

Attach run URL to change ticket.

Key concepts

Organization scope
All Zof Console and API operations are isolated to your authenticated tenant.
Governed execution
Agent output and remediation follow policy packs with human approval when configured.

Best practices

  • Validate changes in staging before applying release gates to production.
  • Include run IDs and timestamps when escalating issues to support or auditors.
  • Align internal runbook terminology with Zof Console UI labels for clarity.

Start run

POST /v1/runs
{
  "project_id": "proj_abc123",
  "environment": "staging",
  "test_case_ids": ["tc_login_001", "tc_checkout_014"]
}

API operations

GET
/runs
List runs with filters (project, status, date)
POST
/runs
Start run with project_id, environment, case IDs
GET
/runs/{id}
Status, summary, case outcomes
POST
/runs/{id}/cancel
Cancel queued or running validation
GET
/runs/{id}/logs
Execution logs
GET
/runs/{id}/artifacts
Screenshots, traces, exports

Was this page helpful?

01The operational surface

One surface for posture, operations, and what needs attention next.

The Zof home is not a marketing dashboard. It is the operational surface engineering, QA, and SRE teams use every day, quality posture, in-flight runs, coverage by module, and the actions a leader should look at next.

OPERATIONAL KPIs

  • Runs
  • Coverage
  • Risk

Live across every environment you ship to.

WORK SPINE

  • Specs
  • Tests
  • Schedules

From specification to scheduled regression.

GUARDRAILS

  • RBAC
  • SSO
  • audit

Every action attributable to a named human.

STAGING · LIVE/home
Zof AI home command center showing 12 runs at 94% pass, 3 open critical issues, 84% coverage, four module traceability bars, the specification pipeline, upcoming schedules, and recommended next actions with an active-runs sidebar.
Home view · Checkout Service · Staging · captured live from the product.
  • 01 · RUNS · 24H

    94% pass

    12 runs across staging

  • 02 · COVERAGE

    84%

    Across four modules

  • 03 · ACTIVE RUNS

    3 running

    Live on this branch

  • 04 · NEXT ACTIONS

    Recommended

    Triage gaps, new spec

Runs API | Zof AI Documentation