Skip to main content
The Lovable API is a REST API that lets you deploy Lovable projects, manage your workspace, monitor security, and embed projects in your own product from your own scripts, services, and agents.

Why use the Lovable API?

Use the Lovable API to:
  • Publish and embed programmatically. Deploy projects and embed them inside your product without touching the Lovable UI.
  • Monitor and govern your workspace. Query security scans, and read analytics across your workspace.

What you can do

The API covers these resource areas:
  • Projects: list, get, update settings, and delete projects.
  • Deployments: publish or unpublish a project, check deploy status, and update publish settings.
  • Embed: generate a one-hour URL for embedding a project’s built preview on a specified HTTPS origin. This does not embed the editor or the published app, and visitors do not need a Lovable login.
  • Workspace: list workspaces, read workspace settings, and list members and groups.
  • Analytics: read project-level and workspace-level analytics.
  • Security: poll security scans per project, view workspace security insights, and read PII labels.
Two capabilities are available on Enterprise plans only: reading a project’s PII labels (which also requires Sensitive data scanning to be enabled) and the per-project security inventory under workspace insights. All other endpoints are available on both Business and Enterprise plans, subject to permissions and endpoint prerequisites. For authentication, base URL, rate limits, pagination, and the complete endpoint reference, see the API Reference. To create and manage the API keys you need to authenticate requests, see Create and manage API keys.

Other ways to use Lovable programmatically

The API is one of the ways to use Lovable programmatically, each from a different place: You can also Build with URL: share a link with the prompt encoded in the URL. The link opens Lovable with the prompt prefilled, and the recipient clicks send to start the build. No API key needed.

FAQ

The /v1 surface is versioned and stable. Lovable commits to a deprecation policy for the API, where deprecated endpoints keep working for a migration period and announce their sunset date.
Creating API keys requires a Business or Enterprise plan, and an owner or admin role in the workspace.
No. There is no separate API pricing. The public API manages and deploys existing projects, and its current endpoints, including deployment builds, do not consume AI build credits. AI project creation and editing are available through the Lovable MCP server.
Use the API when workspace admins and owners need to manage the workspace and pull information from it, such as monitor security scans, get project information, or query workspace analytics from your own scripts and services. Use the MCP server when editors want to build out projects through a client such as Claude or Cursor.