curl --fail-with-body -X POST "$RAWCHUNKS_API/api/songs/$(jq -nr --arg v "$ID" '$v|@uri')/remix" \
-H "x-session-user-address: $USER_ADDRESS"
{
"id": "sng-example",
"title": "Night circuit",
"creator": "0x1111111111111111111111111111111111111111",
"url": "https://example.com/final.wav"
}
Songs and takes
Create a remix draft
Create a private draft linked to a minted original.
POST
/
api
/
songs
/
{id}
/
remix
curl --fail-with-body -X POST "$RAWCHUNKS_API/api/songs/$(jq -nr --arg v "$ID" '$v|@uri')/remix" \
-H "x-session-user-address: $USER_ADDRESS"
{
"id": "sng-example",
"title": "Night circuit",
"creator": "0x1111111111111111111111111111111111111111",
"url": "https://example.com/final.wav"
}
The source needs audio,
network, and chain_song_id and must be an original. Your integration must check the caller’s onchain license first. This request neither buys a license nor mints a remix.
License and remix.
Headers and parameters
string
required
Resource ID.
string
required
Selected account address. Required for owner-scoped reads and writes. It identifies the account; your product must authenticate its own users.
Response (201)
Success.string
required
string
required
string
required
string
required
string
string | null
string | null
string | null
string | null
string | null
string | null
string | null
string | null
string | null
integer
integer
number
Listed USDC per minute.
number
Listed USDC per license.
number | null
Seconds.
string[]
boolean
Catalog visibility. Media URLs are not private storage.
Errors
Failed JSON responses contain anerror string. Check the HTTP status before reading a successful result. See job handling for interrupted or uncertain submissions.
| Status | Meaning |
|---|---|
400 | Invalid request. |
403 | Account does not match resource. |
404 | Resource not found. |
409 | Resource conflict; reload state or open an editable version. |
500 | Request failed. |
curl --fail-with-body -X POST "$RAWCHUNKS_API/api/songs/$(jq -nr --arg v "$ID" '$v|@uri')/remix" \
-H "x-session-user-address: $USER_ADDRESS"
{
"id": "sng-example",
"title": "Night circuit",
"creator": "0x1111111111111111111111111111111111111111",
"url": "https://example.com/final.wav"
}
⌘I