completed api authentication