Login with username and password

Login with username and password






Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36

Operating System

Windows 10


My Question or Issue

Hello ! I'm creating a Java api but I need to login with email and password and I have a problem.

I initiate a POST request with all the necessary on "https://accounts.spotify.com/login/password".


I have the same HEADER as the browser, my cookies are stored so I have the good "__bon", "csrf_token", "__Host-device_id", "__Secure-TPASESSION" and my POST request contains remember, username, continue, password and the csrf.


But I still get this error from the Spotify API:

Error #400 {"error":"errorUnknown"}


Can you help me please ?

Thanks in advance.

1 Reply

Hi @JohnKramer93,


Welcome to the forum. The Web API does not support email address and password authentication. You can find information about the supported OAuth flows here.

Suggested posts