{"openapi":"3.1.0","info":{"title":"Multicam Cloud Integration API","version":"1.0-preview","description":"Instance-targeted commands and live state using the same RCP owners as the local API. Media is not available over this cloud preview."},"paths":{"/productions/{productionId}/instances/{instanceId}/api/v1/info":{"get":{"summary":"Discover project, version, capabilities, scopes, limits and server clock","security":[{"bearerAuth":[]}],"x-required-scope":"monitor","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"parameters":[{"name":"productionId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","minLength":1}}]},"/productions/{productionId}/instances/{instanceId}/api/v1/state":{"get":{"summary":"Read current public state","security":[{"bearerAuth":[]}],"x-required-scope":"monitor","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"apiVersion":{"const":"1.0-preview"},"state":{"$ref":"#/components/schemas/State"}},"required":["apiVersion","state"]}}}},"400":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"parameters":[{"name":"productionId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","minLength":1}}]},"/productions/{productionId}/instances/{instanceId}/api/v1/commands":{"post":{"summary":"Submit a short-lived command; receipts retained in memory for 60 seconds","security":[{"bearerAuth":[]}],"x-required-scope":"control or routing","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Malformed JSON shape (framework validation)"},"429":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Rejected request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Command"}}}}},"parameters":[{"name":"productionId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","minLength":1}}]},"/productions/{productionId}/instances/{instanceId}/api/v1/events":{"get":{"summary":"WebSocket: snapshot then replacement updates; send {\"type\":\"resync\"} for a fresh snapshot. Revisions are connection-local.","security":[{"bearerAuth":[]}],"x-required-scope":"monitor","description":"Use an Authorization header or send {\"token\":\"...\"} as the first message within 3 seconds. Tokens must never be placed in URLs. Authentication is rechecked every second.","responses":{"101":{"description":"WebSocket upgraded; first-frame authentication must still succeed if no header was supplied."}}},"parameters":[{"name":"productionId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","minLength":1}}]},"/productions":{"get":{"summary":"Discover the credential’s project and authenticated instance peers","responses":{"200":{"description":"Scoped projects and online instances"}}}},"/oauth/token":{"post":{"security":[],"summary":"Exchange client credentials for a short-lived integration token","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["grant_type","client_id","client_secret"],"properties":{"grant_type":{"const":"client_credentials"},"client_id":{"type":"string"},"client_secret":{"type":"string","writeOnly":true}}}}}},"responses":{"200":{"description":"access_token, token_type, expires_in and scope; no-store"}}}},"/clients":{"post":{"security":[{"cloudSignIn":[]}],"summary":"Organization administrator creates a project integration client","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","orgId","productionId","scopes"],"properties":{"name":{"type":"string","maxLength":100},"orgId":{"type":"string"},"productionId":{"type":"string"},"scopes":{"type":"array","minItems":1,"items":{"enum":["monitor","control","routing"]}}}}}}},"responses":{"201":{"description":"Client metadata and a one-time clientSecret"}}},"get":{"security":[{"cloudSignIn":[]}],"summary":"List integration clients","parameters":[{"name":"orgId","in":"query","required":true,"schema":{"type":"string"}},{"name":"productionId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client metadata; secrets excluded"}}}},"/clients/{clientId}":{"delete":{"security":[{"cloudSignIn":[]}],"summary":"Revoke a client and its issued access tokens","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}},{"name":"orgId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Revoked"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"},"cloudSignIn":{"type":"http","scheme":"bearer","description":"Multicam Cloud sign-in; organization administrator required"}},"schemas":{"Command":{"type":"object","additionalProperties":false,"properties":{"requestId":{"type":"string","minLength":1,"maxLength":128},"sentAtMs":{"type":"integer"},"ttlMs":{"type":"integer","minimum":1,"maximum":2000},"operation":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"type":{"const":"controlSet"},"cameraId":{"type":"string"},"controlId":{"type":"string"},"expectedCameraId":{"type":"string"},"value":{"$ref":"#/components/schemas/ControlValue"}},"required":["type","cameraId","controlId","expectedCameraId","value"]},{"type":"object","additionalProperties":false,"properties":{"type":{"const":"controlAdjust"},"cameraId":{"type":"string"},"controlId":{"type":"string"},"expectedCameraId":{"type":"string"},"direction":{"type":"integer","enum":[-1,1]},"step":{"type":"string","enum":["small","normal","big"]}},"required":["type","cameraId","controlId","expectedCameraId","direction","step"]},{"type":"object","additionalProperties":false,"properties":{"type":{"const":"controllerSelect"},"switcherId":{"type":"string"},"choiceId":{"type":"string"},"expectedGeneration":{"type":"integer","minimum":0}},"required":["type","switcherId","choiceId","expectedGeneration"]},{"type":"object","additionalProperties":false,"properties":{"type":{"const":"presetRecall"},"cameraId":{"type":"string"},"kind":{"type":"string","enum":["ptz","scene"]},"number":{"type":"integer","minimum":0,"maximum":999},"expectedGeneration":{"type":"integer","minimum":0}},"required":["type","cameraId","kind","number","expectedGeneration"]},{"type":"object","additionalProperties":false,"properties":{"type":{"const":"presetStore"},"cameraId":{"type":"string"},"kind":{"type":"string","enum":["ptz","scene"]},"number":{"type":"integer","minimum":0,"maximum":999},"expectedGeneration":{"type":"integer","minimum":0}},"required":["type","cameraId","kind","number","expectedGeneration"]},{"type":"object","additionalProperties":false,"properties":{"type":{"const":"presetClear"},"cameraId":{"type":"string"},"kind":{"type":"string","enum":["ptz","scene"]},"number":{"type":"integer","minimum":0,"maximum":999},"expectedGeneration":{"type":"integer","minimum":0}},"required":["type","cameraId","kind","number","expectedGeneration"]},{"type":"object","additionalProperties":false,"properties":{"type":{"const":"routeSet"},"busId":{"type":"string"},"input":{"type":"integer","minimum":0},"output":{"type":"integer","minimum":0}},"required":["type","busId","input","output"]}]}},"required":["requestId","sentAtMs","ttlMs","operation"]},"ImageRequest":{"type":"object","additionalProperties":false,"properties":{"sourceId":{"type":"string","minLength":1,"maxLength":256},"width":{"type":"integer","minimum":16,"maximum":640,"default":160},"height":{"type":"integer","minimum":16,"maximum":360,"default":90},"maxFps":{"type":"integer","minimum":1,"maximum":15,"default":10},"jpegQuality":{"type":"integer","minimum":20,"maximum":90,"default":65}},"required":["sourceId"]},"Control":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"group":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number"},"choices":{},"enumType":{"type":"string"},"allowCustomValue":{"type":"boolean"},"unit":{"type":["string","null"]},"writable":{"type":"boolean"},"behavior":{"type":["string","null"]},"value":{"$ref":"#/components/schemas/ControlValue"},"desired":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"properties":{"behavior":{"type":"string"},"value":{"$ref":"#/components/schemas/ControlValue"}},"required":["behavior","value"]}]},"actual":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"properties":{"value":{"$ref":"#/components/schemas/ControlValue"},"reportedAtMs":{"type":"integer"}},"required":["value","reportedAtMs"]}]},"resolvedCameraId":{"type":["string","null"]}},"required":["id","writable","behavior","value","desired","actual","resolvedCameraId","unit"]},"Frame":{"type":"object","additionalProperties":false,"properties":{"apiVersion":{"const":"1.0-preview"},"type":{"const":"frame"},"sourceId":{"type":"string"},"sourceRevision":{"type":"string"},"sequence":{"type":"integer"},"capturedAtMs":{"type":"integer"},"width":{"type":"integer"},"height":{"type":"integer"},"image":{"type":"string","pattern":"^data:image/jpeg;base64,"}},"required":["apiVersion","type","sourceId","sourceRevision","sequence","capturedAtMs","width","height","image"]},"State":{"type":"object","additionalProperties":false,"properties":{"cameras":{"type":"array","items":{"$ref":"#/components/schemas/Camera"}},"users":{"type":"array","items":{"$ref":"#/components/schemas/User"}},"videoSources":{"type":"array","items":{"$ref":"#/components/schemas/VideoSource"}},"routing":{"type":"array","items":{"$ref":"#/components/schemas/RoutingBus"}},"controllerSwitchers":{"$ref":"#/components/schemas/ControllerState"}},"required":["cameras","users","videoSources","routing","controllerSwitchers"]},"Error":{"type":"object","additionalProperties":false,"properties":{"apiVersion":{"const":"1.0-preview"},"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["apiVersion","error"]},"StateEvent":{"type":"object","additionalProperties":false,"properties":{"apiVersion":{"const":"1.0-preview"},"type":{"enum":["snapshot","update"]},"revision":{"type":"integer"},"baseRevision":{"type":["integer","null"]},"replace":{"type":"object","description":"Changed collections. Replace each named collection in full."}},"required":["apiVersion","type","revision","baseRevision","replace"]},"ControlValue":{"oneOf":[{"type":["number","boolean","string","null"]},{"type":"object","additionalProperties":false,"properties":{"index":{"type":"integer"},"value":{"type":["number","boolean","string"]}},"required":["index","value"]}]},"Preset":{"type":"object","additionalProperties":false,"properties":{"kind":{"enum":["ptz","scene"]},"number":{"type":"integer","minimum":0},"name":{"type":["string","null"]}},"required":["kind","number","name"]},"Camera":{"type":"object","additionalProperties":false,"properties":{"uuid":{"type":"string"},"id":{"type":"number"},"name":{"type":"string"},"displayName":{"type":"string"},"virtualCameraEnable":{"type":"boolean"},"controls":{"type":"array","items":{"$ref":"#/components/schemas/Control"}},"tally":{"$ref":"#/components/schemas/ControlValue"},"presets":{"type":"array","items":{"$ref":"#/components/schemas/Preset"}},"controllerSwitcherSlot":{"type":"object","additionalProperties":false,"properties":{"switcherId":{"type":"string"},"slotId":{"type":"string"}},"required":["switcherId","slotId"]}},"required":["uuid","id","name","displayName","virtualCameraEnable","controls","tally","presets"]},"User":{"type":"object","additionalProperties":false,"properties":{"uuid":{"type":"string"},"name":{"type":"string"},"previewedCameraUuid":{"type":["string","null"]},"attachedVirtualCameraUuid":{"type":["string","null"]}},"required":["uuid","name"]},"RouteReference":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"uuid":{"type":"string"},"number":{"type":"integer"}},"required":[]},"Port":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"customName":{"type":"string"},"tallyColor":{"type":["string","null"]},"routedFrom":{"$ref":"#/components/schemas/RouteReference"},"routedInput":{"type":"object","additionalProperties":false,"properties":{"number":{"type":"integer"},"inputObject":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"uuid":{"type":"string"},"name":{"type":"string"}},"required":[]}},"required":[]}},"required":[]},"RoutingBus":{"type":"object","additionalProperties":false,"properties":{"uuid":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"inputs":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Port"}},"outputs":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Port"}}},"required":["uuid","inputs","outputs"]},"VideoSource":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"status":{}},"required":["id","type"]},"ControllerTarget":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"type":{"const":"camera"},"cameraId":{"type":"string"}},"required":["type","cameraId"]},{"type":"object","additionalProperties":false,"properties":{"type":{"const":"vision"},"moduleId":{"type":"string"},"busId":{"type":"string"},"programOutput":{"type":"integer","minimum":0},"previewOutput":{"type":"integer","minimum":0}},"required":["type","moduleId","busId","programOutput","previewOutput"]},{"type":"object","additionalProperties":false,"properties":{"type":{"const":"audio"},"moduleId":{"type":"string"},"busId":{"type":"string"}},"required":["type","moduleId","busId"]},{"type":"object","additionalProperties":false,"properties":{"type":{"const":"companion"},"moduleId":{"type":"string"}},"required":["type","moduleId"]},{"type":"object","additionalProperties":false,"properties":{"type":{"const":"switcher"},"switcherId":{"type":"string"},"slotId":{"type":"string"},"choiceId":{"type":"string"}},"required":["type","switcherId","slotId"]}]},"ControllerSlot":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"kind":{"enum":["camera","vision","audio","companion"]},"optional":{"type":"boolean"},"controllerModuleIds":{"type":"array","items":{"type":"string"}}},"required":["id","name","kind","optional","controllerModuleIds"]},"ControllerChoice":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"targets":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/ControllerTarget"},{"type":"null"}]}}},"required":["id","name","targets"]},"ControllerSwitcher":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"ownerUserId":{"type":"string"},"virtualCameraMode":{"type":"boolean"},"embedded":{"type":"boolean"},"slots":{"type":"array","items":{"$ref":"#/components/schemas/ControllerSlot"}},"choices":{"type":"array","items":{"$ref":"#/components/schemas/ControllerChoice"}},"selectedChoiceId":{"type":"string"}},"required":["id","name","virtualCameraMode","embedded","slots","choices","selectedChoiceId"]},"ControllerAssignment":{"type":"object","additionalProperties":false,"properties":{"effectiveChoiceId":{"type":"string"},"switcherId":{"type":"string"},"slotId":{"type":"string"},"kind":{"enum":["camera","vision","audio","companion"]},"optional":{"type":"boolean"},"generation":{"type":"integer","minimum":0},"controllerModuleIds":{"type":"array","items":{"type":"string"}},"path":{"type":"array","items":{"type":"string"}},"target":{"oneOf":[{"$ref":"#/components/schemas/ControllerTarget"},{"type":"null"}]},"readiness":{"type":"object","additionalProperties":false,"properties":{"assigned":{"type":"boolean"},"controllers":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"status":{"type":["string","null"]}},"required":["id","status"]}}},"required":["assigned","controllers"]}},"required":["effectiveChoiceId","switcherId","slotId","kind","optional","generation","controllerModuleIds","path","target","readiness"]},"ControllerState":{"type":"object","additionalProperties":false,"properties":{"generation":{"type":"integer","minimum":0},"switchers":{"type":"array","items":{"$ref":"#/components/schemas/ControllerSwitcher"}},"assignments":{"type":"array","items":{"$ref":"#/components/schemas/ControllerAssignment"}}},"required":["generation","switchers","assignments"]}}},"servers":[{"url":"https://api.cloud.multicam.systems/control/v1"}],"x-local-contract-sha256":"e2bed0fb26312f3b0afee3b2d43116e05babb283e72dfbb9fc012347d149d47a"}