IFTTT not working at all with JSON POST

So I’m using IFTTT for a task to turn on a switch which will then automate other things, however IFTTT refuses to work and I’ve tried my URL on Postman and it works gloriously, what’s up with IFTTT?

Here’s what I have it as:

http://REDACTED:80/api/services/switch/turn_on?api_password=REDACTED
Method: Post
Content Type: Application/json
Body: (Just empty)

Again using just the url and api password it works, but for some reason when triggering it using my google home it won’t work at all.

You need to specify the switch entity that you want to turn on in the body section. Something like:

{"entity_id":"switch.my_switch"}

Even if you don’t need a body (like if you’re triggering a script), enter something.

{}

Also - you might need “Application/json” to be “application/json”

https isn’t port 80. Take the port off your URL.

BTW - you can test these interactions outside of IFTTT with a tool like PostMan (a Chrome plugin) that’ll format POSTs

1 Like

Crap forgot to switch to 443. Let me see if that fixes it.

FIXED! Thank you, I’ve been up for around 24 hours now, so my brain is mush. haha. All working now. :smiley: