Skip to main content

Wordpress

Prefer guided AI setup?

Instead of following these steps manually, you can use the AI Credential Assistant — describe what you want to connect and the AI will walk you through the setup step by step, tailored to your account.

Overview​

Connect your WordPress site to Nirvai to manage content, posts, pages, and media programmatically. WordPress powers over 40% of all websites, and its REST API enables powerful automation capabilities.

Supported Authentication Methods​

  • Basic Auth (Application Password) - Required

Prerequisites​

  • A WordPress account or self-hosted WordPress site
  • WordPress 5.6 or later (for Application Passwords)
  • Two-Step Authentication enabled (for WordPress.com)

Setup Instructions​

Step 1: Enable Two-Step Authentication​

For WordPress.com sites, you must first enable Two-Step Authentication:

  1. Open your WordPress profile
  2. Select Security from the left menu
  3. Select Two-Step Authentication
  4. If not enabled, follow the on-screen instructions to enable it
  5. Choose authenticator app or SMS codes

Refer to WordPress Two-Step Authentication for detailed instructions.

Step 2: Create an Application Password​

  1. From the Security > Two-Step Authentication page
  2. Find the Application passwords section
  3. Click + Add new application password
  4. Enter an application name (e.g., Nirvai Integration)
  5. Click Generate Password
  6. Copy the generated password immediately (it won't be shown again)

Step 3: Add to Nirvai​

  1. In Nirvai, create a new WordPress credential
  2. Enter your WordPress username
  3. Enter the application password (not your regular password)
  4. Enter your WordPress URL (e.g., https://your-site.com)
  5. Save the credential

Important Notes​

  • Use Application Password: Never use your regular WordPress password
  • Two-Step Required: Application passwords require Two-Step Authentication
  • Self-hosted sites: May need to enable the REST API in settings
  • SSL recommended: Always use HTTPS for secure connections

Features​

WordPress REST API enables:

  • Posts management: Create, update, delete posts
  • Pages: Manage static pages
  • Media: Upload and manage media files
  • Users: User management (with appropriate permissions)
  • Comments: Moderate and manage comments

Troubleshooting​

Cannot Generate Application Password​

  • Ensure Two-Step Authentication is enabled
  • Check your WordPress version (5.6+ required)
  • For self-hosted: ensure the feature isn't disabled by plugins

Authentication Failed​

  • Verify you're using the application password, not your regular password
  • Check the username is correct
  • Ensure the site URL is correct and accessible

SSL Certificate Errors​

  • For self-hosted sites with self-signed certificates, check SSL settings
  • Consider using a valid SSL certificate

Documentation adapted for Nirvai platform


Next Steps​

Got your credential? Connect it to an agent

Use the AI Tool Creator to turn this credential into agent-callable tools. Describe what your agent should be able to do and the AI investigates the API, configures the endpoints, and gives you a reviewable toolkit before saving anything.