I have created a REST API according to the instrucions for a Web API.
Now I would like to use Postman to access this REST API using the URL:
http://<IP address of my Homey>/api/app/nl.das.pidevice/metric?name=Metric1
Without using authentication I get the error:
{
"error": "Missing Session",
"error_description": "Missing Session",
"stack": "Error: Missing Session\n at file:///app/lib/ManagerApi.mjs:81:25\n at processTicksAndRejections (node:internal/process/task_queues:95:5)",
"statusCode": 401,
"statusName": "HomeyErrorUnauthorized"
}
So I suppose I need to use some kind of authentication. I tried Basic with my email and password, but that didn’t work.
If I need OAuth2 using the developer ClientID and ClientSecret then I need to have the Auth URL, Access Token URL and Refresh Token URL of the OAuth2 provider. But these are not published by Athom as far as I can google…
Anyone any suggestions how to continue?