pages api and specs