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
Your WordPress blog has years of published content that embodies your brand’s tone, vocabulary, and editorial style. You pull the most recent published posts, strip HTML to extract clean text samples, send them to Mavera Brand Voices to create a voice profile, then verify the voice with a test generation using the OpenAI SDK pattern.Architecture
Code
Example Output
Error Handling
REST API returns 404 or HTML instead of JSON
REST API returns 404 or HTML instead of JSON
If
/wp-json/wp/v2/posts returns a 404 or an HTML page, your permalink structure is set to “Plain.” Go to Settings → Permalinks and choose any other option (Post name is recommended). Flush rewrite rules by saving. Some security plugins (Wordfence, iThemes) block the REST API — whitelist your server’s IP or disable the REST API restriction.Mavera 422 — insufficient samples
Mavera 422 — insufficient samples
Brand voice creation requires at least 3 text samples with meaningful content. If your blog has few posts, supplement with page content (
/wp-json/wp/v2/pages) or manually add representative copy. Each sample should be at least 100 characters of clean text.