Products
Solutions
Pricing
Compare
Resources
Developers
Support
LemonX Developers · Examples

Build real WordPress AI workflows with LemonX.

This page brings the LemonX developer stack together through practical examples. Learn how to connect AI agents, call REST API endpoints, verify authentication, customize workflows with hooks, trigger webhooks, monitor Cloud Gateway status and build safe automation around WordPress content, SEO, translation and MCP actions.

These examples are designed for developers, agencies, technical SEO teams, automation builders and product teams who want to turn LemonX into a real workflow layer — not just a plugin interface.

Practical workflows · Copy-ready patterns · Safe automation · Built for WordPress developers

What can you build with LemonX?

LemonX gives developers multiple integration layers:

  • MCP Tools for AI agents.
  • REST API for external systems.
  • Hooks & Filters for WordPress-native customization.
  • Authentication for secure access control.
  • Cloud Gateway for licensing, usage and cloud-connected features.
  • Webhooks for event-driven automation.

The examples below show how these layers work together in real WordPress growth workflows.

Example Categories

AI agent workflowsREST API integrationsAEO and SEO automationAI page generationMultilingual publishingWebhook automationsAgency dashboardsCloud Gateway checksAuthentication patternsCustom hook extensions
MCP Example

Example 1: Let Claude read a WordPress page and propose an update.

Scenario: A site owner wants Claude to review an existing service page, improve the headline, add a stronger CTA and preview the change before applying it.

User Command
Review the Services page, improve the hero copy, add a clearer CTA, and show me the proposed changes before applying anything.
Recommended Tool Flow
  • 1. Get Site Identity
  • 2. Get Page
  • 3. Get Content Outline
  • 4. Preview Content Update
  • 5. Compare Before and After
  • 6. Apply Approved Update
  • 7. Generate MCP Activity Report
Example MCP Flow
AI Client: Claude Desktop
MCP Server: LemonX MCP
Target: WordPress Services page

Step 1:
Claude calls get_site_identity to confirm the connected website.

Step 2:
Claude calls get_page with the page slug "services".

Step 3:
Claude analyzes the page structure and creates a proposed hero update.

Step 4:
Claude calls preview_content_update instead of directly saving changes.

Step 5:
The user reviews the before / after preview.

Step 6:
After approval, Claude calls apply_approved_update.

Step 7:
LemonX stores an MCP activity log.

Result: Claude can help update WordPress content without receiving uncontrolled admin access. The workflow stays human-reviewed and traceable.

Best For: Agencies · Site owners · Content editors · AI workflow builders · MCP testing · Safe page editing

REST API Example

Example 2: Create a WordPress blog draft from an external editorial system.

Scenario: A company uses an external content planning tool. When an editor approves a topic, the system should create a draft inside WordPress and prepare it for SEO optimization.

Example Request
curl -X POST "https://example.com/wp-json/lemonx/v1/content/drafts" 
  -H "Authorization: Bearer YOUR_API_TOKEN" 
  -H "Content-Type: application/json" 
  -d '{
    "type": "post",
    "title": "How AI Search Changes WordPress SEO",
    "status": "draft",
    "content": "Draft content goes here...",
    "categories": ["SEO", "AI Search"],
    "tags": ["AEO", "WordPress", "AI SEO"]
  }'
Example Response
{
  "success": true,
  "data": {
    "id": 1284,
    "type": "post",
    "status": "draft",
    "title": "How AI Search Changes WordPress SEO",
    "edit_url": "https://example.com/wp-admin/post.php?post=1284&action=edit"
  },
  "meta": {
    "request_id": "lx_req_1001",
    "created_at": "2026-07-04T10:00:00Z"
  }
}
Next Steps
  • Run AEO analysis.
  • Generate meta title and description.
  • Generate FAQ and schema.
  • Suggest internal links.
  • Queue translation if the site is multilingual.
  • Submit indexing after publication.

Best For: Editorial platforms · Content operations · Agency workflows · Internal marketing tools · Programmatic content pipelines

