Redirects the user to Spotify’s authorization page. After authorization, Spotify will redirect back to /api/spotify/callback with an authorization code.
You must configure a Spotify app in the Spotify Developer Dashboard and add the redirect URI (http://127.0.0.1:8010/api/spotify/callback for local development) to your app settings.
curl -X GET https://api.asta.app/api/spotify/setup \ -H "Authorization: Bearer YOUR_API_TOKEN"
{ "dashboard_url": "https://developer.spotify.com/dashboard", "docs_url": "https://developer.spotify.com/documentation/web-api", "redirect_uri": "http://127.0.0.1:8010/api/spotify/callback", "connect_url": "http://127.0.0.1:8010/api/spotify/connect?user_id=default", "steps": [ "Go to the Spotify Developer Dashboard (link below) and log in with your Spotify account.", "Click Create app. Fill in name and description (e.g. Asta), accept the terms, then Create.", "Open your app → Settings. Copy Client ID and Client secret and paste them below.", "For playback on your devices: in the app settings under Redirect URIs, add: http://127.0.0.1:8010/api/spotify/callback then Save." ]}
Returns setup instructions and configuration URLs for the Spotify integration.