Http requests toggle light

Im using webhooks and particle but each time i send the it toogles my light it will change to the colour i want but each time i send a request it will either turn the light off or on

More details if you want help.

You need to show your parameters etc because you have referenced the set state endpoint but not what you are sending. The endpoint allows you to set the state including the power. There is a toggle power endpoint as well but that isn’t what you are using.
Without more details there is nothing anyone can really say.

Were you able to resolve your issue, or do you still need help turning on and off the light using the HTTP API?