Create login/logout API call