Skip to content

HTTP API: Add endpoints to manage and query connection status #4047

@brianegge

Description

@brianegge

Summary

The HTTP Remote Control API currently supports button presses, styling, variables, and surface rescanning, but has no endpoints to manage or query connection status.

Use Case

In automated/headless environments (e.g., Companion running as a container on a server), it's useful to programmatically check whether a module connection is active and trigger a reconnect without opening the web UI.

For example, after restarting ProPresenter on a remote machine, there's no HTTP API way to:

  1. Check if the Companion module has reconnected
  2. Trigger a reconnect if it hasn't
  3. List all connections and their current status (connected/disconnected/error)

The only option today is to open the web UI and manually interact with the Connections page.

Proposed Endpoints

Endpoint Method Description
/api/connections GET List all connections with their current status
/api/connections/:id/status GET Get status of a specific connection
/api/connections/:id/reconnect POST Trigger a reconnect for a specific connection
/api/connections/:id/enable POST Enable a connection
/api/connections/:id/disable POST Disable a connection

Environment

  • Companion v4.2 running as a container (ghcr.io/bitfocus/companion/companion)
  • Managing connections to ProPresenter, ATEM, X32, PTZ cameras
  • HTTP API is enabled with http_api_enabled: true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions