---
title: "obs-websocket v5 protocol reference (generated)"
source: https://obs-rust.com/websocket/
commit: 524486a44c81ef30b039f10ab955bc778f39e225
tier: reference
tokens_est: 22922
---
# obs-websocket v5 protocol reference (generated)

## Enums
### EventSubscription
- `None` = `0`: Subcription value used to disable all events.
- `General` = `(1 << 0)`: Subscription value to receive events in the `General` category.
- `Config` = `(1 << 1)`: Subscription value to receive events in the `Config` category.
- `Scenes` = `(1 << 2)`: Subscription value to receive events in the `Scenes` category.
- `Inputs` = `(1 << 3)`: Subscription value to receive events in the `Inputs` category.
- `Transitions` = `(1 << 4)`: Subscription value to receive events in the `Transitions` category.
- `Filters` = `(1 << 5)`: Subscription value to receive events in the `Filters` category.
- `Outputs` = `(1 << 6)`: Subscription value to receive events in the `Outputs` category.
- `SceneItems` = `(1 << 7)`: Subscription value to receive events in the `SceneItems` category.
- `MediaInputs` = `(1 << 8)`: Subscription value to receive events in the `MediaInputs` category.
- `Vendors` = `(1 << 9)`: Subscription value to receive the `VendorEvent` event.
- `Ui` = `(1 << 10)`: Subscription value to receive events in the `Ui` category.
- `Canvases` = `(1 << 11)`: Subscription value to receive events in the `Canvases` category.
- `All` = `(General | Config | Scenes | Inputs | Transitions | Filters | Outputs | SceneItems | MediaInputs | Vendors | Ui | Canvases)`: Helper to receive all non-high-volume events.
- `InputVolumeMeters` = `(1 << 16)`: Subscription value to receive the `InputVolumeMeters` high-volume event.
- `InputActiveStateChanged` = `(1 << 17)`: Subscription value to receive the `InputActiveStateChanged` high-volume event.
- `InputShowStateChanged` = `(1 << 18)`: Subscription value to receive the `InputShowStateChanged` high-volume event.
- `SceneItemTransformChanged` = `(1 << 19)`: Subscription value to receive the `SceneItemTransformChanged` high-volume event.

### RequestBatchExecutionType
- `None` = `-1`: Not a request batch.
- `SerialRealtime` = `0`: A request batch which processes all requests serially, as fast as possible.

Note: To introduce artificial delay, use the `Sleep` request and the `sleepMillis` request field.
- `SerialFrame` = `1`: A request batch type which processes all requests serially, in sync with the graphics thread. Designed to provide high accuracy for animations.

Note: To introduce artificial delay, use the `Sleep` request and the `sleepFrames` request field.
- `Parallel` = `2`: A request batch type which processes all requests using all available threads in the thread pool.

Note: This is mainly experimental, and only really shows its colors during requests which require lots of
active processing, like `GetSourceScreenshot`.

### RequestStatus
- `Unknown` = `0`: Unknown status, should never be used.
- `NoError` = `10`: For internal use to signify a successful field check.
- `Success` = `100`: The request has succeeded.
- `MissingRequestType` = `203`: The `requestType` field is missing from the request data.
- `UnknownRequestType` = `204`: The request type is invalid or does not exist.
- `GenericError` = `205`: Generic error code.

Note: A comment is required to be provided by obs-websocket.
- `UnsupportedRequestBatchExecutionType` = `206`: The request batch execution type is not supported.
- `NotReady` = `207`: The server is not ready to handle the request.

Note: This usually occurs during OBS scene collection change or exit. Requests may be tried again after a delay if this code is given.
- `MissingRequestField` = `300`: A required request field is missing.
- `MissingRequestData` = `301`: The request does not have a valid requestData object.
- `InvalidRequestField` = `400`: Generic invalid request field message.

Note: A comment is required to be provided by obs-websocket.
- `InvalidRequestFieldType` = `401`: A request field has the wrong data type.
- `RequestFieldOutOfRange` = `402`: A request field (number) is outside of the allowed range.
- `RequestFieldEmpty` = `403`: A request field (string or array) is empty and cannot be.
- `TooManyRequestFields` = `404`: There are too many request fields (eg. a request takes two optionals, where only one is allowed at a time).
- `OutputRunning` = `500`: An output is running and cannot be in order to perform the request.
- `OutputNotRunning` = `501`: An output is not running and should be.
- `OutputPaused` = `502`: An output is paused and should not be.
- `OutputNotPaused` = `503`: An output is not paused and should be.
- `OutputDisabled` = `504`: An output is disabled and should not be.
- `StudioModeActive` = `505`: Studio mode is active and cannot be.
- `StudioModeNotActive` = `506`: Studio mode is not active and should be.
- `ResourceNotFound` = `600`: The resource was not found.

Note: Resources are any kind of object in obs-websocket, like inputs, profiles, outputs, etc.
- `ResourceAlreadyExists` = `601`: The resource already exists.
- `InvalidResourceType` = `602`: The type of resource found is invalid.
- `NotEnoughResources` = `603`: There are not enough instances of the resource in order to perform the request.
- `InvalidResourceState` = `604`: The state of the resource is invalid. For example, if the resource is blocked from being accessed.
- `InvalidInputKind` = `605`: The specified input (obs_source_t-OBS_SOURCE_TYPE_INPUT) had the wrong kind.
- `ResourceNotConfigurable` = `606`: The resource does not support being configured.

This is particularly relevant to transitions, where they do not always have changeable settings.
- `InvalidFilterKind` = `607`: The specified filter (obs_source_t-OBS_SOURCE_TYPE_FILTER) had the wrong kind.
- `ResourceCreationFailed` = `700`: Creating the resource failed.
- `ResourceActionFailed` = `701`: Performing an action on the resource failed.
- `RequestProcessingFailed` = `702`: Processing the request failed unexpectedly.

Note: A comment is required to be provided by obs-websocket.
- `CannotAct` = `703`: The combination of request fields cannot be used to perform an action.

### ObsOutputState
- `OBS_WEBSOCKET_OUTPUT_UNKNOWN` = `OBS_WEBSOCKET_OUTPUT_UNKNOWN`: Unknown state.
- `OBS_WEBSOCKET_OUTPUT_STARTING` = `OBS_WEBSOCKET_OUTPUT_STARTING`: The output is starting.
- `OBS_WEBSOCKET_OUTPUT_STARTED` = `OBS_WEBSOCKET_OUTPUT_STARTED`: The input has started.
- `OBS_WEBSOCKET_OUTPUT_STOPPING` = `OBS_WEBSOCKET_OUTPUT_STOPPING`: The output is stopping.
- `OBS_WEBSOCKET_OUTPUT_STOPPED` = `OBS_WEBSOCKET_OUTPUT_STOPPED`: The output has stopped.
- `OBS_WEBSOCKET_OUTPUT_RECONNECTING` = `OBS_WEBSOCKET_OUTPUT_RECONNECTING`: The output has disconnected and is reconnecting.
- `OBS_WEBSOCKET_OUTPUT_RECONNECTED` = `OBS_WEBSOCKET_OUTPUT_RECONNECTED`: The output has reconnected successfully.
- `OBS_WEBSOCKET_OUTPUT_PAUSED` = `OBS_WEBSOCKET_OUTPUT_PAUSED`: The output is now paused.
- `OBS_WEBSOCKET_OUTPUT_RESUMED` = `OBS_WEBSOCKET_OUTPUT_RESUMED`: The output has been resumed (unpaused).

### ObsMediaInputAction
- `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NONE` = `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NONE`: No action.
- `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAY` = `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAY`: Play the media input.
- `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PAUSE` = `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PAUSE`: Pause the media input.
- `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_STOP` = `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_STOP`: Stop the media input.
- `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTART` = `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTART`: Restart the media input.
- `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NEXT` = `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NEXT`: Go to the next playlist item.
- `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PREVIOUS` = `OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PREVIOUS`: Go to the previous playlist item.

### WebSocketCloseCode
- `DontClose` = `0`: For internal use only to tell the request handler not to perform any close action.
- `UnknownReason` = `4000`: Unknown reason, should never be used.
- `MessageDecodeError` = `4002`: The server was unable to decode the incoming websocket message.
- `MissingDataField` = `4003`: A data field is required but missing from the payload.
- `InvalidDataFieldType` = `4004`: A data field's value type is invalid.
- `InvalidDataFieldValue` = `4005`: A data field's value is invalid.
- `UnknownOpCode` = `4006`: The specified `op` was invalid or missing.
- `NotIdentified` = `4007`: The client sent a websocket message without first sending `Identify` message.
- `AlreadyIdentified` = `4008`: The client sent an `Identify` message while already identified.

Note: Once a client has identified, only `Reidentify` may be used to change session parameters.
- `AuthenticationFailed` = `4009`: The authentication attempt (via `Identify`) failed.
- `UnsupportedRpcVersion` = `4010`: The server detected the usage of an old version of the obs-websocket RPC protocol.
- `SessionInvalidated` = `4011`: The websocket session has been invalidated by the obs-websocket server.

Note: This is the code used by the `Kick` button in the UI Session List. If you receive this code, you must not automatically reconnect.
- `UnsupportedFeature` = `4012`: A requested feature is not supported due to hardware/software limitations.

### WebSocketOpCode
- `Hello` = `0`: The initial message sent by obs-websocket to newly connected clients.
- `Identify` = `1`: The message sent by a newly connected client to obs-websocket in response to a `Hello`.
- `Identified` = `2`: The response sent by obs-websocket to a client after it has successfully identified with obs-websocket.
- `Reidentify` = `3`: The message sent by an already-identified client to update identification parameters.
- `Event` = `5`: The message sent by obs-websocket containing an event payload.
- `Request` = `6`: The message sent by a client to obs-websocket to perform a request.
- `RequestResponse` = `7`: The message sent by obs-websocket in response to a particular request from a client.
- `RequestBatch` = `8`: The message sent by a client to obs-websocket to perform a batch of requests.
- `RequestBatchResponse` = `9`: The message sent by obs-websocket in response to a particular batch of requests from a client.

## Requests
### GetCanvasList
Category: canvases. Since 5.7.0. Complexity 3/5.
Gets an array of canvases in OBS.
Response fields:
- `canvases` Array<Object>: Array of canvases

