Description
OrganicStack Publisher provides a comprehensive REST API for automated WordPress content publishing. It enables external applications (including OrganicStack) to publish posts, manage media, handle categories and tags, create authors, and manage content programmatically through a secure API key authentication system.
Key Features
- REST API Endpoints – Complete set of REST API endpoints for WordPress content management
- API Key Authentication – Secure API key-based authentication instead of WordPress application passwords
- Post Publishing – Publish single posts or bulk publish multiple posts at once
- Media Management – Upload images via base64 or URL with automatic optimization
- Category & Tag Management – Get, create, and manage categories and tags
- Author Management – Create authors and manage author profiles with custom avatars
- SEO Support – Built-in support for Yoast SEO and RankMath meta fields
- Custom Meta Fields – Support for custom post meta fields
- CORS Support – Built-in CORS handling for cross-origin requests
- Site Information – Get detailed site information including WordPress version, PHP version, and more
Security Features
- API key authentication with secure key generation
- Input sanitization and validation on all endpoints
- Proper permission checks for all operations
- Secure file upload handling
API Documentation
Base URL
All endpoints are available at: /wp-json/organicstack-publisher/v1/
Authentication
Include your API key in requests using either:
* Header: X-API-Key: your-api-key
* Body: {"api_key": "your-api-key"}
Available Endpoints
GET /ping– Test basic connectivity (no auth required)GET /test-connection– Test authenticated connectionPOST /auth– Authenticate with API keyPOST /publish– Publish a single postPOST /bulk-publish– Publish multiple postsPOST /upload-media– Upload imagesGET /categories– Get all categoriesGET /tags– Get all tagsGET /authors– Get all authorsPOST /create-author– Create a new authorGET /site-info– Get site information
For detailed API documentation, see the admin panel after installation.
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- MySQL 5.6 or higher
- HTTPS recommended for production use
Support
For support and questions:
* Check WordPress error logs for debugging
* Verify plugin settings in the admin panel
* Test API endpoints using curl or Postman
* Ensure WordPress and PHP versions meet requirements
License
This plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License or any later version.
Installation
Manual Installation
- Download the plugin files
- Upload the
organicstack-publisherfolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Navigate to OrganicStack in the WordPress admin menu
- Copy your generated API key for use in your application
ZIP Upload
- Create a ZIP file of the plugin directory
- Go to Plugins Add New Upload Plugin in WordPress admin
- Upload the ZIP file and activate
- Configure your API key in OrganicStack Publisher settings
FAQ
-
What is this plugin for?
-
This plugin provides a REST API for automated WordPress content publishing, allowing external applications to manage WordPress content programmatically.
-
How do I authenticate?
-
The plugin generates an API key automatically upon activation. Use this key in the
X-API-Keyheader or in the request body asapi_keyfor all authenticated requests. -
What endpoints are available?
-
The plugin provides endpoints for:
* Testing connection (/ping,/test-connection)
* Publishing posts (/publish,/bulk-publish)
* Media upload (/upload-media)
* Category and tag management (/categories,/tags)
* Author management (/authors,/create-author)
* Site information (/site-info) -
Does this work with SEO plugins?
-
Yes, the plugin supports Yoast SEO and RankMath meta fields including meta descriptions and titles.
-
Can I upload images?
-
Yes, you can upload images via base64 encoding or by providing a URL. The plugin handles image optimization automatically.
-
Is this secure?
-
Yes, all endpoints use API key authentication, and all inputs are sanitized and validated according to WordPress security standards.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“OrganicStack Publisher” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “OrganicStack Publisher” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.1
- Fixed avatar compatibility issue – plugin now properly preserves avatars from third-party plugins (Simple Local Avatars, User Avatar, etc.)
- Improved avatar filter to only process users with OrganicStack avatars, preventing interference with existing author avatars
- Added automatic cleanup of invalid avatar attachment references
- Enhanced compatibility with WordPress default Gravatar system
- Fixed issue where pre-existing authors lost their avatars after plugin installation
1.0.0
- Initial release
- Custom REST API endpoints
- API key authentication
- Post publishing functionality
- Media upload support
- Category and tag management
- Author management
- SEO meta field support
- Admin settings page