AEO Example

Example 3: Generate title, meta description, FAQ and schema for an existing post.

Scenario: A post already exists in WordPress, but it needs better SEO and AEO structure before publication.

API Flow
GET  /wp-json/lemonx/v1/content/1284
POST /wp-json/lemonx/v1/aeo/analyze
POST /wp-json/lemonx/v1/aeo/schema/generate
POST /wp-json/lemonx/v1/aeo/internal-links/suggest
POST /wp-json/lemonx/v1/content/1284/preview-update
Example Request
curl -X POST "https://example.com/wp-json/lemonx/v1/aeo/analyze" 
  -H "Authorization: Bearer YOUR_API_TOKEN" 
  -H "Content-Type: application/json" 
  -d '{
    "content_id": 1284,
    "target_keyword": "WordPress AI SEO",
    "intent": "informational",
    "include_aeo": true
  }'
Example Response
{
  "success": true,
  "data": {
    "content_id": 1284,
    "seo_score": 78,
    "aeo_readiness": 64,
    "recommendations": [
      "Add a clearer definition section for AI search.",
      "Add FAQ questions matching user intent.",
      "Add Article and FAQ schema.",
      "Include internal links to related AEO pages."
    ]
  }
}

Result: The post becomes easier for search engines and AI answer engines to understand, summarize and cite.

Best For: SEO teams · Blog editors · Technical SEO workflows · AEO optimization · Client reporting

Verto Example

Example 4: Automatically prepare multilingual versions of a new article.

Scenario: When an English blog post is created, the site needs Spanish, French and German versions prepared through LemonX Verto.

API Flow
GET  /wp-json/lemonx/v1/verto/languages
POST /wp-json/lemonx/v1/verto/queue
GET  /wp-json/lemonx/v1/tasks/{task_id}
POST /wp-json/lemonx/v1/verto/seo/generate
Example Request
curl -X POST "https://example.com/wp-json/lemonx/v1/verto/queue" 
  -H "Authorization: Bearer YOUR_API_TOKEN" 
  -H "Content-Type: application/json" 
  -d '{
    "content_id": 1284,
    "source_language": "en",
    "target_languages": ["es", "fr", "de"],
    "include_seo_fields": true,
    "review_required": true
  }'
Example Response
{
  "success": true,
  "task": {
    "id": "lx_task_translation_456",
    "type": "verto.translation.queue",
    "status": "queued",
    "content_id": 1284,
    "target_languages": ["es", "fr", "de"]
  }
}

Result: The translation workflow is queued, multilingual SEO fields can be generated and human review can be required before publishing.

Best For: Global websites · Cross-border ecommerce · B2B exporters · Multilingual blogs · Agency translation workflows

Webhook Example

Example 5: Notify your team when a translation is ready for review.

Scenario: A global content team wants to receive a Slack or internal dashboard notification when Verto completes a translation.

Subscribed Event
verto.translation_completed
Example Webhook Payload
{
  "event": "verto.translation_completed",
  "delivery_id": "lx_delivery_2001",
  "created_at": "2026-07-04T10:15:00Z",
  "site": {
    "id": "site_abc123",
    "url": "https://example.com",
    "name": "Example WordPress Site"
  },
  "resource": {
    "type": "post",
    "id": 1284,
    "title": "How AI Search Changes WordPress SEO"
  },
  "data": {
    "source_language": "en",
    "target_language": "fr",
    "status": "completed",
    "review_required": true
  }
}
Example Automation
  • Webhook received.
  • Signature verified.
  • Delivery ID checked for duplicates.
  • Message sent to translator.
  • Review task created.
  • Dashboard status updated.

Result: The content team does not need to manually check translation status. The external workflow starts automatically.

Best For: Translation teams · Global marketing teams · Agency dashboards · Make / n8n workflows · Internal notification systems

Security Example

Example 6: Reject fake or replayed webhook requests.

Scenario: Your system receives LemonX webhook events. Before processing them, you need to verify the signature.