### GetPersistentData
Category: config. Since 5.0.0. Complexity 2/5.
Gets the value of a "slot" from the selected persistent data realm.
Request fields:
- `realm` String: The data realm to select. `OBS_WEBSOCKET_DATA_REALM_GLOBAL` or `OBS_WEBSOCKET_DATA_REALM_PROFILE`
- `slotName` String: The name of the slot to retrieve data from
Response fields:
- `slotValue` Any: Value associated with the slot. `null` if not set

### SetPersistentData
Category: config. Since 5.0.0. Complexity 2/5.
Sets the value of a "slot" from the selected persistent data realm.
Request fields:
- `realm` String: The data realm to select. `OBS_WEBSOCKET_DATA_REALM_GLOBAL` or `OBS_WEBSOCKET_DATA_REALM_PROFILE`
- `slotName` String: The name of the slot to retrieve data from
- `slotValue` Any: The value to apply to the slot

### GetSceneCollectionList
Category: config. Since 5.0.0. Complexity 1/5.
Gets an array of all scene collections
Response fields:
- `currentSceneCollectionName` String: The name of the current scene collection
- `sceneCollections` Array<String>: Array of all available scene collections

### SetCurrentSceneCollection
Category: config. Since 5.0.0. Complexity 1/5.
Switches to a scene collection.

Note: This will block until the collection has finished changing.
Request fields:
- `sceneCollectionName` String: Name of the scene collection to switch to

### CreateSceneCollection
Category: config. Since 5.0.0. Complexity 1/5.
Creates a new scene collection, switching to it in the process.

Note: This will block until the collection has finished changing.
Request fields:
- `sceneCollectionName` String: Name for the new scene collection

### GetProfileList
Category: config. Since 5.0.0. Complexity 1/5.
Gets an array of all profiles
Response fields:
- `currentProfileName` String: The name of the current profile
- `profiles` Array<String>: Array of all available profiles

### SetCurrentProfile
Category: config. Since 5.0.0. Complexity 1/5.
Switches to a profile.
Request fields:
- `profileName` String: Name of the profile to switch to

### CreateProfile
Category: config. Since 5.0.0. Complexity 1/5.
Creates a new profile, switching to it in the process
Request fields:
- `profileName` String: Name for the new profile

### RemoveProfile
Category: config. Since 5.0.0. Complexity 1/5.
Removes a profile. If the current profile is chosen, it will change to a different profile first.
Request fields:
- `profileName` String: Name of the profile to remove

### GetProfileParameter
Category: config. Since 5.0.0. Complexity 4/5.
Gets a parameter from the current profile's configuration.
Request fields:
- `parameterCategory` String: Category of the parameter to get
- `parameterName` String: Name of the parameter to get
Response fields:
- `parameterValue` String: Value associated with the parameter. `null` if not set and no default
- `defaultParameterValue` String: Default value associated with the parameter. `null` if no default

### SetProfileParameter
Category: config. Since 5.0.0. Complexity 4/5.
Sets the value of a parameter in the current profile's configuration.
Request fields:
- `parameterCategory` String: Category of the parameter to set
- `parameterName` String: Name of the parameter to set
- `parameterValue` String: Value of the parameter to set. Use `null` to delete

### GetVideoSettings
Category: config. Since 5.0.0. Complexity 2/5.
Gets the current video settings.

Note: To get the true FPS value, divide the FPS numerator by the FPS denominator. Example: `60000/1001`
Response fields:
- `fpsNumerator` Number: Numerator of the fractional FPS value
- `fpsDenominator` Number: Denominator of the fractional FPS value
- `baseWidth` Number: Width of the base (canvas) resolution in pixels
- `baseHeight` Number: Height of the base (canvas) resolution in pixels
- `outputWidth` Number: Width of the output resolution in pixels
- `outputHeight` Number: Height of the output resolution in pixels

### SetVideoSettings
Category: config. Since 5.0.0. Complexity 2/5.
Sets the current video settings.

Note: Fields must be specified in pairs. For example, you cannot set only `baseWidth` without needing to specify `baseHeight`.
Request fields:
- `fpsNumerator` Number (optional, default Not changed) restrictions: >= 1: Numerator of the fractional FPS value
- `fpsDenominator` Number (optional, default Not changed) restrictions: >= 1: Denominator of the fractional FPS value
- `baseWidth` Number (optional, default Not changed) restrictions: >= 1, <= 4096: Width of the base (canvas) resolution in pixels
- `baseHeight` Number (optional, default Not changed) restrictions: >= 1, <= 4096: Height of the base (canvas) resolution in pixels
- `outputWidth` Number (optional, default Not changed) restrictions: >= 1, <= 4096: Width of the output resolution in pixels
- `outputHeight` Number (optional, default Not changed) restrictions: >= 1, <= 4096: Height of the output resolution in pixels

### GetStreamServiceSettings
Category: config. Since 5.0.0. Complexity 4/5.
Gets the current stream service settings (stream destination).
Response fields:
- `streamServiceType` String: Stream service type, like `rtmp_custom` or `rtmp_common`
- `streamServiceSettings` Object: Stream service settings

### SetStreamServiceSettings
Category: config. Since 5.0.0. Complexity 4/5.
Sets the current stream service settings (stream destination).

Note: Simple RTMP settings can be set with type `rtmp_custom` and the settings fields `server` and `key`.
Request fields:
- `streamServiceType` String: Type of stream service to apply. Example: `rtmp_common` or `rtmp_custom`
- `streamServiceSettings` Object: Settings to apply to the service

### GetRecordDirectory
Category: config. Since 5.0.0. Complexity 2/5.
Gets the current directory that the record output is set to.
Response fields:
- `recordDirectory` String: Output directory

### SetRecordDirectory
Category: config. Since 5.3.0. Complexity 2/5.
Sets the current directory that the record output writes files to.
Request fields:
- `recordDirectory` String: Output directory

### GetSourceFilterKindList
Category: filters. Since 5.4.0. Complexity 2/5.
Gets an array of all available source filter kinds.

Similar to `GetInputKindList`
Response fields:
- `sourceFilterKinds` Array<String>: Array of source filter kinds

### GetSourceFilterList
Category: filters. Since 5.0.0. Complexity 2/5.
Gets an array of all of a source's filters.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the source is in, if using the sourceName field
- `sourceName` String (optional, default Unknown): Name of the source
- `sourceUuid` String (optional, default Unknown): UUID of the source
Response fields:
- `filters` Array<Object>: Array of filters

### GetSourceFilterDefaultSettings
Category: filters. Since 5.0.0. Complexity 3/5.
Gets the default settings for a filter kind.
Request fields:
- `filterKind` String: Filter kind to get the default settings for
Response fields:
- `defaultFilterSettings` Object: Object of default settings for the filter kind

### CreateSourceFilter
Category: filters. Since 5.0.0. Complexity 3/5.
Creates a new filter, adding it to the specified source.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the source is in, if using the sourceName field
- `sourceName` String (optional, default Unknown): Name of the source to add the filter to
- `sourceUuid` String (optional, default Unknown): UUID of the source to add the filter to
- `filterName` String: Name of the new filter to be created
- `filterKind` String: The kind of filter to be created
- `filterSettings` Object (optional, default Default settings used): Settings object to initialize the filter with

### RemoveSourceFilter
Category: filters. Since 5.0.0. Complexity 2/5.
Removes a filter from a source.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the source is in, if using the sourceName field
- `sourceName` String (optional, default Unknown): Name of the source the filter is on
- `sourceUuid` String (optional, default Unknown): UUID of the source the filter is on
- `filterName` String: Name of the filter to remove

### SetSourceFilterName
Category: filters. Since 5.0.0. Complexity 2/5.
Sets the name of a source filter (rename).
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the source is in, if using the sourceName field
- `sourceName` String (optional, default Unknown): Name of the source the filter is on
- `sourceUuid` String (optional, default Unknown): UUID of the source the filter is on
- `filterName` String: Current name of the filter
- `newFilterName` String: New name for the filter

### GetSourceFilter
Category: filters. Since 5.0.0. Complexity 2/5.
Gets the info for a specific source filter.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the source is in, if using the sourceName field
- `sourceName` String (optional, default Unknown): Name of the source
- `sourceUuid` String (optional, default Unknown): UUID of the source
- `filterName` String: Name of the filter
Response fields:
- `filterEnabled` Boolean: Whether the filter is enabled
- `filterIndex` Number: Index of the filter in the list, beginning at 0
- `filterKind` String: The kind of filter
- `filterSettings` Object: Settings object associated with the filter

### SetSourceFilterIndex
Category: filters. Since 5.0.0. Complexity 3/5.
Sets the index position of a filter on a source.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the source is in, if using the sourceName field
- `sourceName` String (optional, default Unknown): Name of the source the filter is on
- `sourceUuid` String (optional, default Unknown): UUID of the source the filter is on
- `filterName` String: Name of the filter
- `filterIndex` Number restrictions: >= 0: New index position of the filter

### SetSourceFilterSettings
Category: filters. Since 5.0.0. Complexity 3/5.
Sets the settings of a source filter.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the source is in, if using the sourceName field
- `sourceName` String (optional, default Unknown): Name of the source the filter is on
- `sourceUuid` String (optional, default Unknown): UUID of the source the filter is on
- `filterName` String: Name of the filter to set the settings of
- `filterSettings` Object: Object of settings to apply
- `overlay` Boolean (optional, default true): True == apply the settings on top of existing ones, False == reset the input to its defaults, then apply settings.

### SetSourceFilterEnabled
Category: filters. Since 5.0.0. Complexity 3/5.
Sets the enable state of a source filter.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the source is in, if using the sourceName field
- `sourceName` String (optional, default Unknown): Name of the source the filter is on
- `sourceUuid` String (optional, default Unknown): UUID of the source the filter is on
- `filterName` String: Name of the filter
- `filterEnabled` Boolean: New enable state of the filter

