Cloned api for preview