Documentation Index
Fetch the complete documentation index at: https://docs.mavera.io/llms.txt
Use this file to discover all available pages before exploring further.
Scenario
Full round-trip: generate a brand-voice-consistent article with Mavera using an existing brand voice and persona, then publish it directly back to WordPress as a draft. This pipeline covers content ideation through to draft creation with proper auth, categories, and metadata.Architecture
Code
Example Output
Error Handling
WordPress 401 — invalid Application Password
WordPress 401 — invalid Application Password
Write operations require Basic auth. Ensure you’re encoding
username:application_password (not your login password) with base64. Application Passwords contain spaces — include them. If you regenerated the password, the old one is revoked immediately. Test with: curl -u "user:xxxx xxxx xxxx" https://yoursite.com/wp-json/wp/v2/users/me.WordPress 403 — insufficient permissions
WordPress 403 — insufficient permissions
The authenticated user must have the
publish_posts capability (Editor or Administrator role). Contributors can create posts but not publish them. The code sets status: "draft" which requires the edit_posts capability — Author role or above.