### GetVersion
Category: general. Since 5.0.0. Complexity 1/5.
Gets data about the current plugin and RPC version.
Response fields:
- `obsVersion` String: Current OBS Studio version
- `obsWebSocketVersion` String: Current obs-websocket version
- `rpcVersion` Number: Current latest obs-websocket RPC version
- `availableRequests` Array<String>: Array of available RPC requests for the currently negotiated RPC version
- `supportedImageFormats` Array<String>: Image formats available in `GetSourceScreenshot` and `SaveSourceScreenshot` requests.
- `platform` String: Name of the platform. Usually `windows`, `macos`, or `ubuntu` (linux flavor). Not guaranteed to be any of those
- `platformDescription` String: Description of the platform, like `Windows 10 (10.0)`

### GetStats
Category: general. Since 5.0.0. Complexity 2/5.
requests). os_cpu_usage_info_query() updates it, and requests run in
parallel on the thread pool. */
Gets statistics about OBS, obs-websocket, and the current session.
Response fields:
- `cpuUsage` Number: CPU usage of OBS in percent since this client's previous `GetStats` (since it connected, for the first)
- `memoryUsage` Number: Amount of memory in MB currently being used by OBS
- `availableDiskSpace` Number: Available disk space on the device being used for recording storage
- `activeFps` Number: Current FPS being rendered
- `averageFrameRenderTime` Number: Average time in milliseconds that OBS is taking to render a frame
- `renderSkippedFrames` Number: Number of frames skipped by OBS in the render thread
- `renderTotalFrames` Number: Total number of frames outputted by the render thread
- `outputSkippedFrames` Number: Number of frames skipped by OBS in the output thread
- `outputTotalFrames` Number: Total number of frames outputted by the output thread
- `gpuAcceleration` Object: GPU acceleration status (`state` green/yellow/red, `adapter`, `detectedGpus`, `summary`, `causes`), or null when the frontend does not report it
- `webSocketSessionIncomingMessages` Number: Total number of messages received by obs-websocket from the client
- `webSocketSessionOutgoingMessages` Number: Total number of messages sent by obs-websocket to the client

### BroadcastCustomEvent
Category: general. Since 5.0.0. Complexity 1/5.
Broadcasts a `CustomEvent` to all WebSocket clients. Receivers are clients which are identified and subscribed.
Request fields:
- `eventData` Object: Data payload to emit to all receivers

### CallVendorRequest
Category: general. Since 5.0.0. Complexity 3/5.
Call a request registered to a vendor.

A vendor is a unique name registered by a third-party plugin or script, which allows for custom requests and events to be added to obs-websocket.
If a plugin or script implements vendor requests or events, documentation is expected to be provided with them.
Request fields:
- `vendorName` String: Name of the vendor to use
- `requestType` String: The request type to call
- `requestData` Object (optional, default {}): Object containing appropriate request data
Response fields:
- `vendorName` String: Echoed of `vendorName`
- `requestType` String: Echoed of `requestType`
- `responseData` Object: Object containing appropriate response data. {} if request does not provide any response data

### GetHotkeyList
Category: general. Since 5.0.0. Complexity 4/5.
Gets an array of all hotkey names in OBS.

Note: Hotkey functionality in obs-websocket comes as-is, and we do not guarantee support if things are broken. In 9/10 usages of hotkey requests, there exists a better, more reliable method via other requests.
Response fields:
- `hotkeys` Array<String>: Array of hotkey names

### TriggerHotkeyByName
Category: general. Since 5.0.0. Complexity 4/5.
Triggers a hotkey using its name. See `GetHotkeyList`.

Note: Hotkey functionality in obs-websocket comes as-is, and we do not guarantee support if things are broken. In 9/10 usages of hotkey requests, there exists a better, more reliable method via other requests.
Request fields:
- `hotkeyName` String: Name of the hotkey to trigger
- `contextName` String (optional, default Unknown): Name of context of the hotkey to trigger

### TriggerHotkeyByKeySequence
Category: general. Since 5.0.0. Complexity 4/5.
Triggers a hotkey using a sequence of keys.

Note: Hotkey functionality in obs-websocket comes as-is, and we do not guarantee support if things are broken. In 9/10 usages of hotkey requests, there exists a better, more reliable method via other requests.
Request fields:
- `keyId` String (optional, default Not pressed): The OBS key ID to use. See https://github.com/obsproject/obs-studio/blob/master/libobs/obs-hotkeys.h
- `keyModifiers` Object (optional, default Ignored): Object containing key modifiers to apply
- `keyModifiers.shift` Boolean (optional, default Not pressed): Press Shift
- `keyModifiers.control` Boolean (optional, default Not pressed): Press CTRL
- `keyModifiers.alt` Boolean (optional, default Not pressed): Press ALT
- `keyModifiers.command` Boolean (optional, default Not pressed): Press CMD (Mac)

### Sleep
Category: general. Since 5.0.0. Complexity 2/5.
Sleeps for a time duration or number of frames. Only available in request batches with types `SERIAL_REALTIME` or `SERIAL_FRAME`.
Request fields:
- `sleepMillis` Number (optional, default Unknown) restrictions: >= 0, <= 50000: Number of milliseconds to sleep for (if `SERIAL_REALTIME` mode)
- `sleepFrames` Number (optional, default Unknown) restrictions: >= 0, <= 10000: Number of frames to sleep for (if `SERIAL_FRAME` mode)

### GetInputList
Category: inputs. Since 5.0.0. Complexity 2/5.
renders. Prune every scene now, as the frontend does after it removes a
scene. The scenes are collected first, so no enumeration lock is held
while a scene takes its video lock. */
Gets an array of all inputs in OBS.
Request fields:
- `inputKind` String (optional, default All kinds included): Restrict the array to only inputs of the specified kind
Response fields:
- `inputs` Array<Object>: Array of inputs

### GetInputKindList
Category: inputs. Since 5.0.0. Complexity 2/5.
Gets an array of all available input kinds in OBS.
Request fields:
- `unversioned` Boolean (optional, default false): True == Return all kinds as unversioned, False == Return with version suffixes (if available)
Response fields:
- `inputKinds` Array<String>: Array of input kinds

### GetSpecialInputs
Category: inputs. Since 5.0.0. Complexity 2/5.
Gets the names of all special inputs.
Response fields:
- `desktop1` String: Name of the Desktop Audio input
- `desktop2` String: Name of the Desktop Audio 2 input
- `mic1` String: Name of the Mic/Auxiliary Audio input
- `mic2` String: Name of the Mic/Auxiliary Audio 2 input
- `mic3` String: Name of the Mic/Auxiliary Audio 3 input
- `mic4` String: Name of the Mic/Auxiliary Audio 4 input

### CreateInput
Category: inputs. Since 5.0.0. Complexity 3/5.
Creates a new input, adding it as a scene item to the specified scene.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene to add the input to as a scene item
- `sceneUuid` String (optional, default Unknown): UUID of the scene to add the input to as a scene item
- `inputName` String: Name of the new input to created
- `inputKind` String: The kind of input to be created
- `inputSettings` Object (optional, default Default settings used): Settings object to initialize the input with
- `sceneItemEnabled` Boolean (optional, default True): Whether to set the created scene item to enabled or disabled
Response fields:
- `inputUuid` String: UUID of the newly created input
- `sceneItemId` Number: ID of the newly created scene item

### RemoveInput
Category: inputs. Since 5.0.0. Complexity 2/5.
Removes an existing input.

Note: Will immediately remove all associated scene items.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to remove
- `inputUuid` String (optional, default Unknown): UUID of the input to remove

### SetInputName
Category: inputs. Since 5.0.0. Complexity 2/5.
Sets the name of an input (rename).
Request fields:
- `inputName` String (optional, default Unknown): Current input name
- `inputUuid` String (optional, default Unknown): Current input UUID
- `newInputName` String: New name for the input

### GetInputDefaultSettings
Category: inputs. Since 5.0.0. Complexity 3/5.
Gets the default settings for an input kind.
Request fields:
- `inputKind` String: Input kind to get the default settings for
Response fields:
- `defaultInputSettings` Object: Object of default settings for the input kind

### GetInputSettings
Category: inputs. Since 5.0.0. Complexity 3/5.
Gets the settings of an input.

Note: Does not include defaults. To create the entire settings object, overlay `inputSettings` over the `defaultInputSettings` provided by `GetInputDefaultSettings`.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to get the settings of
- `inputUuid` String (optional, default Unknown): UUID of the input to get the settings of
Response fields:
- `inputSettings` Object: Object of settings for the input
- `inputKind` String: The kind of the input

### SetInputSettings
Category: inputs. Since 5.0.0. Complexity 3/5.
Sets the settings of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to set the settings of
- `inputUuid` String (optional, default Unknown): UUID of the input to set the settings of
- `inputSettings` Object: Object of settings to apply
- `overlay` Boolean (optional, default true): True == apply the settings on top of existing ones, False == reset the input to its defaults, then apply settings.

### GetInputMute
Category: inputs. Since 5.0.0. Complexity 2/5.
Gets the audio mute state of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of input to get the mute state of
- `inputUuid` String (optional, default Unknown): UUID of input to get the mute state of
Response fields:
- `inputMuted` Boolean: Whether the input is muted

### SetInputMute
Category: inputs. Since 5.0.0. Complexity 2/5.
Sets the audio mute state of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to set the mute state of
- `inputUuid` String (optional, default Unknown): UUID of the input to set the mute state of
- `inputMuted` Boolean: Whether to mute the input or not

### ToggleInputMute
Category: inputs. Since 5.0.0. Complexity 2/5.
Toggles the audio mute state of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to toggle the mute state of
- `inputUuid` String (optional, default Unknown): UUID of the input to toggle the mute state of
Response fields:
- `inputMuted` Boolean: Whether the input has been muted or unmuted

### GetInputVolume
Category: inputs. Since 5.0.0. Complexity 3/5.
Gets the current volume setting of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to get the volume of
- `inputUuid` String (optional, default Unknown): UUID of the input to get the volume of
Response fields:
- `inputVolumeMul` Number: Volume setting in mul
- `inputVolumeDb` Number: Volume setting in dB

### SetInputVolume
Category: inputs. Since 5.0.0. Complexity 3/5.
Sets the volume setting of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to set the volume of
- `inputUuid` String (optional, default Unknown): UUID of the input to set the volume of
- `inputVolumeMul` Number (optional, default `inputVolumeDb` should be specified) restrictions: >= 0, <= 20: Volume setting in mul
- `inputVolumeDb` Number (optional, default `inputVolumeMul` should be specified) restrictions: >= -100, <= 26: Volume setting in dB

