Endpoints for recording playback events and managing history
Update playback history configuration
Updates the user's playback history configuration (e.g., pause/resume history).
Update playback history configuration › Request Body
pauseHistoryWhether to pause history tracking
Update playback history configuration › Responses
Playback configuration updated successfully
Record a playback event
Records or updates a playback session in the user's history. Uses UPSERT logic: updates existing session or creates new one for user+song combination.
Record a playback event › Request Body
songIdThe ID of the song being played
durationSecondsThe total duration of the song in seconds
contextTypeThe type of resource being played (PLAYLIST, COLLECTION) if applicable
contextIdThe ID of the context resource (e.g., playlist or collection) if applicable
contextNameThe name of the context resource (e.g., playlist or collection) if applicable
contextOwnerIdIndicates if the playback is a preview (e.g., 30-second clip)
positionSecondsThe position in seconds where playback is starting
Record a playback event › Responses
Playback recorded successfully
Get playback history
Retrieves the user's playback history with pagination, ordered by most recent first
query Parameters
pagePage number (0-based)
sizePage size
sortSort by field
Get playback history › Responses
Playback history retrieved successfully
pausedWhether the playback history tracking is paused
Search playback history
Search the user's playback history by song title or artist name
query Parameters
querySearch query (song title or artist name)
pagePage number (0-based)
sizePage size
sortSort by field
Search playback history › Responses
Search results retrieved successfully
pausedWhether the playback history tracking is paused