@subesh-s Have you tried using the login utilities route in the write API? It should send back a valid session cookie.