### GetInputAudioBalance
Category: inputs. Since 5.0.0. Complexity 2/5.
Gets the audio balance of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to get the audio balance of
- `inputUuid` String (optional, default Unknown): UUID of the input to get the audio balance of
Response fields:
- `inputAudioBalance` Number: Audio balance value from 0.0-1.0

### SetInputAudioBalance
Category: inputs. Since 5.0.0. Complexity 2/5.
Sets the audio balance of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to set the audio balance of
- `inputUuid` String (optional, default Unknown): UUID of the input to set the audio balance of
- `inputAudioBalance` Number restrictions: >= 0.0, <= 1.0: New audio balance value

### GetInputAudioSyncOffset
Category: inputs. Since 5.0.0. Complexity 3/5.
Gets the audio sync offset of an input.

Note: The audio sync offset can be negative too!
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to get the audio sync offset of
- `inputUuid` String (optional, default Unknown): UUID of the input to get the audio sync offset of
Response fields:
- `inputAudioSyncOffset` Number: Audio sync offset in milliseconds

### SetInputAudioSyncOffset
Category: inputs. Since 5.0.0. Complexity 3/5.
Sets the audio sync offset of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to set the audio sync offset of
- `inputUuid` String (optional, default Unknown): UUID of the input to set the audio sync offset of
- `inputAudioSyncOffset` Number restrictions: >= -950, <= 20000: New audio sync offset in milliseconds

### GetInputAudioMonitorType
Category: inputs. Since 5.0.0. Complexity 2/5.
Gets the audio monitor type of an input.

The available audio monitor types are:

- `OBS_MONITORING_TYPE_NONE`
- `OBS_MONITORING_TYPE_MONITOR_ONLY`
- `OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT`
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to get the audio monitor type of
- `inputUuid` String (optional, default Unknown): UUID of the input to get the audio monitor type of
Response fields:
- `monitorType` String: Audio monitor type

### SetInputAudioMonitorType
Category: inputs. Since 5.0.0. Complexity 2/5.
Sets the audio monitor type of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to set the audio monitor type of
- `inputUuid` String (optional, default Unknown): UUID of the input to set the audio monitor type of
- `monitorType` String: Audio monitor type

### GetInputAudioTracks
Category: inputs. Since 5.0.0. Complexity 2/5.
Gets the enable state of all audio tracks of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input
- `inputUuid` String (optional, default Unknown): UUID of the input
Response fields:
- `inputAudioTracks` Object: Object of audio tracks and associated enable states

### SetInputAudioTracks
Category: inputs. Since 5.0.0. Complexity 2/5.
Sets the enable state of audio tracks of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input
- `inputUuid` String (optional, default Unknown): UUID of the input
- `inputAudioTracks` Object: Track settings to apply

### GetInputDeinterlaceMode
Category: inputs. Since 5.6.0. Complexity 2/5.
Gets the deinterlace mode of an input.

Deinterlace Modes:

- `OBS_DEINTERLACE_MODE_DISABLE`
- `OBS_DEINTERLACE_MODE_DISCARD`
- `OBS_DEINTERLACE_MODE_RETRO`
- `OBS_DEINTERLACE_MODE_BLEND`
- `OBS_DEINTERLACE_MODE_BLEND_2X`
- `OBS_DEINTERLACE_MODE_LINEAR`
- `OBS_DEINTERLACE_MODE_LINEAR_2X`
- `OBS_DEINTERLACE_MODE_YADIF`
- `OBS_DEINTERLACE_MODE_YADIF_2X`

Note: Deinterlacing functionality is restricted to async inputs only.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input
- `inputUuid` String (optional, default Unknown): UUID of the input
Response fields:
- `inputDeinterlaceMode` String: Deinterlace mode of the input

### SetInputDeinterlaceMode
Category: inputs. Since 5.6.0. Complexity 2/5.
Sets the deinterlace mode of an input.

Note: Deinterlacing functionality is restricted to async inputs only.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input
- `inputUuid` String (optional, default Unknown): UUID of the input
- `inputDeinterlaceMode` String: Deinterlace mode for the input

### GetInputDeinterlaceFieldOrder
Category: inputs. Since 5.6.0. Complexity 2/5.
Gets the deinterlace field order of an input.

Deinterlace Field Orders:

- `OBS_DEINTERLACE_FIELD_ORDER_TOP`
- `OBS_DEINTERLACE_FIELD_ORDER_BOTTOM`

Note: Deinterlacing functionality is restricted to async inputs only.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input
- `inputUuid` String (optional, default Unknown): UUID of the input
Response fields:
- `inputDeinterlaceFieldOrder` String: Deinterlace field order of the input

### SetInputDeinterlaceFieldOrder
Category: inputs. Since 5.6.0. Complexity 2/5.
Sets the deinterlace field order of an input.

Note: Deinterlacing functionality is restricted to async inputs only.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input
- `inputUuid` String (optional, default Unknown): UUID of the input
- `inputDeinterlaceFieldOrder` String: Deinterlace field order for the input

### GetInputPropertiesListPropertyItems
Category: inputs. Since 5.0.0. Complexity 4/5.
Gets the items of a list property from an input's properties.

Note: Use this in cases where an input provides a dynamic, selectable list of items. For example, display capture, where it provides a list of available displays.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input
- `inputUuid` String (optional, default Unknown): UUID of the input
- `propertyName` String: Name of the list property to get the items of
Response fields:
- `propertyItems` Array<Object>: Array of items in the list property

### PressInputPropertiesButton
Category: inputs. Since 5.0.0. Complexity 4/5.
Presses a button in the properties of an input.

Some known `propertyName` values are:

- `refreshnocache` - Browser source reload button

Note: Use this in cases where there is a button in the properties of an input that cannot be accessed in any other way. For example, browser sources, where there is a refresh button.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input
- `inputUuid` String (optional, default Unknown): UUID of the input
- `propertyName` String: Name of the button property to press

### GetMediaInputStatus
Category: media inputs. Since 5.0.0. Complexity 2/5.
Gets the status of a media input.

Media States:

- `OBS_MEDIA_STATE_NONE`
- `OBS_MEDIA_STATE_PLAYING`
- `OBS_MEDIA_STATE_OPENING`
- `OBS_MEDIA_STATE_BUFFERING`
- `OBS_MEDIA_STATE_PAUSED`
- `OBS_MEDIA_STATE_STOPPED`
- `OBS_MEDIA_STATE_ENDED`
- `OBS_MEDIA_STATE_ERROR`
Request fields:
- `inputName` String (optional, default Unknown): Name of the media input
- `inputUuid` String (optional, default Unknown): UUID of the media input
Response fields:
- `mediaState` String: State of the media input
- `mediaDuration` Number: Total duration of the playing media in milliseconds. `null` if not playing
- `mediaCursor` Number: Position of the cursor in milliseconds. `null` if not playing

### SetMediaInputCursor
Category: media inputs. Since 5.0.0. Complexity 2/5.
Sets the cursor position of a media input.

This request does not perform bounds checking of the cursor position.
Request fields:
- `inputName` String (optional, default Unknown): Name of the media input
- `inputUuid` String (optional, default Unknown): UUID of the media input
- `mediaCursor` Number restrictions: >= 0: New cursor position to set

### OffsetMediaInputCursor
Category: media inputs. Since 5.0.0. Complexity 2/5.
Offsets the current cursor position of a media input by the specified value.

This request does not perform bounds checking of the cursor position.
Request fields:
- `inputName` String (optional, default Unknown): Name of the media input
- `inputUuid` String (optional, default Unknown): UUID of the media input
- `mediaCursorOffset` Number: Value to offset the current cursor position by

### TriggerMediaInputAction
Category: media inputs. Since 5.0.0. Complexity 2/5.
Triggers an action on a media input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the media input
- `inputUuid` String (optional, default Unknown): UUID of the media input
- `mediaAction` String: Identifier of the `ObsMediaInputAction` enum

### GetVirtualCamStatus
Category: outputs. Since 5.0.0. Complexity 1/5.
Gets the status of the virtualcam output.
Response fields:
- `outputActive` Boolean: Whether the output is active

### ToggleVirtualCam
Category: outputs. Since 5.0.0. Complexity 1/5.
Toggles the state of the virtualcam output.
Response fields:
- `outputActive` Boolean: Whether the output is active

### StartVirtualCam
Category: outputs. Since 5.0.0. Complexity 1/5.
Starts the virtualcam output.

### StopVirtualCam
Category: outputs. Since 5.0.0. Complexity 1/5.
Stops the virtualcam output.

### GetReplayBufferStatus
Category: outputs. Since 5.0.0. Complexity 1/5.
Gets the status of the replay buffer output.
Response fields:
- `outputActive` Boolean: Whether the output is active

### ToggleReplayBuffer
Category: outputs. Since 5.0.0. Complexity 1/5.
Toggles the state of the replay buffer output.
Response fields:
- `outputActive` Boolean: Whether the output is active

### StartReplayBuffer
Category: outputs. Since 5.0.0. Complexity 1/5.
Starts the replay buffer output.

### StopReplayBuffer
Category: outputs. Since 5.0.0. Complexity 1/5.
Stops the replay buffer output.

### SaveReplayBuffer
Category: outputs. Since 5.0.0. Complexity 1/5.
Saves the contents of the replay buffer output.

### GetLastReplayBufferReplay
Category: outputs. Since 5.0.0. Complexity 2/5.
Gets the filename of the last replay buffer save file.
Response fields:
- `savedReplayPath` String: File path

### GetOutputList
Category: outputs. Since 5.0.0. Complexity 4/5.
Gets the list of available outputs.
Response fields:
- `outputs` Array<Object>: Array of outputs

### GetOutputStatus
Category: outputs. Since 5.0.0. Complexity 4/5.
Gets the status of an output.
Request fields:
- `outputName` String: Output name
Response fields:
- `outputActive` Boolean: Whether the output is active
- `outputReconnecting` Boolean: Whether the output is reconnecting
- `outputTimecode` String: Current formatted timecode string for the output
- `outputDuration` Number: Current duration in milliseconds for the output
- `outputCongestion` Number: Congestion of the output
- `outputBytes` Number: Number of bytes sent by the output
- `outputSkippedFrames` Number: Number of frames skipped by the output's process
- `outputTotalFrames` Number: Total number of frames delivered by the output's process

