saving completed api handler script