HTTP API overview
Production base URL:https://superflag.sh.
Management and delivery routes are under /api/v1. OFREP is under
/api/ofrep/v1.
Discover the current contract
Authentication
SendAuthorization: Bearer <credential> unless an endpoint says otherwise.
OFREP also accepts X-API-Key.
Token prefixes are an early type check. The server validates the complete
credential, revocation state, tenant ownership, and route-specific scope.
Route families
Error and cache behavior
Modern management routes use a strict{ apiVersion, error } envelope with a
stable code, human-readable message, and optional safe metadata. HTTP status is
the transport-level failure category. Retryability, remediation, and request
metadata are CLI-envelope features and are not fields every HTTP route returns.
The two frozen legacy config routes retain compatibility error shapes; do not
parse them as the management envelope.
Config responses use authorization-scoped opaque ETags with:
Configuration and evaluation
Frozen delivery, advanced schema, ETags, quotas, and remote evaluation.
Management API
Apps, flags, keys, atomic apply, journal, metrics, and experiments.