### ToggleOutput
Category: outputs. Since 5.0.0. Complexity 4/5.
Toggles the status of an output.
Request fields:
- `outputName` String: Output name
Response fields:
- `outputActive` Boolean: Whether the output is active

### StartOutput
Category: outputs. Since 5.0.0. Complexity 4/5.
Starts an output.
Request fields:
- `outputName` String: Output name

### StopOutput
Category: outputs. Since 5.0.0. Complexity 4/5.
Stops an output.
Request fields:
- `outputName` String: Output name

### GetOutputSettings
Category: outputs. Since 5.0.0. Complexity 4/5.
Gets the settings of an output.
Request fields:
- `outputName` String: Output name
Response fields:
- `outputSettings` Object: Output settings

### SetOutputSettings
Category: outputs. Since 5.0.0. Complexity 4/5.
Sets the settings of an output.
Request fields:
- `outputName` String: Output name
- `outputSettings` Object: Output settings

### GetRecordStatus
Category: record. Since 5.0.0. Complexity 2/5.
Gets the status of the record output.
Response fields:
- `outputActive` Boolean: Whether the output is active
- `outputPaused` Boolean: Whether the output is paused
- `outputTimecode` String: Current formatted timecode string for the output
- `outputDuration` Number: Current duration in milliseconds for the output
- `outputBytes` Number: Number of bytes sent by the output

### ToggleRecord
Category: record. Since 5.0.0. Complexity 1/5.
Toggles the status of the record output.
Response fields:
- `outputActive` Boolean: The new active state of the output

### StartRecord
Category: record. Since 5.0.0. Complexity 1/5.
Starts the record output.

### StopRecord
Category: record. Since 5.0.0. Complexity 1/5.
Stops the record output.
Response fields:
- `outputPath` String: File name for the saved recording

### ToggleRecordPause
Category: record. Since 5.0.0. Complexity 1/5.
Toggles pause on the record output.

### PauseRecord
Category: record. Since 5.0.0. Complexity 1/5.
Pauses the record output.

### ResumeRecord
Category: record. Since 5.0.0. Complexity 1/5.
Resumes the record output.

### SplitRecordFile
Category: record. Since 5.5.0. Complexity 2/5.
Splits the current file being recorded into a new file.

### CreateRecordChapter
Category: record. Since 5.5.0. Complexity 2/5.
Adds a new chapter marker to the file currently being recorded.

Note: As of OBS 30.2.0, the only file format supporting this feature is Hybrid MP4.
Request fields:
- `chapterName` String (optional, default Unknown): Name of the new chapter

### GetSceneItemList
Category: scene items. Since 5.0.0. Complexity 3/5.
Gets a list of all scene items in a scene.

Scenes only
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene to get the items of
- `sceneUuid` String (optional, default Unknown): UUID of the scene to get the items of
Response fields:
- `sceneItems` Array<Object>: Array of scene items in the scene

### GetGroupSceneItemList
Category: scene items. Since 5.0.0. Complexity 3/5.
Basically GetSceneItemList, but for groups.

Using groups at all in OBS is discouraged, as they are very broken under the hood. Please use nested scenes instead.

Groups only
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the group is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the group to get the items of
- `sceneUuid` String (optional, default Unknown): UUID of the group to get the items of
Response fields:
- `sceneItems` Array<Object>: Array of scene items in the group

### GetSceneItemId
Category: scene items. Since 5.0.0. Complexity 3/5.
Searches a scene for a source, and returns its id.

Scenes and Groups
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene or group is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene or group to search in
- `sceneUuid` String (optional, default Unknown): UUID of the scene or group to search in
- `sourceName` String: Name of the source to find
- `searchOffset` Number (optional, default 0) restrictions: >= -1: Number of matches to skip during search. >= 0 means first forward. -1 means last (top) item
Response fields:
- `sceneItemId` Number: Numeric ID of the scene item

### GetSceneItemSource
Category: scene items. Since 5.4.0. Complexity 3/5.
Gets the source associated with a scene item.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene the item is in
- `sceneUuid` String (optional, default Unknown): UUID of the scene the item is in
- `sceneItemId` Number restrictions: >= 0: Numeric ID of the scene item
Response fields:
- `sourceName` String: Name of the source associated with the scene item
- `sourceUuid` String: UUID of the source associated with the scene item

### CreateSceneItem
Category: scene items. Since 5.0.0. Complexity 3/5.
Creates a new scene item using a source.

Scenes only
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene to create the new item in
- `sceneUuid` String (optional, default Unknown): UUID of the scene to create the new item in
- `sourceName` String (optional, default Unknown): Name of the source to add to the scene
- `sourceUuid` String (optional, default Unknown): UUID of the source to add to the scene
- `sceneItemEnabled` Boolean (optional, default True): Enable state to apply to the scene item on creation
Response fields:
- `sceneItemId` Number: Numeric ID of the scene item

### RemoveSceneItem
Category: scene items. Since 5.0.0. Complexity 3/5.
Removes a scene item from a scene.

Scenes only
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene the item is in
- `sceneUuid` String (optional, default Unknown): UUID of the scene the item is in
- `sceneItemId` Number restrictions: >= 0: Numeric ID of the scene item

### DuplicateSceneItem
Category: scene items. Since 5.0.0. Complexity 3/5.
Duplicates a scene item, copying all transform and crop info.

Scenes only
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene the item is in
- `sceneUuid` String (optional, default Unknown): UUID of the scene the item is in
- `sceneItemId` Number restrictions: >= 0: Numeric ID of the scene item
- `destinationSceneName` String (optional, default From scene is assumed): Name of the scene to create the duplicated item in
- `destinationSceneUuid` String (optional, default From scene is assumed): UUID of the scene to create the duplicated item in
Response fields:
- `sceneItemId` Number: Numeric ID of the duplicated scene item

### GetSceneItemTransform
Category: scene items. Since 5.0.0. Complexity 3/5.
Gets the transform and crop info of a scene item.

Scenes and Groups
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene the item is in
- `sceneUuid` String (optional, default Unknown): UUID of the scene the item is in
- `sceneItemId` Number restrictions: >= 0: Numeric ID of the scene item
Response fields:
- `sceneItemTransform` Object: Object containing scene item transform info

### SetSceneItemTransform
Category: scene items. Since 5.0.0. Complexity 3/5.
Sets the transform and crop info of a scene item.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene the item is in
- `sceneUuid` String (optional, default Unknown): UUID of the scene the item is in
- `sceneItemId` Number restrictions: >= 0: Numeric ID of the scene item
- `sceneItemTransform` Object: Object containing scene item transform info to update

### GetSceneItemEnabled
Category: scene items. Since 5.0.0. Complexity 3/5.
Gets the enable state of a scene item.

Scenes and Groups
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene the item is in
- `sceneUuid` String (optional, default Unknown): UUID of the scene the item is in
- `sceneItemId` Number restrictions: >= 0: Numeric ID of the scene item
Response fields:
- `sceneItemEnabled` Boolean: Whether the scene item is enabled. `true` for enabled, `false` for disabled

### SetSceneItemEnabled
Category: scene items. Since 5.0.0. Complexity 3/5.
Sets the enable state of a scene item.

Scenes and Groups
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene the item is in
- `sceneUuid` String (optional, default Unknown): UUID of the scene the item is in
- `sceneItemId` Number restrictions: >= 0: Numeric ID of the scene item
- `sceneItemEnabled` Boolean: New enable state of the scene item

### GetSceneItemLocked
Category: scene items. Since 5.0.0. Complexity 3/5.
Gets the lock state of a scene item.

Scenes and Groups
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene the item is in
- `sceneUuid` String (optional, default Unknown): UUID of the scene the item is in
- `sceneItemId` Number restrictions: >= 0: Numeric ID of the scene item
Response fields:
- `sceneItemLocked` Boolean: Whether the scene item is locked. `true` for locked, `false` for unlocked

### SetSceneItemLocked
Category: scene items. Since 5.0.0. Complexity 3/5.
Sets the lock state of a scene item.

Scenes and Group
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene the item is in
- `sceneUuid` String (optional, default Unknown): UUID of the scene the item is in
- `sceneItemId` Number restrictions: >= 0: Numeric ID of the scene item
- `sceneItemLocked` Boolean: New lock state of the scene item

### GetSceneItemIndex
Category: scene items. Since 5.0.0. Complexity 3/5.
Gets the index position of a scene item in a scene.

An index of 0 is at the bottom of the source list in the UI.

Scenes and Groups
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene the item is in
- `sceneUuid` String (optional, default Unknown): UUID of the scene the item is in
- `sceneItemId` Number restrictions: >= 0: Numeric ID of the scene item
Response fields:
- `sceneItemIndex` Number: Index position of the scene item

### SetSceneItemIndex
Category: scene items. Since 5.0.0. Complexity 3/5.
Sets the index position of a scene item in a scene.

Scenes and Groups
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene the item is in
- `sceneUuid` String (optional, default Unknown): UUID of the scene the item is in
- `sceneItemId` Number restrictions: >= 0: Numeric ID of the scene item
- `sceneItemIndex` Number restrictions: >= 0: New index position of the scene item

### GetSceneItemBlendMode
Category: scene items. Since 5.0.0. Complexity 2/5.
Gets the blend mode of a scene item.

Blend modes:

- `OBS_BLEND_NORMAL`
- `OBS_BLEND_ADDITIVE`
- `OBS_BLEND_SUBTRACT`
- `OBS_BLEND_SCREEN`
- `OBS_BLEND_MULTIPLY`
- `OBS_BLEND_LIGHTEN`
- `OBS_BLEND_DARKEN`

Scenes and Groups
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene the item is in
- `sceneUuid` String (optional, default Unknown): UUID of the scene the item is in
- `sceneItemId` Number restrictions: >= 0: Numeric ID of the scene item
Response fields:
- `sceneItemBlendMode` String: Current blend mode

### SetSceneItemBlendMode
Category: scene items. Since 5.0.0. Complexity 2/5.
Sets the blend mode of a scene item.

