add rest api for embedcodes