Add Playlist Items
spotify.add_playlist_items
ActionBusiness appsconnection required
Calls the Spotify API with the connection's credentials.
Add tracks or episodes to a playlist, appending or inserting them.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Spotify
- Secret shape
- {"client_id": "…", "client_secret": "…", "refresh_token": "…"}
- Config it needs
- market, device_id
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
playlist_id The Spotify id of the playlist to add to. The authorised account must own it or be a collaborator. | string | Yes | — | — | 3cEYpjA9oz9GiPac4AsH4n |
uris Spotify URIs of the tracks or episodes to add, at most 100 per call. | array | Yes | — | 1–100 characters; array of string | ["spotify:track:4iV5W9uYEdYUVa79Axb7Rh"] |
position Zero-based index to insert the items at. Left unset, they are appended to the end of the playlist. | number | No | — | ≥ 0 | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"playlist_id": "3cEYpjA9oz9GiPac4AsH4n",
"uris": [
"spotify:track:4iV5W9uYEdYUVa79Axb7Rh"
]
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
snapshot_id The playlist's new snapshot id, which identifies this version of it. | string | — |
added How many URIs were sent. | number | — |
{
"added": 0,
"snapshot_id": ""
}See Add Playlist Items run in a workflow.
In a technical demo we add the Spotify connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.