edwaa
edwaa

Reputation: 23

Sonos Control API: Unable to route the message to a Target Endpoint

I keep getting error messages when trying to use the Sonos Control API. Any help is appreciated. Thanks!

Example request:

POST /control/v1/groups/RINCON_B8E93782FB9401400:363/playback/togglePlayPause HTTP/1.1
Host: api.ws.sonos.com
Content-Type: application/json
Content-Length: 0
Authorization: Bearer <token>

Response:

{
    "fault": {
        "faultstring": "Unable to route the message to a Target Endpoint",
        "detail": {
            "errorcode": "messaging.runtime.RouteFailed"
        }
    }
}

Upvotes: 0

Views: 1148

Answers (1)

MarkBronnerSonos
MarkBronnerSonos

Reputation: 131

I think you might be missing part of the path. The endpoint should be: /control/api/v1/groups/RINCON_B8E93782FB9401400:363/playback/togglePlayPause

If there is API documentation on developer.sonos.com that is incorrect, can you please email the specifics to [email protected]? Thanks!

Upvotes: 1

Related Questions