I have setup IFTTT/Maker to take some actions through the API and it’s working great, however when I try to connect to the API with postman for testing or from other services, I keep getting “500 Internal Server Error” in response. I probably just don’t know what I’m doing.
Thanks but I don’t think these are related. In fact, I just made a breakthrough. I am able to make the request in Postman but only if I format the body of the message as “raw” and type it exactly as: {"entity_id":"light.bedroom"}
I can’t get it to work by filling in the ‘key’ and ‘value’ fields. Unfortunately, that’s the only option I have for the Application I plan to use this from, which is the SmartThings CoRE smartapp.
What can I do to properly format the JSON body as key/value to make it work with HA?
Is there a way to format the entire URL to do what I want without having to use the ‘header’ or ‘body’? That would work for me.
Yeah, HASS is a little picky about the API. There’s not a way to use it without the header, and JSON is passed as the body. FWIW, looks like you got the format right for the body JSON. You can use the services dev tool to test json payloads.