Controlbyweb module using restful sensors

***Updated and resolved:
The answer was to use a DAT (Device Access Token) url that is provided in the CBW cloud account and don’t bother with the api.

I’m using a ControlbyWeb X-410 relay/sensor module to read temps using modbus on the local network which works well. I really need to have this accessible via the cloud as it is in an RV. I assume the best way to do this is with Restful sensors but it is way outside my expertise and after several hours of reading, configuring and testing it’s clear I need some help.

This is what I have in when trying to test one sensor.

rest:
  - authentication: basic
    username: "xxxxxx"
    password: "xxxxxxx"
    scan_interval: 60
    resource: https://api.controlbyweb.cloud/api/v1/auth/token/
    sensor:
      name: "Hose Reel Temperature"
      device_class: temperature
      unit_of_measurement: °F
      json_attributes_path: "$.customState.json"
      value_template: "{ { value_json.hoseReel } }"

I’ve gotten it so there are no errors in the logs but just returns “unknown” for data. Really appreciate any help in getting me in the right direction.

Thanks!