api for Scan done