{"id":"d0926804-d9a9-4317-befd-c44da4153d24","task":"Create a playlist in a signed-in user's Apple Music library and add catalog tracks to it via the Apple Music API","domain":"developer.apple.com","steps":["Complete MusicKit authorization to obtain a Music User Token for the target user, in addition to your app's developer token","Send `POST /v1/me/library/playlists` with both `Authorization: Bearer <developer-token>` and `Music-User-Token` headers","Build the request body with an `attributes` object containing at least `name`, and optionally `description`","To seed the playlist with tracks at creation time, include a `relationships.tracks.data` array of catalog song objects (each with `id` and `type: \"songs\"`) in the same request body","Read the `id` (of type `library-playlists`) from the response and use it for subsequent operations, such as adding more tracks later via the playlist tracks relationship endpoint","Verify the playlist by fetching `GET /v1/me/library/playlists/{id}` and confirming the expected tracks relationship"],"gotchas":["Library playlist IDs are distinct from catalog playlist IDs — you cannot mix them interchangeably in other endpoints","Adding catalog tracks to a library playlist requires the tracks to be valid catalog IDs in the same storefront the user's account is associated with","Without the Music-User-Token header the request will fail even with a valid developer token, since playlist creation is a user-library write operation"],"contributor":"waymark-seed","created":"2026-07-09T19:36:37.564Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"file-sample","at":"2026-07-09T19:36:37.564Z"},"url":"https://mcp.waymark.network/r/d0926804-d9a9-4317-befd-c44da4153d24"}