---
updatedAt: 2026-06-01T16:41:25.000Z
agentTools:
  projectIndex: https://docs.sonos.com/llms.txt
---

# subscribe

Use this command to subscribe to events in the audioClip namespace.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "version": "v1.57.0-alpha.5-2-g3f75f144-production-cloud",
    "title": "Sonos Control API (cloud)",
    "description": "The Sonos Control API is the primary means by which your application will interact with Sonos groups. First, discover available groups and players. Then use Control API commands to control players. For example, perform basic transport control such as play, pause, or skip. Or subscribe to receive events from the player, like track metadata.<p>The control API defines commands and asynchronous events. Events are documented as Webhooks due to limitations of the OAS spec.</p>",
    "termsOfService": "https://developer.sonos.com/legal/terms-of-service",
    "x-logo": {
      "url": "Sonos-Logo.png"
    }
  },
  "x-a127-services": {
    "add-x-sonos-headers": {
      "provider": "x-headers",
      "apply": {
        "pipe": "request",
        "endPoint": "target"
      },
      "options": {
        "ignoreUnresolvedVariables": true,
        "displayName": "Add_X-Sonos_Headers",
        "headers": {
          "x-sonos-muse-permissions": {
            "type": "string",
            "default": "{authz_response.permissions}",
            "description": "x-sonos-muse-permissions header"
          },
          "x-sonos-api-key": {
            "type": "string",
            "default": "{client_id}",
            "description": "x-sonos-api-key header"
          },
          "x-sonos-user-id": {
            "type": "string",
            "default": "{app_enduser}",
            "description": "x-sonos-user-id header"
          }
        }
      }
    },
    "base-apply-restrictions": {
      "provider": "apply-restrictions",
      "apply": {
        "pipe": "request",
        "endPoint": "proxy"
      },
      "options": {
        "displayName": "AR_BaseMuseRestrictions",
        "restrictionRules": {
          "allow": true
        },
        "parameters": [
          {
            "name": "oauth_only",
            "value": true
          }
        ]
      }
    },
    "x-muse-permissions": {
      "provider": "apply-restrictions",
      "options": {
        "displayName": "AR_AuthZPermissions",
        "restrictionRules": {
          "allow": true,
          "checkAll": true,
          "rules": [
            {
              "condition": "exists",
              "ref": "authz_response.permissions"
            }
          ],
          "e_reason": "Missing or invalid permissions"
        },
        "parameters": [
          {
            "name": "authz",
            "value": true
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "{protocol}://api.ws.sonos.com/control/api/{version}",
      "description": "Sonos Experience",
      "variables": {
        "version": {
          "description": "MUSE API major version",
          "default": "v1",
          "enum": [
            "v1"
          ]
        },
        "protocol": {
          "description": "connection protocol",
          "default": "https",
          "enum": [
            "https"
          ]
        }
      }
    }
  ],
  "x-sonos-targets": [
    {
      "name": "default",
      "server": "muse-backend-apigee-origin-d1"
    }
  ],
  "tags": [
    {
      "name": "audioClip",
      "description": "The audioClip namespace enables your app or hardware integration to play short audio clips on Sonos. You’ll have the option of specifying a custom URL or using a Sonos provided sound. The clip may be mixed with any playing content. Not all devices can implement the commands in this namespace. Devices that support the commands include the AUDIO_CLIP capability in the player object (see the group object for details).\n\n Commands in this namespace are player targeted, by default.",
      "x-muse-namespace-permissions": [
        {
          "name": "read",
          "bit": "0"
        },
        {
          "name": "write",
          "bit": "1"
        }
      ],
      "x-muse-namespace-events": [
        {
          "x-muse-event-name": "audioClipStatus",
          "x-muse-since-version": "1.10.0",
          "$ref": "#/components/schemas/audioClipStatus"
        }
      ],
      "x-muse-since-version": "1.10.0"
    }
  ],
  "paths": {
    "/players/{playerId}/audioClip/subscription": {
      "post": {
        "operationId": "AudioClip-Subscribe-PlayerId",
        "description": "Use this command to subscribe to events in the audioClip namespace.",
        "summary": "subscribe",
        "tags": [
          "audioClip"
        ],
        "responses": {
          "200": {
            "description": "See the x-muse-error-codes extension for a list of muse errors that generate this response",
            "x-muse-error-codes": [
              "OK"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ok"
                }
              }
            }
          },
          "400": {
            "description": "See the x-muse-error-codes extension for a list of muse errors that generate this response",
            "x-muse-error-codes": [
              "ERROR_INVALID_OBJECT_ID",
              "ERROR_INVALID_SYNTAX",
              "ERROR_MISSING_PARAMETERS"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/globalError"
                }
              }
            }
          },
          "401": {
            "description": "See the x-muse-error-codes extension for a list of muse errors that generate this response",
            "x-muse-error-codes": [
              "ERROR_NOT_AUTHORIZED"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/globalError"
                }
              }
            }
          },
          "403": {
            "description": "See the x-muse-error-codes extension for a list of muse errors that generate this response",
            "x-muse-error-codes": [
              "ERROR_NO_PERMISSION"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/globalError"
                }
              }
            }
          },
          "404": {
            "description": "See the x-muse-error-codes extension for a list of muse errors that generate this response",
            "x-muse-error-codes": [
              "ERROR_GROUP_CHANGED",
              "ERROR_UNSUPPORTED_NAMESPACE",
              "ERROR_CMD_FUTURE"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/globalError"
                }
              }
            }
          },
          "499": {
            "description": "See the x-muse-error-codes extension for a list of muse errors that generate this response",
            "x-muse-error-codes": [
              "ERROR_COMMAND_FAILED",
              "ERROR_QUEUE_FULL",
              "ERROR_NYI"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/globalError"
                }
              }
            }
          },
          "500": {
            "description": "See the x-muse-error-codes extension for a list of muse errors that generate this response",
            "x-muse-error-codes": [
              "ERROR_INTERNAL"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/globalError"
                }
              }
            }
          },
          "503": {
            "description": "See the x-muse-error-codes extension for a list of muse errors that generate this response",
            "x-muse-error-codes": [
              "ERROR_SERVICE_UNAVAILABLE"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/globalError"
                }
              }
            }
          }
        },
        "security": [
          {
            "LegacyCloudOAuth2": [
              "playback-control-all"
            ],
            "BearerAuth": [],
            "ApiKeyAuth": []
          }
        ],
        "x-muse-permissions": [
          "read"
        ],
        "x-muse-since-version": "1.10.0"
      },
      "parameters": [
        {
          "in": "path",
          "name": "playerId",
          "description": "Target playerId",
          "required": true,
          "schema": {
            "type": "string"
          },
          "x-muse-since-version": "1.10.0"
        },
        {
          "in": "header",
          "name": "X-Sonos-Api-Key",
          "description": "Client API Key for the integration. Required in V1 but deprecated in V2.",
          "required": false,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "x-muse-since-version": "1.0.0",
          "deprecated": true,
          "x-muse-deprecated-version": "2.0.0",
          "x-muse-removed-version": "2.0.0"
        },
        {
          "in": "header",
          "name": "X-Sonos-Corr-Id",
          "description": "Correlation UUID for data tracking purposes",
          "required": false,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "x-muse-since-version": "1.10.0"
        }
      ],
      "description": "The audioClip namespace enables your app or hardware integration to play short audio clips on Sonos. You’ll have the option of specifying a custom URL or using a Sonos provided sound. The clip may be mixed with any playing content. Not all devices can implement the commands in this namespace. Devices that support the commands include the AUDIO_CLIP capability in the player object (see the group object for details).\n\n Commands in this namespace are player targeted, by default."
    }
  },
  "x-webhooks": {
    "audioClip:audioClipStatus": {
      "post": {
        "summary": "audioClipStatus",
        "description": "Sonos players event an audioClipStatus type in the audioClip namespace whenever it schedules, executes, or dismisses a clip. Subscribers to this namespace receive events for all audio clips, not just those loaded by the subscriber.",
        "operationId": "audioClip_audioClipStatus",
        "tags": [
          "audioClip"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/audioClipStatus"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "event successfully processed"
          },
          "403": {
            "description": "The event handler endpoint is Forbidden. The event source MAY stop sending events to the endpoint after receiving this error."
          }
        }
      }
    },
    "favorites:favoritesVersionChange": {
      "post": {
        "summary": "favoritesVersionChange",
        "description": "No description available",
        "operationId": "favorites_favoritesVersionChange",
        "tags": [
          "favorites"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/versionChanged"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "event successfully processed"
          },
          "403": {
            "description": "The event handler endpoint is Forbidden. The event source MAY stop sending events to the endpoint after receiving this error."
          }
        }
      }
    },
    "global:groupCoordinatorChanged": {
      "post": {
        "summary": "groupCoordinatorChanged",
        "description": "No description available",
        "operationId": "global_groupCoordinatorChanged",
        "tags": [
          "global"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/groupCoordinatorChanged"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "event successfully processed"
          },
          "403": {
            "description": "The event handler endpoint is Forbidden. The event source MAY stop sending events to the endpoint after receiving this error."
          }
        }
      }
    },
    "groups:groups": {
      "post": {
        "summary": "groups",
        "description": "The groups object in the groups namespace describes the current set of logical players and\n groups in the household. Use the getGroups command to get a groups object.",
        "operationId": "groups_groups",
        "tags": [
          "groups"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/groups"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "event successfully processed"
          },
          "403": {
            "description": "The event handler endpoint is Forbidden. The event source MAY stop sending events to the endpoint after receiving this error."
          }
        }
      }
    },
    "groupVolume:groupVolume": {
      "post": {
        "summary": "groupVolume",
        "description": "The groupVolume event in the groupVolume namespace indicates changes to group volume, the group mute state and whether the group volume is fixed or can be changed.\n\n When your app subscribes to the groupVolume namespace and receives this event, it can update its user interface to reflect the latest group volume and group mute state. For example, if a user configures a CONNECT to have a fixed line-out volume, your app will receive a groupVolume event with the fixed parameter value of true. Your app should then disable its volume slider so users know that volume adjustments are not permitted.\n\n Your app can expect to receive one or multiple groupVolume events associated with a single setVolume command. This is because the individual player volume changes become effective at different times, and groupVolume events may or may not be generated for each of the individual player volume changes. Your app is guaranteed to receive a final groupVolume event when all individual player volume changes are stable. See setVolume for more information on how group volume works.\n\n The group mute state is independent of the group volume value, so your app can have a separate mute button and update its state based on the muted parameter in the groupVolume event. The group coordinator also calculates the group mute state by taking into account all the individual player mute states. If all of the players in a group are muted, the muted state for the group is true. If at least one player in a group is not muted then the muted state for the group is false. See setMute for more information on the group mute state.",
        "operationId": "groupVolume_groupVolume",
        "tags": [
          "groupVolume"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/groupVolume"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "event successfully processed"
          },
          "403": {
            "description": "The event handler endpoint is Forbidden. The event source MAY stop sending events to the endpoint after receiving this error."
          }
        }
      }
    },
    "playback:playbackStatus": {
      "post": {
        "summary": "playbackStatus",
        "description": "The playbackStatus type in the playback namespace indicates changes to the group playback state, such as idle, buffering, paused, or playing, and the current playback position in the track. If the audio source is a cloud queue, this event also provides information about the cloud queue source, like the queueVersion and the current item’s itemId. It also can provide playback policies and modes. This object type can be a response to a command or an asynchronous event sent to apps subscribed to the playback namespace.\n\n The initial state of a group after startup is PLAYBACK_STATE_IDLE. When a user starts playing audio on a group, it transitions to PLAYBACK_STATE_BUFFERING and PLAYBACK_STATE_PLAYING, or it may skip the buffering state and go straight to playing. Depending on the audio source, pausing playback may cause the group to go to either PLAYBACK_STATE_PAUSED or PLAYBACK_STATE_IDLE. For example, streaming audio sources, such as Internet radio stations, will be in PLAYBACK_STATE_IDLE when paused. A group can also transition to PLAYBACK_STATE_IDLE after a playback error occurs.\n\n Your app will only be notified of changes to the current track position that result from any user action to seek to a new track position, a new track starting or the last track ending, or a playback error. If a track is playing normally on a group, your app will not receive playbackStatus events while the track position progresses without errors. If your app has a progress bar, you should update it with a local timer when playing normally.\n\n You will receive the item ID and offset position for the current item as well as for the previous item. For example, when a user skips from one track to another, you’ll receive the previousItemId and previousPositionMillis for the previous track, as well as the itemId and positionMillis for the currently playing track. If the user pauses the currently playing track, the previous track and position will be the same as the currently playing track and position. If the user seeks within the same track, the previous track will be the same as the currently playing track, but the position will be different.",
        "operationId": "playback_playbackStatus",
        "tags": [
          "playback"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/playbackStatus"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "event successfully processed"
          },
          "403": {
            "description": "The event handler endpoint is Forbidden. The event source MAY stop sending events to the endpoint after receiving this error."
          }
        }
      }
    },
    "playback:playbackError": {
      "post": {
        "summary": "playbackError",
        "description": "The playbackError event in the playback namespace indicates playback errors on the group, such as a media server timing out, or when there’s no content loaded on the player.\n\n Most playback errors occur when the player requests audio from the media server and the request fails. Your app can use the errorCode to handle specific types of errors, and log the reason string for debugging the error.\n\n If a cloud queue is loaded as the audio source on a group, your app can also receive playbackError events on cloud queue server request errors. Your app will also receive the itemId of the cloud queue track that caused the error. Players communicate in the background with the cloud queue server to retrieve new tracks when needed. See Play audio for more details.",
        "operationId": "playback_playbackError",
        "tags": [
          "playback"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/playbackError"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "event successfully processed"
          },
          "403": {
            "description": "The event handler endpoint is Forbidden. The event source MAY stop sending events to the endpoint after receiving this error."
          }
        }
      }
    },
    "playbackMetadata:playbackMetadataStatus": {
      "post": {
        "summary": "playbackMetadataStatus",
        "description": "A notification of changes to the metadata for the currently playing track and the next track, if available.",
        "operationId": "playbackMetadata_playbackMetadataStatus",
        "tags": [
          "playbackMetadata"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/metadataStatus"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "event successfully processed"
          },
          "403": {
            "description": "The event handler endpoint is Forbidden. The event source MAY stop sending events to the endpoint after receiving this error."
          }
        }
      }
    },
    "playbackSession:sessionError": {
      "post": {
        "summary": "sessionError",
        "description": "The sessionError event in the playbackSession namespace indicates the session error status, such as failures to join and evictions.",
        "operationId": "playbackSession_sessionError",
        "tags": [
          "playbackSession"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/sessionError"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "event successfully processed"
          },
          "403": {
            "description": "The event handler endpoint is Forbidden. The event source MAY stop sending events to the endpoint after receiving this error."
          }
        }
      }
    },
    "playbackSession:sessionInfo": {
      "post": {
        "summary": "sessionInfo",
        "description": "The sessionInfo event in the playbackSession namespace indicates whether a specified session is suspended or not. Players send this event when they go in or out of a suspended state. This event is also delivered upon initially subscribing to a playbackSession.\n\n When an action causes a playbackSession to be suspended, players deliver a suspended value of true to indicate this transition.",
        "operationId": "playbackSession_sessionInfo",
        "tags": [
          "playbackSession"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/sessionInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "event successfully processed"
          },
          "403": {
            "description": "The event handler endpoint is Forbidden. The event source MAY stop sending events to the endpoint after receiving this error."
          }
        }
      }
    },
    "playerVolume:playerVolume": {
      "post": {
        "summary": "playerVolume",
        "description": "The playerVolume event in the playerVolume namespace indicates changes to the volume for a player, the mute state for the player and whether the player volume is fixed or can be changed.\n\n When your app subscribes to the playerVolume namespace and receives this event, it can update its user interface to reflect the latest player volume and player mute state. For example, if a user configures a CONNECT to have a fixed line-out volume, your app will receive a playerVolume event with the fixed parameter value of true. Your app should then disable its volume slider so users know that volume adjustments are not permitted.",
        "operationId": "playerVolume_playerVolume",
        "tags": [
          "playerVolume"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/playerVolume"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "event successfully processed"
          },
          "403": {
            "description": "The event handler endpoint is Forbidden. The event source MAY stop sending events to the endpoint after receiving this error."
          }
        }
      }
    },
    "playlists:playlistsVersionChange": {
      "post": {
        "summary": "playlistsVersionChange",
        "description": "No description available",
        "operationId": "playlists_playlistsVersionChange",
        "tags": [
          "playlists"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/versionChanged"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "event successfully processed"
          },
          "403": {
            "description": "The event handler endpoint is Forbidden. The event source MAY stop sending events to the endpoint after receiving this error."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "globalError": {
        "x-muse-object-type": "dataType",
        "type": "object",
        "description": "Players use the globalError object type for command responses that include generic errors that apply to commands in all namespaces in the Control API. Players send an errorCode and reason in the body, as well as a success value of false in the response header.\n\n The reason values are readable strings that describe syntax and parameter errors. These strings are not intended for end-user display or for use programmatically.",
        "properties": {
          "errorCode": {
            "type": "string",
            "description": "The particular error that occurred.",
            "default": "ERROR_COMMAND_FAILED",
            "x-muse-since-version": "1.0.0"
          },
          "reason": {
            "type": "string",
            "maxLength": 256,
            "description": "(Optional) A message, if present, indicating more information about the error, to aid in diagnosing problems. Reason strings are not meant for end-user display but are useful in development or error logs.",
            "x-muse-since-version": "1.0.0",
            "nullable": true
          }
        },
        "x-muse-since-version": "1.0.0"
      },
      "ok": {
        "x-muse-object-type": "dataType",
        "type": "object",
        "description": "This object represents an empty (default) success. The platform returns\n an empty object ({}).",
        "properties": {},
        "x-muse-since-version": "1.0.0"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Sonos-Api-Key"
      },
      "LegacyCloudOAuth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://api.sonos.com/login/v3/oauth",
            "tokenUrl": "https://api.sonos.com/login/v3/oauth/access",
            "refreshUrl": "https://api.sonos.com/login/v3/oauth/access",
            "scopes": {
              "playback-control-all": "Grants playback control"
            }
          }
        }
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Random string access token (sample: Bearer 4NFaXYpulWapPTDIxuLGLlxOOfZ9)",
        "description": "Used to accept oauth2 tokens"
      }
    }
  }
}
```