added redirect api documentation