How to authenticate for Rest-API to access things via myopenHAB?

Hey guys,
when I try the request “https://home.myopenhab.org/rest/items” and authenticate with maildress and password, I get a valid response.
But the “things”-endpoint (in my understanding) is only accessible with an API-Token.

How do I build my request to forfill both (mail+pw and token) authentications at once?

Regards
Harry

This works for my private cloud:

curl -X 'GET' \
  'https://Mydomain.de/rest/things' \
--user  'myname@maildomain.de:MyPassword' \
  -H 'accept: application/json' \
  -H 'X-OPENHAB-TOKEN: oh.testdeletelater.ABwhfj5x5BT1i7QKzIhgRoxVXYZilzMaX0qDtueVox6W6W2fA06gGwJhDZePDQMQytVkAoobst9ndWiztmmg'
1 Like

Works!
Thanks Wolfgang!

1 Like