now I got your point and yeah I can also there also some improvements in the doc of the REST Interface.
Until this is done I hope the following prints from my Py script will guide you through authentication and data service calls.
1. **Get Auth Token**
> URL: <https://192.168.178.156/_pxc_api/v1.2/auth/auth-token>
> Body: {"scope": "variables"}
> Return: {"code":"**328ab551f0708a83** ","expires_in":600}
>
>
>
2. **Get Auth Bearer
> ** URL: <https://192.168.178.156/_pxc_api/v1.2/auth/access-token>
> Body: {"code": "**328ab551f0708a83** ", "grant_type": "authorization_code", "username": "admin", "password": "12345678"}
> Return: {"state":"328ab551f0708a83","token_type":"Bearer","access_token":"**10110820708f48f4** ","roles":[]}
>
>
3. **Get Session ID**
> After the authentication is done, all further calls must include the bearer in the **header**.
>
> URL: <https://192.168.178.156/_pxc_api/v1.2/sessions>
> Header: {'User-Agent': 'python-requests/2.22.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', **'Authorization': 'Bearer 10110820708f48f4',** 'Content-Length': '28'}
> Body: stationID=xyz&timeout;=5000
> Return: {"apiVersion":"1.4.0.0","projectCRC":3238028397,"userAuthenticationRequired":true,"sessionID":"**s63164317** ","timeout":"5000"}
>
>
4. **Read Variables
> ** URL: [https://192.168.178.156/_pxc_api/v1.2/variables?SessionID=s84535925&paths;=Arp.Plc.Eclr%2FMainInstance.**Test_In_Variable** %2CArp.Plc.Eclr%2FMainInstance.**Test_In_Variable2**](https://192.168.178.156/_pxc_api/v1.2/variables?SessionID=s84535925&paths=Arp.Plc.Eclr%2FMainInstance.Test_In_Variable%2CArp.Plc.Eclr%2FMainInstance.Test_In_Variable2)
> Header: {'User-Agent': 'python-requests/2.22.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', '**Authorization': 'Bearer 6c64fa853a62f96c** '}
> Return: {"apiVersion":"1.4.0.0","projectCRC":3238028397,"userAuthenticationRequired":true,"variables":[{"path":"**Arp.Plc.Eclr/MainInstance.Test_In_Variable","value":false**},{"path":"**Arp.Plc.Eclr/MainInstance.Test_In_Variable2","value":false**}]}**
>
> **
Hope that helps, if not please let me know,
BR
Frank