Skip to main content
The Lovable API gives you programmatic access to Lovable workspaces and projects. The Lovable API connector lets the apps you build with Lovable call that API from server code, so your app can manage and report on a connected Lovable account. It’s designed for teams that run their work on Lovable and want their own dashboards, admin tools, and automations around it. Lovable API is available as an app + chat connector: one shared connection that works in the project chat while you build and in your published apps. The connector is one of three ways to use Lovable programmatically, each from a different place: With the Lovable API, your app can:
  • List workspace details and projects, and read project details
  • Update project settings and delete projects
  • Publish or unpublish projects, track deployment status, and update publish settings
  • Embed a project’s built preview in your app with short-lived embed URLs
  • Read project traffic analytics and workspace-level analytics
  • Read code security scans and their findings
  • Read management data such as members, groups, and security insights
The connector covers the Lovable API only. It cannot send chat or build messages to the Lovable agent (see Limitations). It’s a good fit for internal dashboards, client portals, and ops tooling built on top of your Lovable workspace.

Common use cases and example apps

These examples show what you can build with the Lovable API, each with a prompt to start from.

How to connect the Lovable API

The Lovable API connector is only available on Business and Enterprise plans.
Who can create Lovable API connections depends on your plan and workspace settings. App + chat connectors are available by default on Business plans. On Enterprise plans, they are effectively disabled at first: Who can create connections and clients defaults to No one until an admin changes it in Connectors → Admin settings → App + chat connectors. You can create multiple Lovable API connections using different API keys, which is useful for managing several Lovable workspaces or for separating read-only reporting from full management access. When the connection is created, you can link it to the projects where you want to use it.

Prerequisites

Before connecting the Lovable API, make sure you have:
  • A Lovable workspace on a Business or Enterprise plan that you want your app to manage. It can be the workspace you build in or a different one.
  • An admin or owner role in the workspace you want your app to manage, so you can create the API key during the connector setup. You don’t need a key in advance. If you’re not an admin or owner, ask one to create a key in that workspace’s Settings → Access tokens, then paste it in during setup. That’s also the way to manage a different workspace or to control the key’s scopes and expiration. Two reads, a project’s PII labels and the per-project security inventory, require an Enterprise workspace.
  • Permission to create connections in the workspace where you build your app (see Who can create connections and clients)
All requests made through this connector act on the connected workspace and are attributed to the person who created the API key. Requests are limited to what that person can access, with the access granted to the key. Plan-gated endpoints and any credits spent through the key follow the connected workspace’s Lovable plan.

Add the connection in Lovable

Add the connection in the workspace where you build your app. The connection needs a Lovable API key, which is scoped to one workspace: the form can create one for the workspace you build in, or you can paste an existing key for the workspace you want your app to manage.
1

Open Lovable API in Connectors

Open Connectors and select Lovable API. For the other places to open the catalog from, see Where to find connectors.
2

Add a connection

Click Add connection.
3

Configure the connection

  1. Display name: name the connection, for example Acme workspace. This name is only used inside Lovable to identify the connection.
  2. API key: under Create API key, enter a Key name (for example Automation) and a Monthly credit cap, then click Create key. Lovable creates a workspace API key with Read & write access to Projects and Read access to Workspace, capped per calendar month, and fills in the API key field. You can raise the cap later in Settings → Access tokens.
To use an existing key instead, for example one created for a different workspace or with its own scopes and expiration, paste it into API key. It must start with lov_. See Create and manage API keys for how to create one.
4

Choose who can use this connection

Under Sharing, the connection is private to you by default and shows a Private label. To share it, click Share with others. Then add workspace members by email, or click Invite entire workspace to make the connection available to everyone in your Lovable workspace.See Who can use connections and clients for more information.
5

Connect

Click Connect. Lovable verifies the key against the Lovable API before saving the connection.
Your API key functions like a password for the connected workspace. Keep it secure and never share it publicly.
When connected, anyone building in a project can ask Lovable in the project chat to link their project to the Lovable API (based on configured connection-level access). Your Lovable apps can then read and manage the connected workspace from server code.

Limitations

The Lovable API connector is management-only. It cannot:
  • Send chat or build messages to the Lovable agent, on any connection. To build or edit apps, use the Lovable editor or the Lovable MCP server instead.
  • Create or remix projects. Create them in the Lovable editor or through the Lovable MCP server.
  • Work with a project’s code files, git history, or database, or manage its knowledge and skills.
  • Support per-end-user Lovable login. Each connection represents a single Lovable account shared across all projects linked to it.
If an API key expires or is deleted, create a new key in Lovable and update the connection before API calls can succeed again.

Manage your Lovable API connection

Connections are managed from Connectors: select Lovable API, then open the connection.
  • Unlink projects to remove Lovable API access from specific projects while keeping the connection available for others. See Unlink projects from a connection for the steps.
  • Delete the connection to remove it from the workspace entirely. Deleting is permanent. It removes the credentials from all linked projects, and app features that use Lovable API stop working until a new connection is added. See Delete a connection for the steps and who can delete.