Skip to content
BlackBadger

Guides / Lovable Capabilities

Does Lovable Have an API?

/ Updated / 10 min read

A visual representation of API integration, showing different services connecting to a central Lovable platform.

TL;DR

Yes. Lovable shipped an official REST API on 17 September 2026 that lets you list and update projects, publish and unpublish them, embed project previews, and read workspace analytics and security scans. Creating an API key needs a Business or Enterprise plan plus an owner or admin role. Separately, Lovable offers Build with URL (prefill a prompt via a link), an MCP server that works on every plan including Free, and a large catalog of connectors for plugging outside services into the apps you build. None of these let you generate a finished app from a script with zero human clicks.

Key takeaways

  • The REST API manages projects. It does not build them from a prompt.
  • API keys are created under Access tokens in settings, and they are gated to Business and Enterprise owners and admins.
  • Business and Enterprise workspaces can lock API keys to a list of IP addresses using a CSV allowlist.
  • Build with URL still works, with a 50,000 character prompt limit and up to 10 combined image and web page references. A human has to press send.
  • The MCP server is on every plan, including Free, and works with any MCP client that runs on your computer and supports OAuth.
  • Workspace admins on any plan can build custom connectors for any REST API, no code required.
On this page
  1. The REST API: what it actually controls
  2. Build with URL: the one that prefills a prompt
  3. The MCP server: free, and more useful than it sounds
  4. Connectors: plugging other people's APIs into your app
  5. What Lovable's API can't do
  6. Which one you should use
  7. Read this next
  8. Frequently asked questions

Short answer first. Lovable has a REST API, and it launched in September 2026. But "API" means four different things inside Lovable, and only one of them is the thing most people picture when they ask this question. Knowing which one you need saves you a lot of wasted time.

Lovable documentation on integrations, showing shared connectors for Supabase, Stripe, and Shopify with custom API options.
Source: lovable.dev

The REST API: what it actually controls

This is the real one. Lovable launched a proper REST API in September 2026, and it does what a platform management API should do. You can list the projects in a workspace. You can update them. You can publish a project or take it offline again. You can embed a project preview somewhere else. And you can pull workspace analytics and the results of security scans.

Think about who that helps. If you run an agency with forty client projects sitting in one workspace, you can now build a dashboard that shows every project, its publish status and its security scan results, without clicking through forty screens. If you need to take a client site offline at the end of a contract, that becomes one API call instead of a manual hunt.

Getting a key is the part that trips people up. You create it under Access tokens in your settings, and you need to be on a Business or Enterprise plan with an owner or admin role on the workspace. If you are on Free or Pro, the REST API is simply not available to you yet. That is a hard gate, not a soft limit you can work around.

There is also a Lovable API connector, which is the same capability pointed the other way. Instead of your script calling Lovable, you build an app inside Lovable that connects to a workspace and manages projects or reads analytics, members and security insights. It carries the same Business and Enterprise restriction.

Treat a Lovable API key like a password to your whole workspace. It can unpublish live client sites. Since 1 October 2026, Business and Enterprise admins can upload a CSV allowlist of IP addresses and ranges so requests from anywhere else get refused. If you are running automation from a fixed server, turn that on.

Build with URL: the one that prefills a prompt

Build with URL is older than the REST API and does something completely different. You construct a link that carries a prompt, and anyone who opens it lands in Lovable with that prompt already typed out.

The limits are generous. You get up to 50,000 characters in the prompt, which is far more than most people will ever use. You also get up to 10 references, and since June 2026 those references can be images or web pages. The html= parameter points at a publicly reachable page so Lovable can borrow its layout, content or styling. Images and pages share that limit of 10, so six screenshots plus four pages uses it all up.

Here is the catch that matters most. The link does not build anything on its own. It opens with the prompt and references filled in but unsent, and a person has to click send. Old links with autosubmit=true still open fine, but Lovable ignores that parameter now. If you wrote a workflow in 2025 that assumed apps would generate themselves, it stopped working.

For someone who is logged out, the prompt shows up first. Clicking send pushes them to sign up or log in, and then the original prompt and references carry through. That makes Build with URL genuinely good as a marketing or onboarding tool. A design agency can publish a "build this template" button. A course can hand students a starter prompt. What it is not is a build pipeline.