PHP Example
function verify_lemonx_webhook( $raw_body, $timestamp, $signature_header, $secret ) {
    if ( empty( $raw_body ) || empty( $timestamp ) || empty( $signature_header ) || empty( $secret ) ) {
        return false;
    }

    $tolerance = 300;

    if ( abs( time() - (int) $timestamp ) > $tolerance ) {
        return false;
    }

    $signed_payload = $timestamp . '.' . $raw_body;
    $expected = 'sha256=' . hash_hmac( 'sha256', $signed_payload, $secret );

    return hash_equals( $expected, $signature_header );
}
Important Rules
  • Use the raw request body.
  • Check timestamp freshness.
  • Use secure comparison.
  • Store delivery IDs.
  • Reject unsigned events.
  • Use different secrets for staging and production.

Result: Your webhook endpoint only processes events that came from LemonX and were not modified in transit.

Best For: Webhook receivers · Security-sensitive integrations · Agency dashboards · Audit systems · Automation platforms

Hooks Example

Example 7: Make AI-generated content follow your brand style.

Scenario: An agency wants all AI-generated content to follow a consistent brand voice: clear, confident, practical and not overly hyped.

Example Hook
add_filter( 'lemonx_ai_prompt', function( $prompt, $context ) {
    $brand_rules = "
Brand voice rules:
- Use a clear and confident tone.
- Avoid exaggerated claims.
- Keep headings concise.
- Focus on practical value.
- Write for business decision-makers.
";

    return $brand_rules . "nn" . $prompt;
}, 10, 2 );

Result: Every LemonX AI generation workflow can inherit the same brand rules, reducing inconsistent output across pages, posts and reports.

Best For: Agencies · Brand teams · Content teams · Enterprise editorial workflows · AI output governance

MCP Security Example

Example 8: Prevent AI agents from modifying high-impact pages.

Scenario: You want Claude or another MCP client to read and preview most pages, but not directly apply changes to pricing, checkout, account, privacy or terms pages.

Example Filter
add_filter( 'lemonx_mcp_apply_allowed', function( $allowed, $preview_id, $context ) {
    $protected_slugs = array(
        'pricing',
        'checkout',
        'my-account',
        'privacy',
        'terms'
    );

    if ( isset( $context['target_slug'] ) && in_array( $context['target_slug'], $protected_slugs, true ) ) {
        return false;
    }

    return $allowed;
}, 10, 3 );

Result: AI can still help review protected pages, but applying changes requires stronger manual control.

Best For: Production websites · Ecommerce sites · Agency clients · Enterprise workflows · Security-sensitive WordPress installs

Cloud Gateway Example

Example 9: Show a premium feature only when the site has access.

Scenario: Your custom admin screen should show an advanced AEO report button only if the connected site has the correct LemonX entitlement.

API Flow
GET /wp-json/lemonx/v1/pro/entitlements
Example Response
{
  "success": true,
  "data": {
    "plan": "agency",
    "features": {
      "aeo.advanced_reports": true,
      "verto.translation_queue": true,
      "mcp.preview_apply": true,
      "cloud.ai_gateway": true
    }
  }
}
Example Logic
If aeo.advanced_reports is true:
  Show "Generate Advanced AEO Report"

If false:
  Show "Upgrade to unlock Advanced AEO Reports"

Result: Your interface respects licensing and plan access instead of exposing unavailable features.

Best For: Custom admin screens · Agency portals · Pro feature controls · Cloud-connected workflows · Enterprise dashboards

Indexing Example

Example 10: Trigger indexing workflow after important content goes live.

Scenario: After a high-value article or landing page is published, your integration should submit the URL to supported indexing channels through LemonX AEO.

Example Request
curl -X POST "https://example.com/wp-json/lemonx/v1/aeo/indexing/submit" 
  -H "Authorization: Bearer YOUR_API_TOKEN" 
  -H "Content-Type: application/json" 
  -d '{
    "url": "https://example.com/blog/ai-search-wordpress-seo",
    "channels": ["google", "bing", "indexnow"],
    "reason": "new_content_published"
  }'
