add api for recovery pages