API POST to Home Assistant returns "Invalid JSON specified"
Hi,
I am trying to save a state to Home Assistant using the API.
The POST request is working fine in postman, but not i Tasker.
When i add the header "Authorization: Bearer <token>" (replacing "<token>" with the correct token. 183 characters consisting of letters and a period. So no special characters if that is relevant).
The response is "Invalid JSON specified".
If i change "Authorization" to something else it says "Unauthorized" instead.
What am i doing wrong?