api for checkpoint