Skip to main content

How do I connect my WordPress site to my agent, and why does publishing fail with 401 or 404?

Connect WordPress with an Application Password for a dedicated Author or Editor user, and fix 401 and 404 errors.

  1. Create a dedicated WordPress user for the agent with the Author or Editor role.

  2. Signed in as that user, go to Users, then Profile, then Application Passwords, and add one. This needs WordPress 5.6 or later and HTTPS.

  3. On the agent's WordPress card, enter the site address with https:// (include a subfolder such as /blog if WordPress lives there), the username and the application password. Spaces in the password don't matter.

  • 401: the username or application password is wrong, or a security plugin has turned off application passwords.

  • 404 at /wp-json/: permalinks are set to Plain. Choose any other option under Settings, then Permalinks.

  • A firewall or Cloudflare blocks posting: allow requests to /wp-json/wp/v2/.

Did this answer your question?