Complete api auth