Use the Camera Server API to connect a backend or command-line application to cameras, saved Scripts, and captured datasets. Localhost access needs no setup or token. This reference is for integration developers and operators who administer those connections.
Address cameras by the numbers the operator established in Camera List. For example, camera 1 is /cameras/1, and an action for cameras 1 and 2 uses target:{"numbers":[1,2]}. Camera Server resolves internal serials; clients and AI agents must not ask the operator for them.
Start with one action
Send JSON with an Idempotency-Key on every write. No authorization header is needed. These paths are relative to /api/v1:
| Action | Request body |
|---|---|
Capture the current selection with POST /trigger |
{} |
Warm up the current selection with POST /warmup |
{} |
Autofocus cameras 1 and 2 with POST /autofocus |
{"target":{"numbers":[1,2]}} |
Change a discovered setting with POST /settings |
{"setting":"descriptor-setting-name","value":"descriptor-value"} |
Execute the configured trigger button with POST /trigger-managed |
{} only |
Read /cameras/1/settings before choosing a setting value. Omitted targets use enabled cameras in the currently selected zone, not all enabled cameras across zones.
Direct warmup and trigger have fixed phases; they do not inherit the button's countdown, repeat, or bound timeline. Current camera modes still apply.
Access boundary
The public API runs at /api/v1 on Camera Server's existing HTTP port. The configured default is 8680; use the port of the running app, not a port copied blindly from an example.
A valid Camera Server license or trial is required. Camera availability, capture allowance, save restrictions, and node process limits still apply. This API entitlement is separate from the desktop Scripts trial restriction.
Localhost public API access is always available with that entitlement, without a token or API setup. To allow remote access, turn on Settings > General > Allow API access from other computers. This is the only operator API setting and is off by default.
When it is on, devices that can reach the server have full supported public API access. Use a trusted studio network only: binding, firewall, routing, and forwarding determine actual exposure. The setting does not guarantee a LAN-only perimeter.
Browser JavaScript is unsupported, even on the same computer. Origin, Sec-Fetch-Site, and Host guards remain. Use a backend or CLI client. Private desktop/admin routes and renderer WebSocket access are not opened.
All API clients share history, events, run ownership, saved API automation, and idempotency keys. There are no integration names, granular scopes, credential expiry, or per-app revocation. Coordinate clients before edits, aborts, or physical actions.
Full operation history retains the latest 10000 completed records plus in-flight work. Older details are compacted automatically, while small retry receipts keep their keys reserved. Expired results and expired retries return HTTP 410, never another execution. Save results you need long term; see Operations and retries.
Choose the right model
| Need | API model |
|---|---|
| Dispatch a photo, autofocus, or setting change now | Direct action, with durable operation admission and an idempotency key |
| Use the operator's configured trigger button | POST /trigger-managed with {}, through the shared Scripts service |
| Execute ordered actions and timed shots | Save a Timeline script, then explicitly run its saved revision |
| React inside Camera Server when an application event occurs | Save an Event script, then explicitly enable its graph |
| Watch progress from another application | Poll events or subscribe with SSE; observation never executes a script |
| Read capture results | List datasets and their indexed files, then download by returned IDs |
Saving a timeline does not run it. Creating a disabled event graph does not enable it. Observing events does not execute event automation.
Direct actions and saved timelines use the same Scripts application services. They do not forward requests to private HTTP handlers.
Supported and excluded capabilities
The API exposes camera discovery, descriptor-backed settings, persistent camera groups, timeline and event document management, explicit execution, operation history, event observation, and indexed dataset downloads.
It does not expose arbitrary node commands, saved light-preset execution, sound targets, arbitrary filesystem paths, uploads, file deletion, archive management, changes to camera numbering, factory reset, or zone selection. The optional MCP companion exposes local AI tools over this same API and obeys its access and validation rules.
POST /captures/managed is a working compatibility alias for /trigger-managed, not a deprecated or error-only route. Both execute the real configured button semantics: selection, warmup, countdown, repeat, movie modes, and any bound timeline. Neither accepts target or timing overrides. The separate /captures/warmup-trigger action remains advanced caller-timed standard-photo preparation with its existing restrictions; it does not represent the button.
API pages
- Connection and access: license, localhost access, trusted-network setting, and shared access.
- Discovery and AI clients: capabilities, schemas, catalog, and safe authoring.
- Cameras and direct actions: camera list, current state, setting descriptors, exact targets, and explicit photo preparation.
- Persistent camera groups: CRUD, revisions, and selection restrictions.
- Timeline scripts: document CRUD, validation, supported steps, execution, and cancellation.
- Event scripts: graphs, event catalog, checks at future firings, and activity.
- Operations and retries: durable state, idempotency, partial results, and restart behavior.
- Observe events: JSON polling, SSE, cursors, shared history, and reconnect rules.
- Datasets and downloads: IDs, capture correlation, indexed files, and path restrictions.
- Errors and limits: status codes, failure handling, and resource ceilings.
- Local client examples: discovery, explicit selection, dry validation, save, run, observe, cancel, and retry.
- Examples by language: the same warmup, wait, and trigger sequence in Node.js, Python, and C#/.NET.
- MCP companion: local stdio setup, AI tools, documentation resources and retry safeguards.
All endpoint paths in these pages are relative to /api/v1. All API success responses are JSON with HTTP 200 unless a table says otherwise. A file download returns bytes; SSE returns a stream. A 200 admission is not proof of successful physical capture.