How to create a Pop endpoint