Wordpress API credentials

I have been trying for a day or two to verify Wordpress API credentials.

I am using my:
Wordpress Username under my profile.
Creating a new application password labeled n8n agents and copying and pasting the key.
Using my website URL that I copy and paste from my wordpress profile under URL.

No matter what I do or use or how many times I try to log in I continue to get an error that says “unauthorized”. I have tried to reach out to Hostgator to see if there was something that was blocking my access. They ultimately recommended me to check with n8n to see what the issue could be.

Any ideas or help would be greatly appreciated.

I am not sure what the issue is, but I can confirm that the node is working. Just tried creating a wordpress instance in docker, created a dns name for it, created the app password, and was able to pull posts from wordpress with my username, app password and the baseurl of the instance.

A few things you could be checking:

  1. App Password Not Enabled or Valid
    (see if the same page lists the password and it is valid / not revoked)
  2. Basic Auth Blocked by Hosting Provider
    (well, that you can’t check yourself, but can ask)
  3. Wrong Base URL
    (what do you use as the url to your wordpress)
  4. Incorrect User Role
    (does your user have sufficient permissions)
  5. Security Plugins or .htaccess Blocking REST Access
    if you haven’t configured, it would be, I guess)
  6. HTTPS Required but Not Used
    (check if https is enforced)