Add Api factory