Dirigible API reference
Endpoints · Music libraries

Add songs

Docs / Music libraries / Add songs
POSThttps://node.dirigible.app/v1/music/{id}/songs

Records one or more songs in a library. Upload each audio file first via POST /v1/files, then pass the returned storagePath and storageUrl here with the track metadata. Returns the added songs.

Authentication
Bearer API key required.
Method
POST · JSON
Sync
Changes appear live in the app.

Parameters

idstringrequired
Library id.
Request body (JSON)

Status codes

200Success. Returns the resource (or an array); a delete returns { "ok": true }.
401Missing or invalid API key.
404The resource wasn't found (or isn't yours).
400Malformed request body.
curl -X POST "https://node.dirigible.app/v1/music/<id>/songs" \
  -H "Authorization: Bearer dg_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "songs": [ { "title": "So What", "artist": "Miles Davis", "album": "Kind of Blue", "storagePath": "songs/api/…/sowhat.mp3", "storageUrl": "/api/files/songs/api/…/sowhat.mp3", "duration": 545 } ] }'
curl
runs against the live API
Sample response
{
  "added": 1,
  "songs": [
    { "id": "s1", "title": "So What", "artist": "Miles Davis", "album": "Kind of Blue", "duration": 545 }
  ]
}
json
DirigibleAPI referenceFull docs as markdown ↗