API and Figaro now working