Integrations

Change OBS

PATCH/api/integrations/obs
Admin. Needs an unlock token (x-tempolight-token) while a PIN lock is set; without a lock, anyone can call it.

Connects to OBS (WebSocket v5): Tempolight scenes for OBS scenes, scenes when streaming or recording starts, and a tally light.

Request body application/json

enabledboolean
urlstring
passwordstring
clearPasswordboolean
sceneMapobject[]
onStreamStartstring
onStreamStopstring
onRecordStartstring
tallyobject

Responses

200OKapplication/json
object

The OBS settings and status.

400The body isn't valid JSON, or a value is wrong.application/json
errorstringrequired

What went wrong, in a sentence for people.

403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X PATCH 'http://localhost:8080/api/integrations/obs' \
  -H 'content-type: application/json' \
  -d '{
  "enabled": true,
  "url": "ws://127.0.0.1:4455",
  "sceneMap": [
    {
      "obs": "Just chatting",
      "scene": "chill"
    }
  ]
}'
Response
{}
Edit on GitHub