Any page or image you reference has to be reachable without a login. Image URLs need a supported image format and a file extension that matches the actual format. A screenshot sitting behind a password wall, or a .jpg that is secretly a .webp, just gets skipped with no obvious error.

The MCP server: free, and more useful than it sounds

MCP stands for Model Context Protocol. In plain English, it is a standard way for AI assistants to talk to outside tools. Lovable runs an MCP server that lets a supported client create, edit, deploy and manage your Lovable projects from somewhere else.

Two updates made this far more interesting. In June 2026 the MCP server became available on all plans, including Free. Then in September 2026 Lovable widened support to any MCP client that runs on your own computer and supports OAuth, rather than a short list of approved apps. Connection settings also started showing sharing information, with a confirmation step before you share a private connection with a project collaborator.

If you are non-technical, you can ignore this entirely and lose nothing. If you already work inside an AI assistant all day, it means you can ask that assistant to spin up or edit a Lovable project without switching tabs. It is the closest thing Lovable has to programmatic app creation, and notably it is the free option while the REST API is the paid one.

Connectors: plugging other people's APIs into your app

Most people asking about Lovable's API actually want the opposite direction. They want their app to talk to Stripe, or a CRM, or some internal system. That is what connectors do, and the catalog has grown a lot through 2026. Twilio, Linear, Telegram, Contentful, Google Workspace, Microsoft 365, BigQuery, Salesforce, Slack, the GitHub and GitLab APIs, Cloudflare and plenty more have been added across the year. Availability and permissions vary by connector and plan, so check before you promise a client something.

The bigger change is custom connectors. Since 31 August 2026, workspace admins and owners on any plan can build one for any REST API. You go to Connectors, hit the plus, pick Custom connector, describe the API and what credentials it needs, and optionally attach knowledge files like documentation. It then shows up in the workspace catalog for everyone else to use. No coding.

Lovable also watches your chat. Paste a recognised API key into a project conversation and it may offer to set up a connector for you. The resulting connection lives at workspace level so you can reuse it across projects, and you choose who else can touch it. The key still gets saved as a project secret.

Two safety features landed mid-year and both are worth knowing. Since July 2026, when an app connector is about to make a change, Lovable asks first. Read-only requests run without interruption, but anything that writes gets an approval prompt where you approve once, always allow that connection, or skip. Also from July 2026, supported services allow per-user connectors, so each person using your published app connects their own account and the app acts with their permissions and their data. That is how you build a tool that reads each user's own calendar instead of yours.

When you ask Lovable to wire up an API it does not have a connector for, paste the documentation into the prompt. Endpoints, methods, required headers, authentication type and a sample request and response. Lovable guesses well, but it guesses much better with the actual spec in front of it.

What Lovable's API can't do

The gap between what people expect and what exists is wide, so be clear about it before you plan a project around it.

There is no documented endpoint that takes a prompt and returns a finished app. The REST API manages projects that already exist. Build with URL prefills a prompt but waits for a human click. If your plan was "our platform generates a Lovable app for every customer automatically," that plan does not work today.

Plan gating is the second wall. The REST API and the Lovable API connector both need Business or Enterprise, plus owner or admin rights. Solo builders and small teams on Pro get Build with URL, MCP and connectors, and that is it.

Third, the connector catalog is a moving target. Services get added regularly, permissions differ between them, and some capabilities depend on your plan. Do not assume parity between two connectors just because both are listed.

Finally, billing. Lovable moved to a unified credit balance on 12 October 2026, so building, Lovable Cloud hosting and backend usage, and AI features inside deployed apps all draw from one pool. Free, Pro and Business workspaces get 20 monthly credits for Cloud services, Free workspaces also get 4 monthly credits for AI services, and subscribers still get 5 free build credits per day. Lovable says plan prices, credit costs and expiration rules did not change. What the documentation does not state is any separate price or credit charge for direct REST API requests, so do not budget for one and do not assume it is free forever either.

Which one you should use

