API Reference

Start run

Overview

Start run dispatches validation for a project against an execution environment with explicit test case or suite IDs. This powers CI gates, scheduled jobs, and custom orchestration without Console clicks.

Who should read this

  • Platform engineers integrating CI/CD, internal tooling, or data pipelines with Zof.

Prerequisites

  • Valid organization API key with permission for this resource
  • Resource ID when path includes {id}, copy from Console or list endpoint
  • Staging environment for first integration test

When to use this workflow

  • Invoke start run from deployment pipelines or scheduled jobs
  • Synchronize Zof state with internal CMDB or release management tools
  • Automate workflows that would otherwise require Console manual steps

Step-by-step procedure

Authenticate

Set Authorization: Bearer header with organization API key.

Confirm key role includes required permission (403 indicates insufficient scope).

Execute request

POST https://api.zof.ai/v1/runs

Include Content-Type: application/json for bodies with POST/PATCH.

Handle response

200/201: parse JSON body and persist resource ID for follow-up calls.

4xx: inspect error.code and error.param; fix request before retry.

429: honor Retry-After; implement exponential backoff in automation.

Key concepts

Permission
Requires runs:create.
project_id
Reliability project containing cases to execute.
environment
staging | production | custom label matching Admin → Environments.
test_case_ids
Array of case IDs; omit when using test_suite_id instead.

Best practices

  • Use idempotency keys for POST operations in automation
  • Handle 429 responses with exponential backoff and jitter
  • Log X-Request-Id from response headers for support escalation
  • Test against staging project IDs before production automation

Common issues

404 on {id}
Resource deleted, wrong organization scope, or typo in ID.
403 Forbidden
API key role lacks permission; use service account with appropriate role.
409 Conflict
Illegal state transition, e.g., canceling a completed run.

Start run (curl)

curl -X POST https://api.zof.ai/v1/runs \
  -H "Authorization: Bearer $ZOF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "project_id": "proj_abc",
    "environment": "staging",
    "test_suite_id": "suite_pr_smoke"
  }'

API operations

POST
/runs
Start validation with project_id, environment, and case or suite IDs.

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

Start run | Zof AI Documentation