Integrations

Sign in to Twitch

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

Starts the device-code sign-in: enter userCode at uri (twitch.tv/activate).

Request body application/json optional

clientIdstring

Responses

200OKapplication/json
userCodestring
uristring
expiresAtnumber
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 POST 'http://localhost:8080/api/integrations/twitch/login' \
  -H 'content-type: application/json' \
  -d '{
  "clientId": "abcdefghijklmnopqrstuvwxyz0123"
}'
Response
{
  "userCode": "ABCD-EFGH",
  "uri": "https://www.twitch.tv/activate",
  "expiresAt": 1762201800000
}
Edit on GitHub