Added an option to have an APICall authenticated