Pick based on the job. If you manage lots of projects for clients and you are on Business or Enterprise, the REST API is the one you want. If you want to hand someone a head start on a build, use Build with URL. If you live inside an AI assistant and want it to drive Lovable, set up MCP, since it costs nothing on any plan. And if your app needs to talk to Stripe, Slack or an internal system, you want connectors, not the API at all.

Start with the connector route if you are unsure. It covers the majority of real use cases, needs no key management, and the approval prompts stop an agent from doing something destructive while you are not looking.

Read this next

If you are weighing up what Lovable can handle on the server side, start with Can Lovable Build a Backend?. It covers where the data lives and how Edge Functions keep your API keys out of the front end.

Related articles

Frequently asked questions

What is Lovable's REST API and what can it do?

Lovable's REST API launched in September 2026 and manages your workspace projects. You can list projects, update them, publish or unpublish them, embed project previews elsewhere, and access workspace analytics and security scan results. However, it does not build apps from prompts. It's designed for platform management tasks like showing project status across multiple clients or taking sites offline.

Do I need a Business plan to use Lovable's REST API?

Yes. Creating an API key requires either a Business or Enterprise plan with an owner or admin role on the workspace. Free and Pro plans cannot access the REST API. This is a hard gate that cannot be worked around. The Business and Enterprise restriction also applies to the Lovable API connector used within Lovable apps.

What is Build with URL and how does it work?

Build with URL creates a link that prefills a prompt in Lovable. You can include up to 50,000 characters in the prompt and up to 10 image or webpage references. When someone opens the link, the prompt appears ready to send, but they must manually click send to start building. The link doesn't generate an app automatically. Autosubmit parameters no longer work.

How can I secure my Lovable API key?

Treat your API key like a password to your entire workspace since it can unpublish live sites. Since October 1, 2026, Business and Enterprise admins can upload a CSV allowlist of approved IP addresses and ranges. Requests from other locations get refused. This is especially useful if you're running automation from a fixed server.

What is the MCP server and who can use it?

The MCP server (Model Context Protocol) lets AI assistants create, edit, deploy and manage Lovable projects from outside the platform. It's available on all plans including Free since June 2026. It works with any MCP client that runs on your computer and supports OAuth. This lets you manage projects without leaving your AI assistant.

Can I build an app automatically using an API or script?

No. None of Lovable's four API options let you generate a finished app from a script with zero human interaction. The REST API manages projects but doesn't build them. Build with URL requires a manual send click. The MCP server still needs human commands. They're all designed for specific workflow integrations, not fully automated app generation.

Share this article

Keep reading

Can Lovable Support Complex Business Logic?

Lovable handles conditional rules, permissions, pricing tiers and payment flows well. Here's where business logic gets too complex for AI generation, and what the 2026 updates changed.

When the side project becomes the product

Built something in Lovable that a business now depends on?

A Lovable app often starts as a quick experiment and ends up carrying real work. Black Badger turns it into a production system your company owns, with its own data, access control and support. If you built the app, read how that works. If someone built it for the company you run, book a strategy call and bring the app. A written scope follows the call.

How a Lovable app becomes a production systemBook a strategy call

Who wrote this

David Verneuille

David Verneuille

Founder, Black Badger Software Solutions

David Verneuille founded Black Badger after 18 years as a project manager and years implementing Smartsheet, monday.com, Wrike and Zoho for clients. He now builds custom systems that clients own outright, which is why the writing here is specific about where each platform fits and where it stops fitting.

About Black Badger

Related

More on general

General /

Can Lovable Handle Enterprise-Level Workflows?

Lovable can handle enterprise workflows by providing AI-assisted development, multi-user collaboration, backend integration, and enterprise-grade security features, reducing development cycles from months to weeks. However, enterprises need to establish proper DevOps practices and maintain code architecture to maximize long-term success.

Read it

General /

Does Lovable Use Python?

Lovable builds in TypeScript and React, not Python. But its AI agent can now run Python scripts for data analysis and file processing. Here's exactly where that line sits.

Read it

More reading

Read this next

Want this looked at properly?

An article can only go so far without knowing your systems. Book a strategy call, walk us through what is breaking, and you will get a straight read on whether custom software is the right answer.