API login and submission of links