- Fetch published entries, assets, and content types from your space
- Filter and paginate entries by content type, locale, or field values
- Resolve linked entries and assets so pages render complete content
- Render rich text fields in your app
Common use cases and example apps
These examples show what you can build with Contentful, each with a prompt to start from.How to connect Contentful
Who can create Contentful connections depends on your plan and workspace settings. App + chat connectors are available by default on Free, Pro, and 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 Contentful connections using different spaces or access tokens, which is useful for separating environments (for example, development and production) or connecting several Contentful spaces. When the connection is created, you can link it to the projects where you want to use it. Anyone building in a project can ask Lovable in chat to link their project to it.Prerequisites
Before connecting Contentful, make sure you have:- A Contentful account with a space that contains published content
- The Space ID of that space
- A Content Delivery API access token for that space
- Permission to create connections in your Lovable workspace (see Who can create connections and clients)
All API requests made through this connector use your Content Delivery API access token. API usage counts toward your Contentful plan limits, and billing is handled directly by Contentful, not Lovable.
Step 1: Find your Space ID and create an access token
A Content Delivery API access token lets your Lovable app read published content from one Contentful space. Both values you need are in the Contentful web app. To find your Space ID and create a token:1
Open your Contentful space
Sign in to Contentful and open the space you want to connect.
2
Copy the Space ID
Go to Settings → General settings and copy the Space ID.
3
Create an API key
Go to Settings → API keys and click Add API key. Give the key a descriptive name, for example
Lovable integration.4
Copy the access token
Copy the Content Delivery API - access token. Do not copy the Content Preview API token. The connector reads published content only.
Step 2: Connect Contentful to Lovable
You can create multiple connections using different spaces or access tokens.1
Open Contentful in Connectors
Open Connectors and select Contentful. 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
- Display name: name the connection, for example
Contentful Prod. This name is only used inside Lovable to identify the connection. - Space ID: paste the Space ID you copied from Contentful.
- Content Delivery API access token: paste the access token.
4
Choose who can use this connection
Under Who can use this connection, decide who in your workspace can use the connection. You start as the only person with access:
- Only you (default): leave the access list as is; only you can use the connection and its associated data.
- Invite specific people: add workspace members by email; only you and the people you add can use the connection and its associated data.
- Invite entire workspace: click Invite entire workspace to make the connection available to everyone in your Lovable workspace.
5
Connect
Click Connect. Lovable verifies the token against your space through the Content Delivery API before saving the connection.
Working with environments
Each connection reads from one space, and Lovable makes the Space ID available to linked projects so you do not repeat it in prompts. Requests use your space’smaster environment unless you ask for another one. To read from a different Contentful environment, name it when prompting Lovable, for example “load the homepage from the staging environment”.
Limitations
The Contentful connector is read-only and targets the Content Delivery API. The Contentful connector cannot:- Create, update, or delete content. Editors continue to manage content in the Contentful web app.
- Fetch draft or unpublished content. The connector reaches the Content Delivery API only, not the Content Preview API.
- Call the Content Management API for content authoring, space configuration, or asset uploads.
- Receive Contentful webhooks or publish events.
- Support per-end-user Contentful login. Each connection represents a single space and access token shared across all projects linked to it.
Manage your connection
Connections are managed from Connectors: select , then open the connection.- Unlink projects to remove 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 stop working until a new connection is added. See Delete a connection for the steps and who can delete.