Skip to content

QR Login

watch.auth.session.qr.login

This API allows you to login users with QR code.

Headers

The authorization header must carry the API key that was provided during application registration.

Header Value
Authorization Bearer api_key

Endpoint

    POST v2/watch/auth/login/qr

Request Body

    {
        "type": "pin",
        "credentials": "<your_creds>",
        "persist": true
    }
Parameter Type Description
type String Specifies the type of authentication. The allowed values are [pin, password].
credentials Object Specifies your authentication credentials. This can be PIN of username and password defined. See samples below.
persist Boolean Specifies if the user needs to be logged in for a longer period of time.

Request Body (type = pin)

Send the following request body when authenticating using PIN:

    {
        "type": "pin",
        "credentials": {
            "pin": "BSGB7xx"
        }
    }

Body (type = password)

Send the following request body when authenticating using username and password:

    {
        "type": "password",
        "credentials": {
            "username": "john.doe@indee.tv",
            "password": "yourpasswordhere"
        }
    }

Response Body

    {
        "status_code": "W0000",
        "message": ""
    }
Field Type Description
status_code Integer The Indee API status code. See the full list of codes in the Status Codes section.