Prerequisites
- An authenticated user account (see Authentication)
- A valid JWT token
- A label ID (recommended, see Creating labels)
- Artist IDs to associate with the release
Understanding releases
A release in Lens Music represents:- An album, EP, or single
- Associated metadata (title, UPC, release date, catalog number)
- Tracks and their information
- Artist associations
- Label affiliation
Creating a release
Set up a new music release with metadata and distribution information.Prepare release metadata
Gather the required information:
- title (required): Release title (album/EP/single name)
- releaseDate (required): Official release date (ISO 8601 format)
- productionYear (required): Year the music was produced
- upc (optional): Universal Product Code for distribution
- version (optional): Version identifier (defaults to “original”)
- labelId (optional): UUID of the associated label
Releases must be unique based on the combination of title, release date, production year, user, label, and version.
Fetching releases
Retrieve releases with filtering and pagination options.List all releases
Filter by label
Retrieve releases for a specific label:Filter by user (admin only)
Admins can filter releases by user ID:Regular users automatically see only their own releases. Admins can query any user’s releases.
Get a specific release
Retrieve details for a single release:Release metadata explained
Catalog number
Catalog number
The catalog number is automatically generated using the production year:This unique identifier helps organize releases within your catalog. It’s generated server-side and cannot be manually set.
UPC code
UPC code
Universal Product Code for commercial distribution:
- 12-digit numeric code
- Required for most digital distribution platforms
- Must be unique across all releases
- Optional field but recommended for commercial releases
Release date format
Release date format
Use ISO 8601 date format:The server automatically formats this to full ISO timestamp:
Version identifier
Version identifier
Differentiate between versions of the same release:Defaults to “original” if not specified.
Uniqueness constraints
Releases must be unique based on this combination:- Title
- Release date
- Production year
- User ID
- Label ID
- Version
409 Conflict error:
To create variations of the same release, use the
version field (e.g., “deluxe”, “instrumental”).Pagination parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 0 | Zero-based page number |
size | integer | 10 | Number of releases per page |
labelId | string | - | Filter by label UUID |
userId | string | - | Filter by user UUID (admin only) |
Error handling
Release already exists (409 Conflict)
Release already exists (409 Conflict)
Release not found (404)
Release not found (404)
Validation error (400)
Validation error (400)
Best practices
Unique UPC codes
Use unique UPC codes for each release. Obtain UPC codes from authorized providers for commercial distribution.
Accurate metadata
Provide complete and accurate metadata. This ensures proper cataloging and distribution.
Proper versioning
Use the version field to differentiate between release variants (original, deluxe, remastered).
Label association
Always associate releases with a label for better organization and catalog management.
Adding tracks to releases
After creating a release, you’ll typically want to add tracks. While the tracks endpoint details are covered in the API reference, here’s a quick overview:Next steps
Creating synced lyrics
Add time-synced lyrics to your tracks
API Reference
View complete releases API documentation