Everything you need to integrate Meshr with your self-hosted WordPress site using the native REST API
This guide covers connecting to self-hosted WordPress using the native WordPress REST API without requiring the Meshr plugin. If you prefer to use our WordPress plugin for additional features, check out our WordPress plugin documentation.
WordPress Application Passwords (available in WordPress 5.6+) provide a secure way to authenticate API requests without using your main account password.
Note: If Application Passwords are not available, you may need to update WordPress to version 5.6 or higher, or use a plugin that enables this feature.
Meshr uses the native WordPress REST API to interact with your self-hosted WordPress site. The REST API is built into WordPress (since version 4.7) and doesn't require any additional plugins.
GET /wp-json/wp/v2Retrieves site information and available endpoints
GET /wp-json/wp/v2/users/meValidates credentials and retrieves user information
GET /wp-json/wp/v2/posts
GET /wp-json/wp/v2/pagesRetrieves posts and pages for analysis
POST /wp-json/wp/v2/posts/{id}
POST /wp-json/wp/v2/pages/{id}Updates posts and pages with internal links (requires authentication)
Meshr uses HTTP Basic Authentication with your WordPress username and Application Password:
Authorization: Basic base64(username:application_password)This is sent with every API request to authenticate and authorize actions on your WordPress site.
Security Note: Application Passwords are more secure than using your regular WordPress password because they can be revoked individually and have limited scope.
Once you have your Application Password, connect your WordPress site to Meshr:
Ensure you're using WordPress 5.6 or higher. If you're on an older version, update WordPress or use the Meshr plugin instead.
Verify that you're using the Application Password (not your regular WordPress password) and that the username is correct. Make sure there are no extra spaces in the password.
Check if any security plugins are blocking the REST API. Test by visiting https://yoursite.com/wp-json in your browser - you should see JSON output.
Ensure your WordPress site uses HTTPS. If you're using a self-signed certificate, it may cause connection issues. Consider using a valid SSL certificate (Let's Encrypt offers free certificates).
Verify that the user associated with the Application Password has Editor or Administrator permissions. Contributor or Author roles may not have sufficient permissions.
If you need to reconnect, go to your Meshr dashboard, disconnect the existing connection, and reconnect with your updated credentials. You may need to create a new Application Password if the old one was revoked.
Join websites that have increased organic traffic by 32% with Meshr's platform-agnostic internal linking tool.