API Reference
The ByteOr Cloud API is a JSON REST API. All authenticated endpoints require either a Bearer token (user/org-scoped), an enrollment token (one-time agent registration), or an agent key (per-agent long-lived credential).
Base URLs for hosted environments are listed in Resource Hierarchy → Hosted Environments.
Machine-readable index
Health & Observability
Unauthenticated endpoints used by load balancers and monitoring stacks.
Auth
OAuth 2.0 login flow. The API issues a Bearer token on successful callback.
Organizations
Top-level tenant resource. Every project, environment, and agent belongs to exactly one organization.
Projects
A project groups related environments, pipeline drafts, and deployments under one organization.
Environments
An environment represents a deployment target (e.g., production, staging). Agents and deployments are scoped to an environment.
Pipeline Drafts & Versions
Drafts are mutable pipeline definitions. Promoting a draft creates an immutable version that can be deployed.
Config Bundles
Bundles package a pipeline version together with runtime configuration for deployment to agents.
Agents
Agents are registered via enrollment tokens and then authenticated with long-lived agent keys.
Deployments
Deployments push a config bundle to one or more agents. They follow an approval-gated lifecycle.
Artifacts & Replay
Artifacts are immutable records produced by agents (incident captures, telemetry snapshots). Replay re-executes an artifact through the original pipeline version.
Approvals
Approval gates enforce human review before deployments proceed.