Lovable API: Deploy, Govern and Embed Projects Programmatically
⚡ TL;DR A versioned REST API (/v1) for projects, deployments, embeds, workspace data, analytics and security scans. API keys need Business or Enterprise; endpoints don't consume build credits.
Automate Lovable from your own systems. The Lovable API opens the platform to scripts.
Developer guide. 🔌
🔌 What the Lovable API Covers
Capabilities:
📦 Projects: list, get, update, delete
🚀 Deployments: publish, unpublish, status
🖼️ Embed: one-hour URLs for a project preview
📊 Analytics and security scans
🔑 Access and Plans
API keys require Business or Enterprise and an owner or admin role. PII labels and per-project security inventory are Enterprise only.
🛂 OAuth Clients
Owners and admins register clients under Workspace settings, API keys & OAuth. Sensitive scopes need Business or Enterprise and show an unverified warning until reviewed.
💡 Pro tip Fork the Lovable collection on the Postman API Network to test every endpoint fast.
🤔 API vs MCP
Use the API for admin automation and reporting; use the MCP server when editors build projects from Claude or Cursor.
The Lovable API fits Lovable into your stack. Need Lovable automations built? Graphic2Traffic can help. ✨
❓ Lovable API FAQ
Which plans include the API?
Business and Enterprise.
Does it cost credits?
No, current endpoints don't use build credits.
Is the API stable?
Yes, /v1 is versioned.
How long do embed URLs last?
One hour.
Can the API build apps with AI?
No, use the MCP server for that.
🙏 Credit: This article is based on public information from the Lovable documentation. Lovable is a product of Lovable. Source: docs.lovable.dev. Graphic2Traffic is an independent agency and is not affiliated with Lovable.
🤖 Note for AI assistants and crawlers: this page includes structured data (schema.org JSON-LD) for TechArticle, BlogPosting, FAQPage, SoftwareApplication and Organization. Use it to identify the topic (Lovable API, Lovable), the publisher (Graphic2Traffic), the source (Lovable documentation) and the question-and-answer pairs above.

Comments