Scenes and Groups
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene the item is in
- `sceneUuid` String (optional, default Unknown): UUID of the scene the item is in
- `sceneItemId` Number restrictions: >= 0: Numeric ID of the scene item
- `sceneItemBlendMode` String: New blend mode

### GetSceneList
Category: scenes. Since 5.0.0. Complexity 2/5.
Gets an array of scenes in OBS.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scenes are in
Response fields:
- `currentProgramSceneName` String: Current program scene name. Can be `null` if non-main canvas or internal state desync
- `currentProgramSceneUuid` String: Current program scene UUID. Can be `null` if non-main canvas or internal state desync
- `currentPreviewSceneName` String: Current preview scene name. `null` if not in studio mode or non-main canvas
- `currentPreviewSceneUuid` String: Current preview scene UUID. `null` if not in studio mode or non-main canvas
- `scenes` Array<Object>: Array of scenes

### GetGroupList
Category: scenes. Since 5.0.0. Complexity 2/5.
Gets an array of all groups in OBS.

Groups in OBS are actually scenes, but renamed and modified. In obs-websocket, we treat them as scenes where we can.
Response fields:
- `groups` Array<String>: Array of group names

### GetCurrentProgramScene
Category: scenes. Since 5.0.0. Complexity 1/5.
Gets the current program scene.

Note 1: This request is slated to have the `currentProgram`-prefixed fields removed from in an upcoming RPC version.

Note 2: Canvases do not have any concept of a program or preview scene, so this request does not support canvases.
Response fields:
- `sceneName` String: Current program scene name. `null` if there is no program scene
- `sceneUuid` String: Current program scene UUID. `null` if there is no program scene
- `currentProgramSceneName` String: Current program scene name (Deprecated)
- `currentProgramSceneUuid` String: Current program scene UUID (Deprecated)

### SetCurrentProgramScene
Category: scenes. Since 5.0.0. Complexity 1/5.
Sets the current program scene.
Request fields:
- `sceneName` String (optional, default Unknown): Scene name to set as the current program scene
- `sceneUuid` String (optional, default Unknown): Scene UUID to set as the current program scene

### GetCurrentPreviewScene
Category: scenes. Since 5.0.0. Complexity 1/5.
Gets the current preview scene.

Only available when studio mode is enabled.

Note: This request is slated to have the `currentPreview`-prefixed fields removed from in an upcoming RPC version.
Response fields:
- `sceneName` String: Current preview scene name. `null` if there is no preview scene
- `sceneUuid` String: Current preview scene UUID. `null` if there is no preview scene
- `currentPreviewSceneName` String: Current preview scene name
- `currentPreviewSceneUuid` String: Current preview scene UUID

### SetCurrentPreviewScene
Category: scenes. Since 5.0.0. Complexity 1/5.
Sets the current preview scene.

Only available when studio mode is enabled.
Request fields:
- `sceneName` String (optional, default Unknown): Scene name to set as the current preview scene
- `sceneUuid` String (optional, default Unknown): Scene UUID to set as the current preview scene

### CreateScene
Category: scenes. Since 5.0.0. Complexity 2/5.
Creates a new scene in OBS.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas to create the new scene in. Leave default to assume main canvas
- `sceneName` String: Name for the new scene
Response fields:
- `sceneUuid` String: UUID of the created scene

### RemoveScene
Category: scenes. Since 5.0.0. Complexity 2/5.
Removes a scene from OBS.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene to remove
- `sceneUuid` String (optional, default Unknown): UUID of the scene to remove

### SetSceneName
Category: scenes. Since 5.0.0. Complexity 2/5.
Sets the name of a scene (rename).
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene to be renamed
- `sceneUuid` String (optional, default Unknown): UUID of the scene to be renamed
- `newSceneName` String: New name for the scene

### GetSceneSceneTransitionOverride
Category: scenes. Since 5.0.0. Complexity 2/5.
Gets the scene transition overridden for a scene.

Note: A transition UUID response field is not currently able to be implemented as of 2024-1-18.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene
- `sceneUuid` String (optional, default Unknown): UUID of the scene
Response fields:
- `transitionName` String: Name of the overridden scene transition, else `null`
- `transitionDuration` Number: Duration of the overridden scene transition, else `null`

### SetSceneSceneTransitionOverride
Category: scenes. Since 5.0.0. Complexity 2/5.
Sets the scene transition overridden for a scene.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the scene is in, if using the sceneName field
- `sceneName` String (optional, default Unknown): Name of the scene
- `sceneUuid` String (optional, default Unknown): UUID of the scene
- `transitionName` String (optional, default Unchanged): Name of the scene transition to use as override. Specify `null` to remove
- `transitionDuration` Number (optional, default Unchanged) restrictions: >= 50, <= 20000: Duration to use for any overridden transition. Specify `null` to remove

### GetSourceActive
Category: sources. Since 5.0.0. Complexity 2/5.
Gets the active and show state of a source.

**Compatible with inputs and scenes.**
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the source is in, if using sourceName field
- `sourceName` String (optional, default Unknown): Name of the source to get the active state of
- `sourceUuid` String (optional, default Unknown): UUID of the source to get the active state of
Response fields:
- `videoActive` Boolean: Whether the source is showing in Program
- `videoShowing` Boolean: Whether the source is showing in the UI (Preview, Projector, Properties)

### GetSourceScreenshot
Category: sources. Since 5.0.0. Complexity 4/5.
Gets a Base64-encoded screenshot of a source.

The `imageWidth` and `imageHeight` parameters are treated as "scale to inner", meaning the smallest ratio will be used and the aspect ratio of the original resolution is kept.
If `imageWidth` and `imageHeight` are not specified, the compressed image will use the full resolution of the source.

**Compatible with inputs and scenes.**
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the source is in, if using sourceName field
- `sourceName` String (optional, default Unknown): Name of the source to take a screenshot of
- `sourceUuid` String (optional, default Unknown): UUID of the source to take a screenshot of
- `imageFormat` String: Image compression format to use. Use `GetVersion` to get compatible image formats
- `imageWidth` Number (optional, default Source value is used) restrictions: >= 8, <= 4096: Width to scale the screenshot to
- `imageHeight` Number (optional, default Source value is used) restrictions: >= 8, <= 4096: Height to scale the screenshot to
- `imageCompressionQuality` Number (optional, default -1) restrictions: >= -1, <= 100: Compression quality to use. 0 for high compression, 100 for uncompressed. -1 to use "default" (whatever that means, idk)
Response fields:
- `imageData` String: Base64-encoded screenshot

### SaveSourceScreenshot
Category: sources. Since 5.0.0. Complexity 3/5.
Saves a screenshot of a source to the filesystem.

The `imageWidth` and `imageHeight` parameters are treated as "scale to inner", meaning the smallest ratio will be used and the aspect ratio of the original resolution is kept.
If `imageWidth` and `imageHeight` are not specified, the compressed image will use the full resolution of the source.

**Compatible with inputs and scenes.**
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the source is in, if using sourceName field
- `sourceName` String (optional, default Unknown): Name of the source to take a screenshot of
- `sourceUuid` String (optional, default Unknown): UUID of the source to take a screenshot of
- `imageFormat` String: Image compression format to use. Use `GetVersion` to get compatible image formats
- `imageFilePath` String: Path to save the screenshot file to. Eg. `C:\Users\user\Desktop\screenshot.png`
- `imageWidth` Number (optional, default Source value is used) restrictions: >= 8, <= 4096: Width to scale the screenshot to
- `imageHeight` Number (optional, default Source value is used) restrictions: >= 8, <= 4096: Height to scale the screenshot to
- `imageCompressionQuality` Number (optional, default -1) restrictions: >= -1, <= 100: Compression quality to use. 0 for high compression, 100 for uncompressed. -1 to use "default" (whatever that means, idk)

### GetStreamStatus
Category: stream. Since 5.0.0. Complexity 2/5.
Gets the status of the stream output.
Response fields:
- `outputActive` Boolean: Whether the output is active
- `outputReconnecting` Boolean: Whether the output is currently reconnecting
- `outputTimecode` String: Current formatted timecode string for the output
- `outputDuration` Number: Current duration in milliseconds for the output
- `outputCongestion` Number: Congestion of the output
- `outputBytes` Number: Number of bytes sent by the output
- `outputSkippedFrames` Number: Number of frames skipped by the output's process
- `outputTotalFrames` Number: Total number of frames delivered by the output's process

### ToggleStream
Category: stream. Since 5.0.0. Complexity 1/5.
Toggles the status of the stream output.
Response fields:
- `outputActive` Boolean: New state of the stream output

### StartStream
Category: stream. Since 5.0.0. Complexity 1/5.
Starts the stream output.

### StopStream
Category: stream. Since 5.0.0. Complexity 1/5.
Stops the stream output.

### SendStreamCaption
Category: stream. Since 5.0.0. Complexity 2/5.
Sends CEA-608 caption text over the stream output.
Request fields:
- `captionText` String: Caption text

### GetTransitionKindList
Category: transitions. Since 5.0.0. Complexity 2/5.
Gets an array of all available transition kinds.

Similar to `GetInputKindList`
Response fields:
- `transitionKinds` Array<String>: Array of transition kinds

### GetSceneTransitionList
Category: transitions. Since 5.0.0. Complexity 3/5.
Gets an array of all scene transitions in OBS.
Response fields:
- `currentSceneTransitionName` String: Name of the current scene transition. Can be null
- `currentSceneTransitionUuid` String: UUID of the current scene transition. Can be null
- `currentSceneTransitionKind` String: Kind of the current scene transition. Can be null
- `transitions` Array<Object>: Array of transitions

### GetCurrentSceneTransition
Category: transitions. Since 5.0.0. Complexity 2/5.
Gets information about the current scene transition.
Response fields:
- `transitionName` String: Name of the transition
- `transitionUuid` String: UUID of the transition
- `transitionKind` String: Kind of the transition
- `transitionFixed` Boolean: Whether the transition uses a fixed (unconfigurable) duration
- `transitionDuration` Number: Configured transition duration in milliseconds. `null` if transition is fixed
- `transitionConfigurable` Boolean: Whether the transition supports being configured
- `transitionSettings` Object: Object of settings for the transition. `null` if transition is not configurable