Example Response
{
  "success": true,
  "data": {
    "url": "https://example.com/blog/ai-search-wordpress-seo",
    "status": "submitted",
    "channels": {
      "google": "queued",
      "bing": "submitted",
      "indexnow": "submitted"
    }
  }
}

Result: Publishing and indexing become part of the same workflow instead of separate manual steps.

Best For: SEO teams · News sites · Content teams · Programmatic SEO · Agency launch checklists

Agency Example

Example 11: Monitor multiple LemonX-powered sites from one dashboard.

Scenario: An agency manages 30 client WordPress sites. The team wants a dashboard showing license status, site health, SEO progress, translation progress, MCP activity and usage warnings.

API Flow
GET /wp-json/lemonx/v1/site
GET /wp-json/lemonx/v1/site/health
GET /wp-json/lemonx/v1/pro/license
GET /wp-json/lemonx/v1/pro/usage
GET /wp-json/lemonx/v1/aeo/overview
GET /wp-json/lemonx/v1/verto/reports
GET /wp-json/lemonx/v1/mcp/logs
GET /wp-json/lemonx/v1/reports/seo
Dashboard Widgets
  • Site connection status
  • License state
  • Active LemonX products
  • AEO score
  • Indexing activity
  • Translation coverage
  • MCP action count
  • AI usage
  • Quota warnings
  • Recent failed tasks
Webhook Events to Subscribe
  • license.status_changed
  • aeo.analysis_completed
  • verto.translation_completed
  • mcp.preview_applied
  • usage.quota_warning
  • task.failed
  • report.generated

Result: The agency can manage LemonX activity across all client sites without logging into each WordPress backend every day.

Best For: WordPress agencies · SEO agencies · Enterprise website networks · Client reporting · Multi-site operations

LemonX Code Example

Example 12: Generate a landing page from an external app.

Scenario: An external app collects campaign details, then sends a request to LemonX Code to create a landing page draft inside WordPress.

API Flow
GET  /wp-json/lemonx/v1/code/templates
POST /wp-json/lemonx/v1/code/pages/generate
POST /wp-json/lemonx/v1/content/drafts
POST /wp-json/lemonx/v1/aeo/analyze
POST /wp-json/lemonx/v1/content/{id}/preview-update
Input Data
  • Campaign name
  • Target audience
  • Offer
  • Product description
  • Key benefits
  • CTA
  • Brand tone
  • Template preference
  • SEO keyword
Example Request
curl -X POST "https://example.com/wp-json/lemonx/v1/code/pages/generate" 
  -H "Authorization: Bearer YOUR_API_TOKEN" 
  -H "Content-Type: application/json" 
  -d '{
    "page_type": "landing_page",
    "topic": "AI SEO Services for WordPress",
    "audience": "WordPress agencies",
    "primary_cta": "Book a Demo",
    "target_keyword": "WordPress AI SEO service",
    "template": "saas-service-page"
  }'

Result: A structured landing page draft is generated with sections, copy, CTA and SEO-ready structure.

Best For: SaaS tools · Agency platforms · Landing page builders · Campaign automation · Programmatic service pages

Reporting Example

Example 13: Create a weekly client-ready report.

Scenario: Every Monday, an agency wants to generate a report summarizing SEO progress, AEO opportunities, content updates, translations and MCP actions.

API Flow
GET  /wp-json/lemonx/v1/reports/seo
GET  /wp-json/lemonx/v1/reports/content
GET  /wp-json/lemonx/v1/reports/translation
GET  /wp-json/lemonx/v1/reports/mcp
POST /wp-json/lemonx/v1/reports/export
Report Sections
  • Executive summary
  • SEO performance
  • AEO opportunities
  • AI citation status
  • Content created
  • Content updated
  • Translation progress
  • Indexing actions
  • MCP activity
  • Failed tasks
  • Recommended next steps
Optional Webhook
report.generated

Result: The agency can deliver consistent reports without manually collecting data from multiple plugin screens.

