Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

API Automation

Fluxomni provides a public API preview for automating routes, playlists, artifacts, settings, and Fleet tasks.

Use GraphQL at /api and subscriptions at /api/subscriptions. The API also provides the generated SDL at /api/schema.graphql, a bundled release schema, automation recipes, LLM metadata, and the @fluxomni/api-client TypeScript package. For 26.4.0 field removals, validate against the tagged schema linked from the upgrade guide.

Use the API for control-plane automation:

  • read route, source, output, playlist, artifact, settings, and Fleet state
  • compute the desired state outside Fluxomni
  • apply mutations with explicit result payloads
  • handle no-op, missing-target, validation, forbidden, and runtime-unavailable outcomes
  • use follow-up queries or subscriptions to check when the expected state is reached

The first stable automation release uses user sessions. Public automation should log in through /api/auth/login and reuse the returned fluxomni_session cookie. Loopback bearer tokens are internal-only and should not be used by external scripts.

Versioned Contract

For a running instance, authenticated operators can fetch the active schema:

curl -b "fluxomni_session=$SESSION" \
  http://<your-server>/api/schema.graphql

For release-pinned automation, use the schema, release manifest, and client from the same self-host docs release tag:

Supported Fields

The public guides describe the API covered by compatibility support. Some authenticated GraphQL fields are for diagnostics, dashboards, and troubleshooting. Do not use them as persistent desired-state records.

Do not build public automation around:

  • loopback Authorization: Bearer credentials
  • SystemSettingsMutation.setPassword, removed in 26.4.0; use createUser, changeMyPassword, and session logout
  • media-node lifecycle ownership or private runtime protocols
  • legacy stream/restream route aliases
  • diagnostic runtime rows as persistent desired-state records

For durable artifact automation, prefer LibraryFile catalog rows. Runtime file-state rows are diagnostic.

For route automation, use the route, route source, output, playlist, artifact, settings, and Fleet names shown in the schema and examples.