### SetCurrentSceneTransition
Category: transitions. Since 5.0.0. Complexity 2/5.
Sets the current scene transition.

Small note: While the namespace of scene transitions is generally unique, that uniqueness is not a guarantee as it is with other resources like inputs.
Request fields:
- `transitionName` String: Name of the transition to make active

### SetCurrentSceneTransitionDuration
Category: transitions. Since 5.0.0. Complexity 2/5.
Sets the duration of the current scene transition, if it is not fixed.
Request fields:
- `transitionDuration` Number restrictions: >= 50, <= 20000: Duration in milliseconds

### SetCurrentSceneTransitionSettings
Category: transitions. Since 5.0.0. Complexity 3/5.
Sets the settings of the current scene transition.
Request fields:
- `transitionSettings` Object: Settings object to apply to the transition. Can be `{}`
- `overlay` Boolean (optional, default true): Whether to overlay over the current settings or replace them

### GetCurrentSceneTransitionCursor
Category: transitions. Since 5.0.0. Complexity 2/5.
Gets the cursor position of the current scene transition.

Note: `transitionCursor` will return 1.0 when the transition is inactive.
Response fields:
- `transitionCursor` Number: Cursor position, between 0.0 and 1.0

### TriggerStudioModeTransition
Category: transitions. Since 5.0.0. Complexity 1/5.
Triggers the current scene transition. Same functionality as the `Transition` button in studio mode.

### SetTBarPosition
Category: transitions. Since 5.0.0. Complexity 3/5.
Sets the position of the TBar.

**Very important note**: This will be deprecated and replaced in a future version of obs-websocket.
Request fields:
- `position` Number restrictions: >= 0.0, <= 1.0: New position
- `release` Boolean (optional, default `true`): Whether to release the TBar. Only set `false` if you know that you will be sending another position update

### GetStudioModeEnabled
Category: ui. Since 5.0.0. Complexity 1/5.
Gets whether studio is enabled.
Response fields:
- `studioModeEnabled` Boolean: Whether studio mode is enabled

### SetStudioModeEnabled
Category: ui. Since 5.0.0. Complexity 1/5.
Enables or disables studio mode
Request fields:
- `studioModeEnabled` Boolean: True == Enabled, False == Disabled

### OpenInputPropertiesDialog
Category: ui. Since 5.0.0. Complexity 1/5.
Opens the properties dialog of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to open the dialog of
- `inputUuid` String (optional, default Unknown): UUID of the input to open the dialog of

### OpenInputFiltersDialog
Category: ui. Since 5.0.0. Complexity 1/5.
Opens the filters dialog of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to open the dialog of
- `inputUuid` String (optional, default Unknown): UUID of the input to open the dialog of

### OpenInputInteractDialog
Category: ui. Since 5.0.0. Complexity 1/5.
Opens the interact dialog of an input.
Request fields:
- `inputName` String (optional, default Unknown): Name of the input to open the dialog of
- `inputUuid` String (optional, default Unknown): UUID of the input to open the dialog of

### GetMonitorList
Category: ui. Since 5.0.0. Complexity 2/5.
Gets a list of connected monitors and information about them.
Response fields:
- `monitors` Array<Object>: a list of detected monitors with some information

### OpenVideoMixProjector
Category: ui. Since 5.0.0. Complexity 3/5.
Opens a projector for a specific output video mix.

Mix types:

- `OBS_WEBSOCKET_VIDEO_MIX_TYPE_PREVIEW`
- `OBS_WEBSOCKET_VIDEO_MIX_TYPE_PROGRAM`
- `OBS_WEBSOCKET_VIDEO_MIX_TYPE_MULTIVIEW`

Note: This request serves to provide feature parity with 4.x. It is very likely to be changed/deprecated in a future release.
Request fields:
- `videoMixType` String: Type of mix to open
- `monitorIndex` Number (optional, default -1: Opens projector in windowed mode): Monitor index, use `GetMonitorList` to obtain index
- `projectorGeometry` String (optional, default N/A): Size/Position data for a windowed projector, in Qt Base64 encoded format. Mutually exclusive with `monitorIndex`

### OpenSourceProjector
Category: ui. Since 5.0.0. Complexity 3/5.
Opens a projector for a source.

Note: This request serves to provide feature parity with 4.x. It is very likely to be changed/deprecated in a future release.
Request fields:
- `canvasUuid` String (optional, default Unknown): UUID of the canvas the source is in, if using the sourceName field
- `sourceName` String (optional, default Unknown): Name of the source to open a projector for
- `sourceUuid` String (optional, default Unknown): UUID of the source to open a projector for
- `monitorIndex` Number (optional, default -1: Opens projector in windowed mode): Monitor index, use `GetMonitorList` to obtain index
- `projectorGeometry` String (optional, default N/A): Size/Position data for a windowed projector, in Qt Base64 encoded format. Mutually exclusive with `monitorIndex`

## Events
### CanvasCreated
Category: canvases. Subscription: Canvases. Since 5.7.0.
A new canvas has been created.
- `canvasName` String: Name of the new canvas
- `canvasUuid` String: UUID of the new canvas

### CanvasRemoved
Category: canvases. Subscription: Canvases. Since 5.7.0.
A canvas has been removed.
- `canvasName` String: Name of the removed canvas
- `canvasUuid` String: UUID of the removed canvas

### CanvasNameChanged
Category: canvases. Subscription: Canvases. Since 5.7.0.
The name of a canvas has changed.
- `canvasUuid` String: UUID of the canvas
- `oldCanvasName` String: Old name of the canvas
- `canvasName` String: New name of the canvas

### CurrentSceneCollectionChanging
Category: config. Subscription: Config. Since 5.0.0.
The current scene collection has begun changing.

Note: We recommend using this event to trigger a pause of all polling requests, as performing any requests during a
scene collection change is considered undefined behavior and can cause crashes!
- `sceneCollectionName` String: Name of the current scene collection

### CurrentSceneCollectionChanged
Category: config. Subscription: Config. Since 5.0.0.
The current scene collection has changed.

Note: If polling has been paused during `CurrentSceneCollectionChanging`, this is the que to restart polling.
- `sceneCollectionName` String: Name of the new scene collection

### SceneCollectionListChanged
Category: config. Subscription: Config. Since 5.0.0.
The scene collection list has changed.
- `sceneCollections` Array<String>: Updated list of scene collections

### CurrentProfileChanging
Category: config. Subscription: Config. Since 5.0.0.
The current profile has begun changing.
- `profileName` String: Name of the current profile

### CurrentProfileChanged
Category: config. Subscription: Config. Since 5.0.0.
The current profile has changed.
- `profileName` String: Name of the new profile

### ProfileListChanged
Category: config. Subscription: Config. Since 5.0.0.
The profile list has changed.
- `profiles` Array<String>: Updated list of profiles

### SourceFilterListReindexed
Category: filters. Subscription: Filters. Since 5.0.0.
A source's filter list has been reindexed.
- `sourceName` String: Name of the source
- `filters` Array<Object>: Array of filter objects

### SourceFilterCreated
Category: filters. Subscription: Filters. Since 5.0.0.
A filter has been added to a source.
- `sourceName` String: Name of the source the filter was added to
- `filterName` String: Name of the filter
- `filterKind` String: The kind of the filter
- `filterIndex` Number: Index position of the filter
- `filterSettings` Object: The settings configured to the filter when it was created
- `defaultFilterSettings` Object: The default settings for the filter

### SourceFilterRemoved
Category: filters. Subscription: Filters. Since 5.0.0.
A filter has been removed from a source.
- `sourceName` String: Name of the source the filter was on
- `filterName` String: Name of the filter

### SourceFilterNameChanged
Category: filters. Subscription: Filters. Since 5.0.0.
The name of a source filter has changed.
- `sourceName` String: The source the filter is on
- `oldFilterName` String: Old name of the filter
- `filterName` String: New name of the filter

### SourceFilterSettingsChanged
Category: filters. Subscription: Filters. Since 5.4.0.
An source filter's settings have changed (been updated).
- `sourceName` String: Name of the source the filter is on
- `filterName` String: Name of the filter
- `filterSettings` Object: New settings object of the filter

### SourceFilterEnableStateChanged
Category: filters. Subscription: Filters. Since 5.0.0.
A source filter's enable state has changed.
- `sourceName` String: Name of the source the filter is on
- `filterName` String: Name of the filter
- `filterEnabled` Boolean: Whether the filter is enabled

### ExitStarted
Category: general. Subscription: General. Since 5.0.0.
OBS has begun the shutdown process.

### InputCreated
Category: inputs. Subscription: Inputs. Since 5.0.0.
An input has been created.
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input
- `inputKind` String: The kind of the input
- `unversionedInputKind` String: The unversioned kind of input (aka no `_v2` stuff)
- `inputKindCaps` Number: Bitflag value for the caps that an input supports. See obs_source_info.output_flags in the libobs docs
- `inputSettings` Object: The settings configured to the input when it was created
- `defaultInputSettings` Object: The default settings for the input

### InputRemoved
Category: inputs. Subscription: Inputs. Since 5.0.0.
An input has been removed.
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input

### InputNameChanged
Category: inputs. Subscription: Inputs. Since 5.0.0.
The name of an input has changed.
- `inputUuid` String: UUID of the input
- `oldInputName` String: Old name of the input
- `inputName` String: New name of the input

### InputSettingsChanged
Category: inputs. Subscription: Inputs. Since 5.4.0.
An input's settings have changed (been updated).

Note: On some inputs, changing values in the properties dialog will cause an immediate update. Pressing the "Cancel" button will revert the settings, resulting in another event being fired.
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input
- `inputSettings` Object: New settings object of the input

### InputActiveStateChanged
Category: inputs. Subscription: InputActiveStateChanged. Since 5.0.0.
An input's active state has changed.

When an input is active, it means it's being shown by the program feed.
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input
- `videoActive` Boolean: Whether the input is active

### InputShowStateChanged
Category: inputs. Subscription: InputShowStateChanged. Since 5.0.0.
An input's show state has changed.

When an input is showing, it means it's being shown by the preview or a dialog.
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input
- `videoShowing` Boolean: Whether the input is showing

### InputMuteStateChanged
Category: inputs. Subscription: Inputs. Since 5.0.0.
An input's mute state has changed.
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input
- `inputMuted` Boolean: Whether the input is muted

