Authentication Routes

POST/api/auth/anonymous-login

Create an anonymous user account and get access token

Try it out

GET/api/auth/anonymous-login

Create an anonymous user account and get access token

Try it out

GET/auth/spotify-login[?callback_url=URL][&auth_token=TOKEN]

Initiate Spotify OAuth login flow

Try it out

Note: This endpoint will redirect you to Spotify's login page

If you already have a user and you want to link the user with Spotify, you can use the auth token from the anonymous login.

Otherwise it will create a new user account and generate a new auth token for you.

POST/api/auth/logout

Logout a user account

Try it out

DELETE/api/auth/delete-user

Delete a user account

Try it out