api integration to generate view url