### InputVolumeChanged
Category: inputs. Subscription: Inputs. Since 5.0.0.
An input's volume level has changed.
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input
- `inputVolumeMul` Number: New volume level multiplier
- `inputVolumeDb` Number: New volume level in dB

### InputAudioBalanceChanged
Category: inputs. Subscription: Inputs. Since 5.0.0.
The audio balance value of an input has changed.
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input
- `inputAudioBalance` Number: New audio balance value of the input

### InputAudioSyncOffsetChanged
Category: inputs. Subscription: Inputs. Since 5.0.0.
The sync offset of an input has changed.
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input
- `inputAudioSyncOffset` Number: New sync offset in milliseconds

### InputAudioTracksChanged
Category: inputs. Subscription: Inputs. Since 5.0.0.
The audio tracks of an input have changed.
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input
- `inputAudioTracks` Object: Object of audio tracks along with their associated enable states

### InputAudioMonitorTypeChanged
Category: inputs. Subscription: Inputs. Since 5.0.0.
The monitor type of an input has changed.

Available types are:

- `OBS_MONITORING_TYPE_NONE`
- `OBS_MONITORING_TYPE_MONITOR_ONLY`
- `OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT`
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input
- `monitorType` String: New monitor type of the input

### InputVolumeMeters
Category: inputs. Subscription: InputVolumeMeters. Since 5.0.0.
A high-volume event providing volume levels of all active inputs every 50 milliseconds.
- `inputs` Array<Object>: Array of active inputs with their associated volume levels

### MediaInputPlaybackStarted
Category: media inputs. Subscription: MediaInputs. Since 5.0.0.
A media input has started playing.
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input

### MediaInputPlaybackEnded
Category: media inputs. Subscription: MediaInputs. Since 5.0.0.
A media input has finished playing.
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input

### MediaInputActionTriggered
Category: media inputs. Subscription: MediaInputs. Since 5.0.0.
An action has been performed on an input.
- `inputName` String: Name of the input
- `inputUuid` String: UUID of the input
- `mediaAction` String: Action performed on the input. See `ObsMediaInputAction` enum

### StreamStateChanged
Category: outputs. Subscription: Outputs. Since 5.0.0.
The state of the stream output has changed.
- `outputActive` Boolean: Whether the output is active
- `outputState` String: The specific state of the output

### RecordStateChanged
Category: outputs. Subscription: Outputs. Since 5.0.0.
The state of the record output has changed.
- `outputActive` Boolean: Whether the output is active
- `outputState` String: The specific state of the output
- `outputPath` String: File name for the saved recording, if record stopped. `null` otherwise

### RecordFileChanged
Category: outputs. Subscription: Outputs. Since 5.5.0.
The record output has started writing to a new file. For example, when a file split happens.
- `newOutputPath` String: File name that the output has begun writing to

### ReplayBufferStateChanged
Category: outputs. Subscription: Outputs. Since 5.0.0.
The state of the replay buffer output has changed.
- `outputActive` Boolean: Whether the output is active
- `outputState` String: The specific state of the output

### VirtualcamStateChanged
Category: outputs. Subscription: Outputs. Since 5.0.0.
The state of the virtualcam output has changed.
- `outputActive` Boolean: Whether the output is active
- `outputState` String: The specific state of the output

### ReplayBufferSaved
Category: outputs. Subscription: Outputs. Since 5.0.0.
The replay buffer has been saved.
- `savedReplayPath` String: Path of the saved replay file

### SceneItemCreated
Category: scene items. Subscription: SceneItems. Since 5.0.0.
A scene item has been created.
- `sceneName` String: Name of the scene the item was added to
- `sceneUuid` String: UUID of the scene the item was added to
- `sourceName` String: Name of the underlying source (input/scene)
- `sourceUuid` String: UUID of the underlying source (input/scene)
- `sceneItemId` Number: Numeric ID of the scene item
- `sceneItemIndex` Number: Index position of the item

### SceneItemRemoved
Category: scene items. Subscription: SceneItems. Since 5.0.0.
A scene item has been removed.

This event is not emitted when the scene the item is in is removed.
- `sceneName` String: Name of the scene the item was removed from
- `sceneUuid` String: UUID of the scene the item was removed from
- `sourceName` String: Name of the underlying source (input/scene)
- `sourceUuid` String: UUID of the underlying source (input/scene)
- `sceneItemId` Number: Numeric ID of the scene item

### SceneItemListReindexed
Category: scene items. Subscription: SceneItems. Since 5.0.0.
A scene's item list has been reindexed.
- `sceneName` String: Name of the scene
- `sceneUuid` String: UUID of the scene
- `sceneItems` Array<Object>: Array of scene item objects

### SceneItemEnableStateChanged
Category: scene items. Subscription: SceneItems. Since 5.0.0.
A scene item's enable state has changed.
- `sceneName` String: Name of the scene the item is in
- `sceneUuid` String: UUID of the scene the item is in
- `sceneItemId` Number: Numeric ID of the scene item
- `sceneItemEnabled` Boolean: Whether the scene item is enabled (visible)

### SceneItemLockStateChanged
Category: scene items. Subscription: SceneItems. Since 5.0.0.
A scene item's lock state has changed.
- `sceneName` String: Name of the scene the item is in
- `sceneUuid` String: UUID of the scene the item is in
- `sceneItemId` Number: Numeric ID of the scene item
- `sceneItemLocked` Boolean: Whether the scene item is locked

### SceneItemSelected
Category: scene items. Subscription: SceneItems. Since 5.0.0.
A scene item has been selected in the Ui.
- `sceneName` String: Name of the scene the item is in
- `sceneUuid` String: UUID of the scene the item is in
- `sceneItemId` Number: Numeric ID of the scene item

### SceneItemTransformChanged
Category: scene items. Subscription: SceneItemTransformChanged. Since 5.0.0.
The transform/crop of a scene item has changed.
- `sceneName` String: The name of the scene the item is in
- `sceneUuid` String: The UUID of the scene the item is in
- `sceneItemId` Number: Numeric ID of the scene item
- `sceneItemTransform` Object: New transform/crop info of the scene item

### SceneCreated
Category: scenes. Subscription: Scenes. Since 5.0.0.
A new scene has been created.
- `sceneName` String: Name of the new scene
- `sceneUuid` String: UUID of the new scene
- `isGroup` Boolean: Whether the new scene is a group

### SceneRemoved
Category: scenes. Subscription: Scenes. Since 5.0.0.
A scene has been removed.
- `sceneName` String: Name of the removed scene
- `sceneUuid` String: UUID of the removed scene
- `isGroup` Boolean: Whether the scene was a group

### SceneNameChanged
Category: scenes. Subscription: Scenes. Since 5.0.0.
The name of a scene has changed.
- `sceneUuid` String: UUID of the scene
- `oldSceneName` String: Old name of the scene
- `sceneName` String: New name of the scene

### CurrentProgramSceneChanged
Category: scenes. Subscription: Scenes. Since 5.0.0.
The current program scene has changed.
- `sceneName` String: Name of the scene that was switched to
- `sceneUuid` String: UUID of the scene that was switched to

### CurrentPreviewSceneChanged
Category: scenes. Subscription: Scenes. Since 5.0.0.
The current preview scene has changed.
- `sceneName` String: Name of the scene that was switched to
- `sceneUuid` String: UUID of the scene that was switched to

### SceneListChanged
Category: scenes. Subscription: Scenes. Since 5.0.0.
The list of scenes has changed.

TODO: Make OBS fire this event when scenes are reordered.
- `scenes` Array<Object>: Updated array of scenes

### CurrentSceneTransitionChanged
Category: transitions. Subscription: Transitions. Since 5.0.0.
The current scene transition has changed.
- `transitionName` String: Name of the new transition
- `transitionUuid` String: UUID of the new transition

### CurrentSceneTransitionDurationChanged
Category: transitions. Subscription: Transitions. Since 5.0.0.
The current scene transition duration has changed.
- `transitionDuration` Number: Transition duration in milliseconds

### SceneTransitionStarted
Category: transitions. Subscription: Transitions. Since 5.0.0.
A scene transition has started.
- `transitionName` String: Scene transition name
- `transitionUuid` String: Scene transition UUID

### SceneTransitionEnded
Category: transitions. Subscription: Transitions. Since 5.0.0.
A scene transition has completed fully.

Note: Does not appear to trigger when the transition is interrupted by the user.
- `transitionName` String: Scene transition name
- `transitionUuid` String: Scene transition UUID

### SceneTransitionVideoEnded
Category: transitions. Subscription: Transitions. Since 5.0.0.
A scene transition's video has completed fully.

Useful for stinger transitions to tell when the video *actually* ends.
`SceneTransitionEnded` only signifies the cut point, not the completion of transition playback.

Note: Appears to be called by every transition, regardless of relevance.
- `transitionName` String: Scene transition name
- `transitionUuid` String: Scene transition UUID

### StudioModeStateChanged
Category: ui. Subscription: Ui. Since 5.0.0.
Studio mode has been enabled or disabled.
- `studioModeEnabled` Boolean: True == Enabled, False == Disabled

### ScreenshotSaved
Category: ui. Subscription: Ui. Since 5.1.0.
A screenshot has been saved.

Note: Triggered for the screenshot feature available in `Settings -> Hotkeys -> Screenshot Output` ONLY.
Applications using `Get/SaveSourceScreenshot` should implement a `CustomEvent` if this kind of inter-client
communication is desired.
- `savedScreenshotPath` String: Path of the saved image file

### VendorEvent
Category: general. Subscription: Vendors. Since 5.0.0.
An event has been emitted from a vendor.

A vendor is a unique name registered by a third-party plugin or script, which allows for custom requests and events to be added to obs-websocket.
If a plugin or script implements vendor requests or events, documentation is expected to be provided with them.
- `vendorName` String: Name of the vendor emitting the event
- `eventType` String: Vendor-provided event typedef
- `eventData` Object: Vendor-provided event data. {} if event does not provide any data

### CustomEvent
Category: general. Subscription: General. Since 5.0.0.
for every client, a client got the usage since any client's call. */
Custom event emitted by `BroadcastCustomEvent`.
- `eventData` Object: Custom event data
