API Authentication and Examples

API integrations should authenticate, confirm system health, discover current IDs, and then send deliberate control commands with predictable payloads and error handling.

Screenshot is coming soon...

What you will learn

  • How to structure API calls safely.
  • How to use discovery endpoints before control endpoints.
  • How to design live-safe external panels.
  1. Store the API token securely in the calling system.
  2. Send the token in the authorization header required by the docs API/server configuration.
  3. Call GET /api/status before live commands.
  4. Call list endpoints to resolve current inputs, functions, scenes, or videos.
  5. Send POST commands only after confirming the target exists.
  6. Log request, response, timestamp, and operator identity when possible.

Buttons, fields, and controls

ControlWhat it doesWhen to use it
Authorization headerCarries the API token.Use for every protected API request.
GET before POSTDiscovers current state before changing state.Use to reduce wrong-target mistakes.
Status checkConfirms server readiness.Use before opening external control surfaces.
Idempotent panel designPrevents repeated clicks from causing unexpected output.Use for custom buttons and automation.
Error displayShows API errors to operators.Use so failures are visible immediately.

Best practices

  • Never hard-code show-specific IDs without a discovery step.
  • Use confirmation for Program, Clear, Fade-to-Black, and other destructive/live actions.
  • Rate-limit external automation buttons to prevent accidental double triggers.

Troubleshooting

SymptomLikely causeWhat to check
401/403 responseMissing or invalid token.Check authorization header and token value.
404 responseEndpoint or target ID does not exist.Refresh API docs and discovery lists.
500 responseServer-side or subsystem error.Check Monitor and server logs.

Screenshot is coming soon...