# Trigger Play / Pause from HTTP request

**URL:** <https://discourse.mopidy.com/t/trigger-play-pause-from-http-request/1217>\
**Category:** Pi MusicBox (archive)\
**Created:** [May 2, 2016, 6:22am UTC](https://discourse.mopidy.com/t/trigger-play-pause-from-http-request/1217 "2016-05-02T06:22:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![horendus](https://avatars.discourse-cdn.com/v4/letter/h/ebca7d/32.png) [@horendus](https://discourse.mopidy.com/u/horendus)\
**Post date:** [May 2, 2016, 6:22am UTC](https://discourse.mopidy.com/t/trigger-play-pause-from-http-request/1217/1 "2016-05-02T06:22:07Z")

</div>

Hey

I want to be able to send a HTTP request from my other control device which will cause Pi Music Box to Play or Pause. Im currently using the Autoboot and play feature to play a Spotify playlist which works great but I want to be able to play / pause it from a 3rd party device which is capable of HTTP requests.

Is here some API I can tap into do be able to send something like [http://musicbox.local/play](http://musicbox.local/play)[http://musicbox.local/pause](http://musicbox.local/pause) ?

Regards  
Jasper

---

<div class="post-metadata">

**Author:** ![tkem](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/tkem/32/22_2.png) [@tkem](https://discourse.mopidy.com/u/tkem)\
**Post date:** [May 2, 2016, 9:31am UTC](https://discourse.mopidy.com/t/trigger-play-pause-from-http-request/1217/2 "2016-05-02T09:31:51Z")

</div>

[https://mopidy.readthedocs.io/en/latest/api/http/](https://mopidy.readthedocs.io/en/latest/api/http/)

---

<div class="post-metadata">

**Author:** ![horendus](https://avatars.discourse-cdn.com/v4/letter/h/ebca7d/32.png) [@horendus](https://discourse.mopidy.com/u/horendus)\
**Post date:** [May 3, 2016, 7:01am UTC](https://discourse.mopidy.com/t/trigger-play-pause-from-http-request/1217/3 "2016-05-03T07:01:49Z")

</div>

I have taken a look at this API and it doesnt look to accept HTTP GET requests which is all that I can send out from my 3rd party control device. It accepts JSON or HTTP POST requests.

I can also send TCP or UDP packets to IP addresses, any idea if it support commands like this? I supposed I could try and create a long HTTP POST request as a TCP packet however I feel I will reach a character limit before then.

How do people normally control Music Box from other sources such as Arduino over the network?

---

<div class="post-metadata">

**Author:** ![tkem](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/tkem/32/22_2.png) [@tkem](https://discourse.mopidy.com/u/tkem)\
**Post date:** [May 3, 2016, 9:40am UTC](https://discourse.mopidy.com/t/trigger-play-pause-from-http-request/1217/4 "2016-05-03T09:40:10Z")

</div>

An alternative might be sending MPD commands over TCP, which are just simple line-base text records:  
[https://www.musicpd.org/doc/protocol/](https://www.musicpd.org/doc/protocol/)

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2651_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [February 19, 2026, 11:47am UTC](https://discourse.mopidy.com/t/trigger-play-pause-from-http-request/1217/5 "2026-02-19T11:47:28Z")

</div>

Closed on February 19, 2026, 11:47am UTC


