@Emil No noticable latency actually. I just did a A-B test where I compared the response time to a Flic 2 with Spotifty play/toggle, and I can't really tell the difference. The volume control is also smooth.
Correct me if I'm wrong, but I seem to recall that if an app wish to communicate with another app using the x-callback-url scheme, then that app needs to be in the foreground in order to send the request? If so, then it would unfortunately defeat the purpose of a button.
Yes it's possible. If you actually get a status code such as 404 then it was the server that responded with the error code 404. Maybe you have the wrong url?
As with so many technical requests your question isn't really clear enough as to what the problem is. It looks like you're using Postman to generate the code and wanting to post a multipart form. I can only point you to https://ec.haxx.se/http-multipart.html .
You have my sympathies, curl is not the easiest to understand and API documentation rarely makes it easy to understand exactly what's necessary.