start ajax to api