Best For: SEO agencies · Client reporting · Marketing teams · Growth operations · Monthly retainers

Task Monitoring Example

Example 14: Alert your team when AI, translation or indexing jobs fail.

Scenario: Your site runs translation queues, AI generation tasks and indexing requests. You want to know when something fails.

Example Webhook Payload
{
  "event": "task.failed",
  "delivery_id": "lx_delivery_3001",
  "created_at": "2026-07-04T10:30:00Z",
  "data": {
    "task_id": "lx_task_789",
    "task_type": "verto.translation",
    "status": "failed",
    "error_code": "provider_unavailable",
    "message": "Translation provider is unavailable."
  }
}
Example Automation
  • Webhook received.
  • Event verified.
  • Error classified.
  • Slack alert sent.
  • Task added to incident list.
  • Developer reviews task details through REST API.
Webhook Events to Subscribe
  • task.failed
  • verto.translation_failed
  • code.page_generation_failed
  • aeo.indexing_failed
  • cloud.sync_failed

Result: Failed workflows become visible quickly instead of silently blocking growth operations.

Best For: Agencies · Global content teams · Technical SEO teams · Operations dashboards · Enterprise monitoring

Combined Example

Example 15: Use webhooks for events and REST API for full details.

Scenario: A webhook tells your system that an AEO report has been generated. Instead of sending the full report inside the webhook, your app uses the REST API to fetch report details.

Step 1: Webhook Event
{
  "event": "report.generated",
  "delivery_id": "lx_delivery_4001",
  "data": {
    "report_id": "lx_report_901",
    "report_type": "seo"
  }
}
Step 2: Fetch Report
curl -X GET "https://example.com/wp-json/lemonx/v1/reports/lx_report_901" 
  -H "Authorization: Bearer YOUR_API_TOKEN"
Step 3: Process Report
  • Display report in client portal.
  • Send notification to account manager.
  • Create next-step tasks.
  • Archive report summary.

Result: Webhook payloads stay lightweight, while REST API provides full data when needed.

Best For: Client portals · Dashboards · Automation platforms · Large reports · Security-conscious integrations

Safe Automation Example

Example 16: Let AI generate, but keep humans in control.

Scenario: A marketing team wants AI to generate new page copy, but no change should go live without editor approval.

Workflow
  • 1. AI reads current page through MCP.
  • 2. AI creates a preview update.
  • 3. Webhook sends preview_created to external review tool.
  • 4. Editor reviews the change.
  • 5. Editor approves in WordPress or internal system.
  • 6. LemonX applies approved update.
  • 7. Webhook sends preview_applied event.
  • 8. Report logs the action.
Tools Used
  • MCP Tools
  • REST API
  • Webhooks
  • Authentication
  • Hooks & Filters
  • Activity logs

Result: The team gets AI speed without losing editorial control.

Best For: Enterprise teams · Agencies · Client approval workflows · Legal-sensitive websites · Production content updates

Verto Hook Example

Example 17: Keep brand and technical terms consistent across languages.

Scenario: A B2B company needs product names, technical terms and brand phrases to remain consistent during translation.

Example Hook
add_filter( 'lemonx_verto_glossary_terms', function( $terms, $target_language ) {
    $terms[] = array(
        'source' => 'LemonX',
        'target' => 'LemonX',
        'rule'   => 'never_translate',
    );

    $terms[] = array(
        'source' => 'Answer Engine Optimization',
        'target' => 'Answer Engine Optimization',
        'rule'   => 'preserve',
    );

    $terms[] = array(
        'source' => 'MCP',
        'target' => 'MCP',
        'rule'   => 'preserve',
    );

    return $terms;
}, 10, 2 );

Result: Translations become more consistent and brand-safe across languages.

Best For: B2B exporters · Technical websites · SaaS documentation · Multilingual SEO · Product-heavy websites

AI Provider Example

Example 18: Use different AI models for different workflows.

Scenario: A developer wants to use a cost-efficient model for drafts, a stronger model for final landing pages and a specialized provider for translations.

