Add ajax add api fnc

testing