Connect LemonX with your own systems
Use REST endpoints to connect LemonX with CRMs, internal dashboards, reporting tools, agency portals, automation platforms and AI pipelines.
The LemonX REST API gives developers a structured way to connect external tools, dashboards, AI workflows, automation platforms and internal systems with LemonX-powered WordPress websites.
Use the API to read site context, inspect content, create drafts, trigger AI workflows, manage translation queues, access SEO and AEO data, submit indexing requests, retrieve reports, monitor MCP activity and connect LemonX with your own systems.
WordPress-native · JSON-based · Permission-aware · Built for AI, SEO, translation and automation workflows
The LemonX REST API is a developer-facing interface for interacting with LemonX features through HTTP endpoints. It allows approved applications, dashboards, automation tools and AI systems to request data, trigger workflows and integrate with LemonX modules in a controlled way.
While MCP Tools are optimized for AI agents using the Model Context Protocol, the REST API is designed for developers building web apps, backend services, dashboards, scripts, middleware and automation workflows.
Use REST endpoints to connect LemonX with CRMs, internal dashboards, reporting tools, agency portals, automation platforms and AI pipelines.
Work with real WordPress content, metadata, taxonomies, media, users, languages and plugin states.
Create drafts, queue translations, generate SEO metadata, request indexing, retrieve reports and monitor actions.
API requests should follow WordPress authentication, user capability checks, LemonX permissions and product entitlement rules.
Best for developer-built systems, backend integrations, dashboards, automation platforms, internal tools and custom applications.
Use REST API when you want to:
Best for AI agents, conversational workflows, Claude Desktop, Codex, Cursor and other MCP-compatible clients.
Use MCP Tools when you want to:
REST API is for applications and systems. MCP Tools are for AI agents. Together, they make LemonX both developer-friendly and AI-operable.
The LemonX REST API should follow the same modular structure as the LemonX Suite. Each product exposes its own resources, while shared resources handle authentication, licensing, site context, users, tasks, reports and logs.
The Site API provides basic information about the WordPress installation, active LemonX products, environment state, enabled modules and supported capabilities.
/wp-json/lemonx/v1/siteReturns basic site identity and environment details.
/wp-json/lemonx/v1/site/capabilitiesReturns enabled LemonX modules and available feature groups.
/wp-json/lemonx/v1/site/healthReturns system health, plugin status, background task status and compatibility notes.
/wp-json/lemonx/v1/site/structureReturns public post types, taxonomies, languages, templates and content structure.
The Content API gives developers access to posts, pages, drafts, content outlines, metadata, SEO fields, structured content and publishing states.
/wp-json/lemonx/v1/contentLists posts, pages and supported custom post types.
/wp-json/lemonx/v1/content/{id}Retrieves a specific content item.
/wp-json/lemonx/v1/content/draftsCreates a new draft.
/wp-json/lemonx/v1/content/{id}/preview-updateGenerates a preview update without applying changes.
/wp-json/lemonx/v1/content/{id}/apply-updateApplies an approved update.
/wp-json/lemonx/v1/content/{id}/outlineReturns headings, section structure and content hierarchy.
/wp-json/lemonx/v1/content/searchSearches content by query, type, status, author, taxonomy or language.
The AEO API provides access to content optimization data, AI visibility checks, query analysis, citation tracking, schema suggestions, internal link recommendations, indexing workflows and reports.
/wp-json/lemonx/v1/aeo/overviewReturns a high-level summary of AEO status.
/wp-json/lemonx/v1/aeo/analyzeAnalyzes a URL or content item for SEO and AEO readiness.
/wp-json/lemonx/v1/aeo/opportunitiesReturns keyword, content and AI search opportunities.
/wp-json/lemonx/v1/aeo/citationsReturns AI citation and brand mention data when available.
/wp-json/lemonx/v1/aeo/schema/generateGenerates structured data suggestions.
/wp-json/lemonx/v1/aeo/internal-links/suggestReturns internal link recommendations.
/wp-json/lemonx/v1/aeo/indexing/submitSubmits a URL to supported indexing channels.
/wp-json/lemonx/v1/aeo/reportsLists available SEO and AEO reports.
The Code API allows external systems to trigger page generation, retrieve templates, manage drafts, use knowledge base context, process OCR content and create structured sections.
/wp-json/lemonx/v1/code/templatesLists available page and section templates.
/wp-json/lemonx/v1/code/pages/generateGenerates a page draft from a prompt or structured brief.
/wp-json/lemonx/v1/code/sections/generateGenerates a specific page section.
/wp-json/lemonx/v1/code/briefsCreates a page or content brief.
/wp-json/lemonx/v1/code/knowledge-baseLists available knowledge base sources.
/wp-json/lemonx/v1/code/knowledge-base/queryQueries private knowledge base context.
/wp-json/lemonx/v1/code/ocr/processProcesses an uploaded document or image through OCR when enabled.
/wp-json/lemonx/v1/code/migration/previewGenerates a migration preview for legacy content.
The Verto API helps developers queue translations, check translation status, manage languages, retrieve translated content, update translated slugs, generate multilingual SEO fields and monitor translation progress.
/wp-json/lemonx/v1/verto/languagesReturns enabled languages and configuration.
/wp-json/lemonx/v1/verto/translations/{content_id}Returns translation status for a content item.
/wp-json/lemonx/v1/verto/queueAdds content to the translation queue.
/wp-json/lemonx/v1/verto/previewGenerates or retrieves a translation preview.
/wp-json/lemonx/v1/verto/applyApplies an approved translation.
/wp-json/lemonx/v1/verto/seo/generateGenerates multilingual SEO title, meta description and social fields.
/wp-json/lemonx/v1/verto/slugs/updateUpdates translated URL slugs where supported.
/wp-json/lemonx/v1/verto/reportsReturns translation progress and multilingual coverage reports.
The MCP API helps developers inspect MCP connection status, list available tools, review tool permissions, retrieve activity logs and monitor AI agent interactions.
/wp-json/lemonx/v1/mcp/statusReturns MCP server status and connection readiness.
/wp-json/lemonx/v1/mcp/toolsLists available MCP tool groups.
/wp-json/lemonx/v1/mcp/tools/{tool_name}Returns information about a specific tool.
/wp-json/lemonx/v1/mcp/logsReturns MCP activity logs.
/wp-json/lemonx/v1/mcp/permissionsReturns MCP permission configuration.
/wp-json/lemonx/v1/mcp/previews/{preview_id}/applyApplies an approved MCP preview.
/wp-json/lemonx/v1/mcp/previews/{preview_id}/discardDiscards a pending MCP preview.
The Pro API provides access to license state, product entitlements, cloud gateway connectivity, feature availability, usage metrics and subscription-related states where permitted.
/wp-json/lemonx/v1/pro/licenseReturns license status and activation details.
/wp-json/lemonx/v1/pro/entitlementsReturns enabled product entitlements and plan-level features.
/wp-json/lemonx/v1/pro/usageReturns usage data such as AI calls, translation usage, indexing requests or cloud gateway consumption.
/wp-json/lemonx/v1/pro/cloud/statusReturns cloud gateway status.
/wp-json/lemonx/v1/pro/license/activateActivates a license when allowed.
/wp-json/lemonx/v1/pro/license/deactivateDeactivates a license from the current site.
The Reports API lets developers pull structured report data from LemonX modules and display it in dashboards, client portals, emails or business intelligence tools.
/wp-json/lemonx/v1/reportsLists available report types.
/wp-json/lemonx/v1/reports/seoReturns SEO and AEO summary data.
/wp-json/lemonx/v1/reports/contentReturns content production and update data.
/wp-json/lemonx/v1/reports/translationReturns translation progress and language coverage.
/wp-json/lemonx/v1/reports/mcpReturns MCP activity and AI agent usage.
/wp-json/lemonx/v1/reports/usageReturns plan, API, AI and cloud usage summary.
/wp-json/lemonx/v1/reports/exportGenerates an export-ready report draft.
Many LemonX workflows may run asynchronously, including translation queues, AI generation, indexing requests, OCR processing, report generation and migration previews. The Tasks API helps developers monitor those jobs.
/wp-json/lemonx/v1/tasksLists recent tasks.
/wp-json/lemonx/v1/tasks/{task_id}Returns task status and result.
/wp-json/lemonx/v1/tasks/{task_id}/cancelCancels a pending task when supported.
/wp-json/lemonx/v1/tasks/queuesReturns queue health and active job counts.
/wp-json/lemonx/v1/tasks/historyReturns completed, failed and cancelled task history.
The Webhooks API allows developers to register, list, update and remove webhook endpoints that receive events from LemonX workflows.
/wp-json/lemonx/v1/webhooksLists configured webhooks.
/wp-json/lemonx/v1/webhooksCreates a webhook subscription.
/wp-json/lemonx/v1/webhooks/{id}Returns webhook configuration.
/wp-json/lemonx/v1/webhooks/{id}Updates a webhook subscription.
/wp-json/lemonx/v1/webhooks/{id}Deletes a webhook subscription.
/wp-json/lemonx/v1/webhooks/{id}/testSends a test event to the webhook endpoint.
The API should respect WordPress content types, users, capabilities, taxonomies, media and plugin architecture instead of inventing a disconnected data model.
Every endpoint should check whether the authenticated user or application has permission to perform the requested action.
For content updates, SEO changes, translations and page edits, preview workflows should be preferred before applying changes.
AEO, Code, Verto, MCP and Pro resources should be organized clearly so developers can enable and use only what they need.
Responses should be predictable, typed and friendly for both developers and AI systems.
Long-running jobs should return task references that can be checked later.
Important actions should be logged so site owners, agencies and developers can review what happened.
LemonX REST API authentication should be designed around WordPress-native security and LemonX product permissions. Depending on the workflow, developers may use WordPress application passwords, authenticated admin sessions, API keys, OAuth-like flows, Cloud Gateway credentials or site-specific tokens.
For sensitive workflows, authentication should be combined with capability checks, nonce validation, product entitlement verification and activity logging.
Useful for server-to-server access and trusted integrations.
Useful for admin dashboard interactions and browser-based tools.
Useful for selected integration workflows where a dedicated token is required.
Useful for LemonX Pro and cloud-connected workflows.
Useful when API actions relate to MCP previews, AI agent sessions or tool execution.
curl -X GET "https://example.com/wp-json/lemonx/v1/site" -H "Authorization: Bearer YOUR_API_TOKEN" -H "Accept: application/json"
{
"site": {
"name": "Example WordPress Site",
"url": "https://example.com",
"wordpress_version": "6.x",
"lemonx_version": "1.x"
},
"products": {
"aeo": true,
"code": true,
"verto": true,
"mcp": true,
"pro": true,
"theme": false
},
"capabilities": [
"content.read",
"content.preview",
"aeo.analyze",
"verto.queue",
"mcp.logs.read"
]
}
Endpoint names and response structures should be treated as developer-facing examples. Final implementation details should match the active LemonX plugin version and documentation.
| Error Code | Meaning | Recommended Action |
|---|---|---|
| invalid_request | Required fields are missing or invalid | Check request payload |
| unauthenticated | No valid authentication was provided | Authenticate the request |
| permission_denied | User or token lacks required capability | Check role and permissions |
| product_inactive | Required LemonX product is not active | Enable the product |
| entitlement_required | Feature requires Pro or higher plan | Check license and plan |
| resource_not_found | Requested item does not exist | Verify ID or URL |
| validation_failed | Payload failed validation | Review field errors |
| task_failed | Background job failed | Check task details |
| rate_limited | Too many requests | Retry later or reduce frequency |
| cloud_unavailable | Cloud Gateway is unavailable | Check cloud status |
| provider_unavailable | AI or translation provider failed | Retry or use backup provider |
API workflows should be designed with sensible rate limits, especially for AI generation, translation, indexing, OCR, report generation and cloud-connected actions. Developers should avoid repeatedly calling expensive endpoints when cached or task-based responses are available.
curl "https://example.com/wp-json/lemonx/v1/content?type=post&page=1&per_page=20"
{
"success": true,
"data": [{ "id": 101, "title": "Example Post", "status": "publish" }],
"pagination": { "page": 1, "per_page": 20, "total": 328, "total_pages": 17 }
}
Best Practice: Use pagination for content, media, logs, reports, tasks and large translation queues. Avoid requesting entire site datasets in a single call.
For content updates, SEO changes, translation updates and page layout modifications, developers should use a preview-apply pattern. This prevents accidental overwrites and keeps humans in control.
POST /wp-json/lemonx/v1/content/123/preview-update
The API returns proposed changes, before/after differences and a preview reference.
POST /wp-json/lemonx/v1/content/123/apply-update
The applied update is stored in activity logs for review.
Why it matters: AI-generated changes can be useful, but production websites need review, traceability and clear rollback paths. Preview-apply workflows reduce risk while keeping automation powerful.
Instead of constantly polling the REST API, developers can use webhooks to receive events when important LemonX actions occur.
Goal: Monitor multiple LemonX-powered client sites from one dashboard.
GET /siteGET /site/healthGET /pro/licenseGET /aeo/overviewGET /verto/reportsGET /mcp/logsGET /reports/seoResult: Your agency team can see site health, SEO status, translation progress, license state and AI activity in one place.
Goal: Create WordPress drafts from an external editorial system.
POST /content/draftsPOST /aeo/schema/generatePOST /aeo/internal-links/suggestPOST /content/{id}/preview-updatePOST /verto/queueResult: Content created outside WordPress enters LemonX as structured drafts, gets SEO-ready and can be queued for translation.
Goal: Publish or prepare translated versions of WooCommerce product pages.
GET /verto/languagesPOST /verto/queueGET /tasks/{task_id}POST /verto/seo/generatePOST /verto/applyPOST /aeo/indexing/submitResult: Product pages are translated, multilingual SEO fields are generated and URLs can be prepared for indexing.
Goal: Build an external UI where users generate WordPress landing pages.
GET /code/templatesPOST /code/pages/generatePOST /code/sections/generatePOST /content/draftsPOST /content/{id}/preview-updateResult: Your external app can generate page drafts inside WordPress using LemonX Code workflows.
Goal: Track AI agent actions and sensitive site operations.
GET /mcp/logsGET /tasks/historyGET /reports/mcpGET /site/healthGET /pro/usageResult: Site owners and agencies can review AI activity, detect failed tasks and monitor high-impact workflows.
Before calling product-specific endpoints, check site capabilities and active products.
Do not use administrator-level credentials for workflows that only need read access or draft creation.
Use preview endpoints before applying content, translation, SEO or layout changes.
AI generation, translation, OCR and reports may take time. Use task IDs and status endpoints instead of assuming instant completion.
If your system needs to react to events, use webhooks instead of frequent polling.
AI, translation, indexing and cloud-connected actions may be subject to plan limits and quotas.
Store request IDs, task IDs and action references in your external system.
Large workflows may complete some steps and fail others. Design your integration to retry safely.
AI-generated content should go through editorial, SEO and brand review before publishing live.
Use versioned endpoints and update integrations when LemonX releases API changes.
Build dashboards for multiple client sites, generate reports, monitor activity and automate repeatable content workflows.
Connect LemonX-powered WordPress sites to your platform and trigger content, SEO, translation or reporting workflows.
Connect WordPress content operations with internal planning tools, editorial calendars and reporting dashboards.
Build custom plugins, admin screens, automation scripts, migration tools and external applications.
Combine REST API workflows with MCP, webhooks and AI provider pipelines.
Automate product content, multilingual product pages, SEO fields, schema and indexing workflows.
The LemonX REST API does not replace the WordPress REST API. It extends the developer surface with product-specific AI, SEO, translation, MCP and growth workflows.
Use the REST API to connect LemonX with your own systems, dashboards, automations and client workflows.
From content workflows to SEO automation, from translation queues to MCP logs, from licensing to reports — the LemonX REST API gives developers a structured way to build on top of the LemonX ecosystem.