Example Hook
add_filter( 'lemonx_ai_model', function( $model, $context ) {
    if ( isset( $context['workflow'] ) && 'draft_generation' === $context['workflow'] ) {
        return 'fast-draft-model';
    }

    if ( isset( $context['workflow'] ) && 'landing_page_final' === $context['workflow'] ) {
        return 'premium-reasoning-model';
    }

    if ( isset( $context['workflow'] ) && 'translation' === $context['workflow'] ) {
        return 'translation-optimized-model';
    }

    return $model;
}, 10, 2 );

Result: The site uses AI more efficiently by routing requests based on cost, quality and task type.

Best For: High-volume sites · Agencies · Cost-control workflows · Enterprise AI governance · AI provider management

Webhook API Example

Example 19: Register an external endpoint programmatically.

Scenario: An agency platform automatically creates a webhook subscription when a new client site is connected.

Example Request
curl -X POST "https://example.com/wp-json/lemonx/v1/webhooks" 
  -H "Authorization: Bearer YOUR_API_TOKEN" 
  -H "Content-Type: application/json" 
  -d '{
    "name": "Agency Platform",
    "url": "https://agency.example.com/webhooks/lemonx",
    "events": [
      "content.updated",
      "aeo.analysis_completed",
      "verto.translation_completed",
      "mcp.preview_applied",
      "task.failed"
    ],
    "status": "active"
  }'
Example Response
{
  "success": true,
  "data": {
    "id": "wh_123",
    "name": "Agency Platform",
    "status": "active",
    "events": [
      "content.updated",
      "aeo.analysis_completed",
      "verto.translation_completed",
      "mcp.preview_applied",
      "task.failed"
    ],
    "secret_preview": "whsec_****abcd"
  }
}

Result: The new client site automatically starts sending LemonX activity events to the agency platform.

Best For: Agency SaaS platforms · Client portals · Automation systems · Multi-site dashboards · Onboarding flows

Full Stack Example

Example 20: Connect AEO, Code, Verto, MCP, REST API and Webhooks into one workflow.

Scenario: A global B2B website wants a complete workflow for creating, optimizing, translating, publishing and monitoring a new solution page.

Step 1: External system creates page brief

REST API receives page topic, audience, target keyword and product details.

Step 2: LemonX Code generates page draft

Code creates structured page sections and draft content.

Step 3: LemonX AEO analyzes page

AEO checks SEO and AI answer readiness.

Step 4: SEO metadata and schema are generated

Meta title, meta description, FAQ and structured data are prepared.

Step 5: Human previews page

Preview workflow allows editor review before publish.

Step 6: LemonX Verto queues translations

Spanish, French and German versions are created.

Step 7: MCP updates homepage recommendation

Claude uses MCP to preview an update to the homepage featured section.

Step 8: Indexing request is submitted

AEO submits approved URLs to supported indexing channels.

Step 9: Webhooks notify external systems

Events are sent for page created, translation completed, MCP applied and indexing submitted.

Step 10: Report is generated

A weekly report summarizes page creation, translation, SEO and AI activity.

Tools Used
  • LemonX Code
  • LemonX AEO
  • LemonX Verto
  • LemonX MCP
  • REST API
  • Webhooks
  • Authentication
  • Cloud Gateway
  • Hooks & Filters

Result: One connected workflow replaces separate tools, manual copy-paste, disconnected translation, isolated SEO checks and uncontrolled AI edits.

Best For: Global B2B websites · WordPress agencies · Enterprise content teams · Programmatic SEO · International marketing teams

Best practices

How to build with LemonX safely and reliably.

Best Practice 1: Start with read-only workflows

Before enabling AI write actions, test site context, content reading, reporting and analysis endpoints.

Best Practice 2: Use preview before apply

For AI-generated content, SEO edits, translations and page changes, use preview-first workflows.

Best Practice 3: Check capabilities before calling endpoints

Confirm which LemonX products and features are active before building UI or automation around them.

