Help with api url

Hi,
I need to read a home assistant numeric sensor (a temperature) from a url for use with “Simple Complication” IOS App. This App need of a json http or https url to retrive the information and visualize it in the Apple Watch screen. I use Home Assistant version 0.106.0. I try to create a api_password, and use it in the url, but i obtained ‘401: Unauthorized’. Then I try to create a token, and use it into the url, but i got the same error.
Can anyone explain to me exactly how I have to build the url to read the sensor?
Thank you.

Yuri