Skip to main content

Overview

The @spotify/backstage-plugin-soundcheck-client package exposes a fully-typed REST API client generated from the Soundcheck OpenAPI spec. It lets you programmatically interact with every Soundcheck endpoint from your own Backstage backend modules, custom plugins, or scripts — without manually constructing HTTP requests.

Installation

Creating the client

Use createSoundcheckApiClient to instantiate the client. It requires a Backstage discoveryApi for service-to-service URL resolution and accepts an optional fetchApi for custom fetch behavior (e.g., service-to-service auth).
If you’re calling the Soundcheck API from another backend plugin, you can obtain discoveryApi and fetchApi from the plugin environment provided by coreServices.

Available endpoint groups

The client provides methods for the following endpoint groups: Every method is fully typed — parameter shapes (path, query, body) and response types are inferred from the OpenAPI spec, so your editor will provide autocompletion and type-checking out of the box.

Usage examples

Reading data

Writing data

Authentication

All methods accept an optional options parameter with a bearer token for service-to-service authentication:

Using generated types

Generated model types are available under the SoundcheckApiTypes namespace:
For the full list of available endpoints and their parameters, see the API Reference.