{"message":"DJ AI Server API","ui":[{"path":"/playlist-generator","description":"Web interface for generating AI playlists from Spotify playlists"}],"endpoints":[{"path":"/generate","method":"POST","description":"Generate a music playlist","body":{"venue":"string (required)","date":"string (required)","style":"string (required)","playlistId":"string (optional) - Spotify playlist ID or URL to use as song source","useSpotifyLibrary":"boolean (optional) - Use the DJ AI Song Library as source"}},{"path":"/spotify/generate-from-playlist","method":"POST","description":"Generate a playlist from a specific Spotify playlist or from the DJ AI Song Library","body":{"venue":"string (required)","date":"string (required)","style":"string (required)","playlistId":"string (optional) - Spotify playlist ID or URL. If not provided, uses the DJ AI Song Library"}},{"path":"/spotify/verify","method":"GET","description":"Verify Spotify API authentication is working"},{"path":"/spotify/artist","method":"GET","description":"Get information about the default artist (Taylor Swift)"},{"path":"/spotify/artist/:id","method":"GET","description":"Get information about a specific artist","params":{"id":"string (required) - Spotify artist ID"}},{"path":"/spotify/new-releases","method":"GET","description":"Get latest album releases from Spotify","query":{"limit":"number (optional) - Number of releases to retrieve (default: 20)"}},{"path":"/spotify/login","method":"GET","description":"Redirects to Spotify login page for authorization"},{"path":"/spotify/callback","method":"GET","description":"Callback endpoint for Spotify OAuth","query":{"code":"string - Authorization code from Spotify","state":"string - State parameter for security"}},{"path":"/spotify/user-playlists","method":"GET","description":"Get the current user's playlists (requires user authentication)"},{"path":"/spotify/user-playlist/:id/tracks","method":"GET","description":"Get tracks from a specific playlist using user authentication","params":{"id":"string (required) - Spotify playlist ID"}},{"path":"/spotify/featured-playlists","method":"GET","description":"Get a list of Spotify featured playlists (may require user authentication)"},{"path":"/spotify/playlist/tracks","method":"GET","description":"Get tracks from the default Spotify playlist (may require user authentication)"},{"path":"/spotify/playlist/:id/tracks","method":"GET","description":"Get tracks from a specific Spotify playlist (may require user authentication)","params":{"id":"string (required) - Spotify playlist ID"}}]}