Operator API
The operator API is what the console and the sefra command line use. Use it to automate approvals, incident response and audit exports. It is served on Sefra’s operator listener.
Download the OpenAPI specification to generate a client or import it into your API tools.
Authentication
Section titled “Authentication”Send an OAuth access token from your identity provider, issued for the operator listener’s audience, as Authorization: Bearer <token>. Agents cannot call these routes unless a route says so.
Each role includes the ones before it.
| Role | Adds |
|---|---|
sefra_viewer |
Read executions, audit events and bundles, without payloads |
sefra_auditor |
Read redacted payloads, and export the trail |
sefra_operator |
Kill switches and interventions |
sefra_admin |
Upload and activate bundles |
Any role named by an approval requirement may read and decide that approval.
Errors
Section titled “Errors”Errors are problem documents (application/problem+json, RFC 9457). Refusals carry a code, listed under Statuses and error codes.
Routes
Section titled “Routes”| Group | What it covers |
|---|---|
| Approvals | List approvals and record decisions. |
| Executions | Read executions and act on those that need an operator. |
| Controls | Suspend principals, disable intents and pause execution. |
| Audit | Read, check and export the audit trail. |
| Refusals | See what was refused, and why. |
| Bundles | Upload, inspect, replay and activate bundles. |
| Principals | Agents and people as Sefra has seen them. Sefra keeps no user store. |
| System | Connectors, deployment state and notification deliveries. |
| Statistics | Counts and trends behind the console’s charts. |
| Health | Liveness and readiness probes. These need no token. |
| Schemas | Every object these routes send and receive |