Skip to main content

Cloud API reference

The Cloud API lets an integration control a running RCP production over the internet. It supports camera controls, presets, controller selection, routing and live state. Start with Cloud API to create credentials.

All HTTP paths below use https://api.cloud.multicam.systems. Requests and responses use JSON unless stated otherwise. Example credentials and IDs are fictional. Responses marked as excerpts omit unrelated fields.

Credentials​

There are two credentials in the setup:

CredentialUsed for
Organization access tokenList Cloud projects and create, list or revoke their integration clients
Project control tokenDiscover connected instances and control the one project assigned to the client

Get a project control token​

POST
https://api.cloud.multicam.systems/control/v1/oauth/token
POST /control/v1/oauth/token HTTP/1.1
Host: api.cloud.multicam.systems
Content-Type: application/json

{
"grant_type": "client_credentials",
"client_id": "example-project-client",
"client_secret": "example-project-secret"
}

Send the returned token in Authorization: Bearer example-control-token. Request a new token before expires_in seconds elapse. There is no refresh-token exchange.

The endpoint also accepts HTTP Basic authentication with the project client's ID and secret, plus form data grant_type=client_credentials.

Manage project clients​

These routes require an organization administrator's access token.

Method and pathRequestResponse
POST /control/v1/clientsJSON: name, orgId, productionId, scopes201: {client, clientSecret}
GET /control/v1/clients?orgId=ORG&productionId=PROJECTOrganization and project IDs200: {clients: [...]}
DELETE /control/v1/clients/CLIENT?orgId=ORGClient and organization IDs204, no body

productionId is the Cloud project's id. name is 1–100 characters. scopes is an array containing monitor, control and/or routing, and defaults to monitor when omitted.

Client records include clientId, name, orgId, productionId, scopes, status and timestamps. Only creation returns the secret. To change permissions or replace the secret, create a replacement client and revoke the old one.

Revocation invalidates the client's control tokens and closes its state subscriptions on their next access check. Commands already accepted by RCP can finish.

Connect to an instance​

With a project control token, discover the assigned project and its connected instances:

GET
https://api.cloud.multicam.systems/control/v1/productions
GET /control/v1/productions HTTP/1.1
Host: api.cloud.multicam.systems
Authorization: Bearer example-control-token

Choose the RCP Core running the project. Use its instance ID in this connection base:

https://api.cloud.multicam.systems/control/v1/productions/project-id/instances/core-id

The connection stays attached to that instance. It does not switch to another computer if Core becomes unavailable.

Path after the connection baseMethodScopeReturns
/api/v1/infoGETmonitorProject identity, capabilities, scopes, limits and server clock
/api/v1/stateGETmonitorLive cameras, controls, seats, controller switchers and routing
/api/v1/openapi.jsonGETmonitorAPI schema
/api/v1/commandsPOSTcontrol, or routing for routeSetCommand receipt
/api/v1/eventsWebSocketmonitorSnapshot followed by state changes

The public OpenAPI document describes the instance API without requiring a token. The API is currently a preview. Use info to discover the connected Core's capabilities.

Read state​

This example shows one camera and one control from the response:

GET
https://api.cloud.multicam.systems/control/v1/productions/project-id/instances/core-id/api/v1/state
GET /control/v1/productions/project-id/instances/core-id/api/v1/state HTTP/1.1
Host: api.cloud.multicam.systems
Authorization: Bearer example-control-token

This state comes from the running RCP instance. The full response also includes seats, routing and controller switchers.

Use each camera's uuid as its API identifier. Each control includes its id, writable flag, resolvedCameraId, value and supported range or choices. actual contains hardware readback when available, while desired contains the requested value.

Send commands​

Send a JSON command to POST /api/v1/commands at the connection base.

FieldValue
requestIdUnique string, 1–128 characters
sentAtMsCurrent Unix time in milliseconds
ttlMsCommand lifetime, 1–2000 milliseconds
operationOne of the operations below

