pages rest api