---
title: "subscribe"
method: POST
path: "/playbackSessions/{sessionId}/playbackSession/subscription"
tags: ["playbackSession"]
---

# subscribe

`POST /playbackSessions/{sessionId}/playbackSession/subscription`

## Request

- Base URL: `https://api.ws.sonos.com/control/api/v1`
- URL: `https://api.ws.sonos.com/control/api/v1/playbackSessions/{sessionId}/playbackSession/subscription`
- Auth: OAuth 2 and HTTP bearer and API key in header `X-Sonos-Api-Key`
  - Authorization code: `https://api.sonos.com/login/v3/oauth`
  - Token URL: `https://api.sonos.com/login/v3/oauth/access` scopes: `playback-control-all`

Use this command to subscribe to events in the playbackSession namespace for a specific sessionId. Your app can only be subscribed to one session at a time.

 Returns an empty body with a success value of true if successful.

## Response `200`

See the x-muse-error-codes extension for a list of muse errors that generate this response

- Ok: This object represents an empty (default) success. The platform returns an empty object ({}).

## Other responses

- `400`: See the x-muse-error-codes extension for a list of muse errors that generate this response
- `401`: See the x-muse-error-codes extension for a list of muse errors that generate this response
- `403`: See the x-muse-error-codes extension for a list of muse errors that generate this response
- `404`: See the x-muse-error-codes extension for a list of muse errors that generate this response
- `499`: See the x-muse-error-codes extension for a list of muse errors that generate this response
- `500`: See the x-muse-error-codes extension for a list of muse errors that generate this response
- `503`: See the x-muse-error-codes extension for a list of muse errors that generate this response

---

[API](https://skmtc.dev/sonos/apis/sonos-control-api-cloud.md) - [All operations](https://skmtc.dev/sonos/apis/sonos-control-api-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/sonos/apis/sonos-control-api-cloud/revisions/0c452bcf7b2a?raw)