Best Practice 4: Use scoped authentication

Give each integration only the permissions it needs.

Best Practice 5: Use webhooks for events

Avoid constant polling when LemonX can notify your system directly.

Best Practice 6: Verify webhook signatures

Never trust inbound webhook payloads without signature verification.

Best Practice 7: Log request IDs

Store request IDs, task IDs, delivery IDs and preview IDs for debugging.

Best Practice 8: Keep protected pages restricted

Pricing, checkout, account, legal and homepage content should require stronger approval.

Best Practice 9: Test on staging

Run MCP edits, translation queues, AI generation and custom hooks on staging before production.

Best Practice 10: Build for partial failures

AI, translation, indexing and cloud workflows can fail independently. Design retries and fallbacks.

Guide

Which example should you start with?

GoalStart With
Connect Claude to WordPressExample 1
Create content from another systemExample 2
Improve SEO and AEOExample 3
Build multilingual workflowsExample 4 and 5
Secure webhooksExample 6
Customize AI outputExample 7
Restrict AI write accessExample 8
Check Pro feature accessExample 9
Submit URLs for indexingExample 10
Build agency dashboardsExample 11
Generate landing pagesExample 12
Create client reportsExample 13
Monitor failed jobsExample 14
Combine REST API and WebhooksExample 15
Build human-in-the-loop workflowsExample 16
Control translation terminologyExample 17
Route AI providersExample 18
Register webhooks programmaticallyExample 19
Build complete AI growth workflowExample 20
Developer stack

How the LemonX developer pages fit together.

MCP Tools

Use MCP Tools when AI agents need to understand and safely operate WordPress.

REST API

Use REST API when external systems need to request data or trigger workflows.

Hooks & Filters

Use Hooks & Filters when you need to customize LemonX behavior inside WordPress.

Authentication

Use Authentication patterns to secure users, tokens, API keys, MCP sessions and webhooks.

Cloud Gateway

Use Cloud Gateway for licensing, entitlements, AI routing, usage and premium cloud features.

Webhooks

Use Webhooks when external systems need to react to LemonX events.

Examples

Use Examples when you want practical patterns that combine multiple layers.

Ready to build with LemonX?

Start with one workflow: connect an AI client, create a draft, generate SEO metadata, queue a translation, receive a webhook or build a dashboard. Then expand into a full WordPress AI growth system.

Developer Examples FAQ

Are these examples final API references?
No. These examples are developer workflow patterns. Exact endpoint names, request fields and response structures should match the active LemonX implementation and official reference documentation.
Should I start with MCP or REST API?
Use MCP when an AI agent needs to operate WordPress through tools. Use REST API when your application or backend system needs to request data or trigger workflows.
Can I use LemonX with Claude?
Yes. LemonX MCP is designed for MCP-compatible clients such as Claude Desktop and similar AI agent environments.
Can I build an agency dashboard?
Yes. REST API and webhooks are well-suited for agency dashboards, client portals and multi-site monitoring.
Can AI edit live WordPress pages?
It can, but safe workflows should use preview-before-apply and permission checks before changes are saved.
Can I trigger translation from another system?
Yes. Verto workflows can be triggered through API-based translation queues where enabled.
Can webhooks notify external systems when tasks finish?
Yes. Webhooks can notify external systems when translation, reports, MCP actions, indexing and other tasks complete or fail.
Can I customize AI prompts?
Yes. Hooks and filters can be used to inject brand voice, compliance rules and workflow-specific instructions.
How should I protect sensitive pages?
Use permission checks, protected resource rules and MCP apply restrictions for pages such as pricing, checkout, account, privacy and terms.
What is the safest first integration to build?
Start with read-only site context, reports or content analysis. Add preview workflows next, then apply actions only after permissions and logs are in place.

Turn WordPress into a developer-friendly AI growth platform.

LemonX gives developers the building blocks for AI agents, APIs, webhooks, cloud services, authentication, hooks and real WordPress automation. Use these examples to design workflows your users can actually trust.