-
-
Notifications
You must be signed in to change notification settings - Fork 564
HTTP API: Add endpoints to manage and query connection status #4047
Copy link
Copy link
Open
Labels
Description
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:
- Check if the Companion module has reconnected
- Trigger a reconnect if it hasn't
- 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
Reactions are currently unavailable