Skip to main content
Use the client from request setup. These examples assume api, userAddress, and the returned songId are available. api includes the session token and selected account headers.

Paginate the catalog

addSongToYourList is your UI callback. Results are newest first and use offset pagination, with no total count or cursor. New catalog entries can shift later pages; deduplicate IDs while browsing. For the owner’s library, add creator: userAddress to the query and send the account header. The public list excludes private songs. Request a single song to get { song, stems, takes }.

Open a minted song for editing

Use the returned ID for every subsequent edit. Unminted songs return themselves. Minted songs get a private editable draft, which can be reused for the same basis.

Organize an album

A song has one album association. Check that your user owns the album and song in your product before managing membership. Album visibility is a catalog setting; do not use it to protect confidential media.