Check the serverTimeMs returned by info when synchronizing the client clock. RCP rejects expired commands and timestamps more than one second ahead of its clock.

OperationFields inside operation
controlSetcameraId, controlId, expectedCameraId, value
controlAdjustcameraId, controlId, expectedCameraId, direction (-1 or 1), step (small, normal or big)
controllerSelectswitcherId, expectedGeneration, choiceId
presetRecall, presetStore, presetClearcameraId, kind (ptz or scene), number (zero-based, 0–999), expectedGeneration
routeSetbusId, input, output from routing discovery

For camera controls, set expectedCameraId to the control's discovered resolvedCameraId. For controller selection and presets, use state.controllerSwitchers.generation as expectedGeneration. This lets RCP reject a command if the assignment has changed.

For controller selection, the running Core also accepts slotId or action instead of choiceId. Set action to nextCamera or previousCamera.

Using the camera discovered above, this request sets its iris to 0.6. Use a new request ID and the current timestamp when sending it:

POST
https://api.cloud.multicam.systems/control/v1/productions/project-id/instances/core-id/api/v1/commands
POST /control/v1/productions/project-id/instances/core-id/api/v1/commands HTTP/1.1
Host: api.cloud.multicam.systems
Authorization: Bearer example-control-token
Content-Type: application/json

{
"requestId": "iris-001",
"sentAtMs": 1791676800000,
"ttlMs": 2000,
"operation": {
"type": "controlSet",
"cameraId": "camera-id",
"controlId": "iris_absolute",
"expectedCameraId": "camera-id",
"value": 0.6
}
}

Read status and dispatchStatus to check the outcome. A receipt can report a rejected command even with HTTP 200. Acceptance means RCP admitted the command. Observe actual readback to confirm a hardware change where the device supports it.

If the request times out, retry the same command body and request ID. RCP keeps receipts for 60 seconds. After that, read the current state before sending a new command.

Continuous pan, tilt, zoom and focus movement are unavailable in this API. PTZ preset recall is supported. Cloud image delivery is also unavailable.

Subscribe to state​

WebSocket supplies the initial state and subsequent changes. Continue to send commands over REST.

Send authentication as the first message within three seconds, or include the bearer token in the WebSocket handshake. The server messages below are excerpts showing a camera being renamed.

WS
wss://api.cloud.multicam.systems/control/v1/productions/project-id/instances/core-id/api/v1/events
{"token": "example-control-token"}

Replace every collection included in replace in full. An empty array removes its previous contents. If baseRevision differs from the last revision received, send {"type":"resync"} and replace the model with the next snapshot.

When the token expires, obtain a new token and reconnect. Reconnection starts a new snapshot and revision sequence.

Errors​

Control requests return an error object containing a code and, when available, a message.

ResponseMeaning
400 / 422Invalid fields or values. Check the error code and discovery data.
401Invalid, expired or revoked token
403 project_mismatchThe token belongs to another project
403 insufficient_scopeThe client lacks the required permission
403 ORG_ADMIN_REQUIREDClient management requires organization admin access
404The requested project, client or target does not exist or is inaccessible
409 assignment_changedRefresh state before selecting the target again
409 expiredThe timestamp is too old or more than one second ahead. Synchronize the client clock and send a fresh command.
Other 409Check request ID reuse or the active project on the target
429Reduce requests or subscriptions. Token requests may include Retry-After.
503Core is unavailable, the target is a Satellite, or connection capacity is reached

Token-exchange errors use OAuth fields instead: error: "invalid_client", "unsupported_grant_type" or "slow_down".

Discovery and schema endpoints use INSUFFICIENT_SCOPE and PRODUCTION_SCOPE_MISMATCH for the corresponding permission and project errors.

WebSocket close codes include 4400 for an invalid message, 4401 for authentication timeout, expired access or an unavailable target, and 4403 for an unavailable target or denied access.