How do I log in through Roblox API with JavaScript?

I am trying to get the latest inbound trade but I am trying to find out how to log in with the cookie does anyone know-how and will help me?