johngodley / redirection

Manage all your WordPress 301 redirects and monitor 404 errors
https://redirection.me
GNU General Public License v3.0
548 stars 140 forks source link

Authentication for API #3815

Open benatwalkly opened 4 months ago

benatwalkly commented 4 months ago

I am trying to use your API to add new redirects from our proprietary software. But I am not able to get passed the 401 rest_forbiddenresponse.

I am trying basic authentication protocol

When I call https://walkly.app/wp-json/wp/v2/users it works, but with the same authentication it does not work to call https://walkly.app/wp-json/redirection/v1/redirect

johngodley commented 2 weeks ago

The plugin uses the standard WordPress API. As such the best place to look is https://developer.wordpress.org/rest-api/