Integrations
Get integrations
GET
/api/integrationsAdmin. Needs an unlock token (
x-tempolight-token) while a PIN lock is set; without a lock, anyone can call it.The settings and live status of OBS, the games, Twitch, Discord and the Stream Deck plugin. Passwords, the Twitch sign-in and the Discord webhook are never sent back.
Responses
200OKapplication/json
obsobjectOBS settings and status.
gamesmap of objectBy game id (cs2, dota2).
twitchobjectTwitch settings, sign-in and status.
discordobjectDiscord settings (hasWebhook, the webhook masked) and status.
docsobjectstreamdeckobjectruntimeobjectNode.js version and WebSocket client.
403Locked, or not allowed.application/json
errorstringrequiredWhat went wrong, in a sentence for people.
Request
curl 'http://localhost:8080/api/integrations'const res = await fetch("http://localhost:8080/api/integrations");
const data = await res.json();
console.log(data);import requests
res = requests.get(
"http://localhost:8080/api/integrations",
)
print(res.json())Response
{
"obs": {},
"games": {},
"twitch": {},
"discord": {},
"docs": {
"tryIt": true,
"origins": [
"string"
]
},
"streamdeck": {
"available": true,
"download": "string",
"releases": "string",
"uuid": "string"
},
"runtime": {}
}{
"error": "Settings are locked. Unlock with the PIN in Settings."
}