add URL endpoint and basic logic for retrieval