close call using api