- Fetch published entries, assets, and content types from your space
- Deliver content through Contentful’s CDN backed Content Delivery API
- Build dynamic pages and layouts powered by your CMS content
- Filter and paginate entries by content type, locale, or field values
- Render rich text fields in your app UI
The Contentful connector is read only. It does not support creating, updating, or deleting content. All content management happens in the Contentful web app or through the Contentful Management API.
Common use cases and example apps
| Example app | Example prompt | Description |
|---|---|---|
| Marketing and landing page sites | Use Contentful and build a marketing site where the homepage and feature pages are loaded from Contentful. | Build marketing pages powered by CMS content. The app fetches page entries from Contentful and renders them as components so editors can update text and images without changing code. |
| Product catalog apps | Use Contentful and build a product catalog that shows products stored in my Contentful space with category filters. | Display product listings managed in Contentful. The app fetches product entries, renders product cards, and supports filtering and pagination based on fields stored in the CMS. |
| Blog and editorial platforms | Use Contentful and build a blog that loads articles from Contentful and renders rich text and images. | Create a blog backed by Contentful content. The app fetches article entries, resolves linked assets, and renders rich text fields as formatted content. |
| Documentation sites | Use Contentful and build a documentation site where each doc page is stored as an entry in Contentful. | Build documentation driven by CMS content. The app fetches documentation entries and generates navigation and pages from the content structure in Contentful. |
| Multilingual content apps | Use Contentful and build an app that loads content in the user’s language using Contentful locales. | Serve localized content from Contentful. The app fetches entries in the requested locale and renders translated content based on the user’s language. |
| Event and announcement pages | Use Contentful and build an event listing page that loads upcoming events from Contentful and sorts them by date. | Display event listings managed in Contentful. The app fetches event entries, sorts them by date fields, and renders upcoming events that editors maintain in the CMS. |
How to connect Contentful
Workspace admins and owners can connect Contentful. You can create multiple Contentful connections using different API keys or different spaces. This can be useful for separating development and production environments or connecting multiple Contentful spaces. When the connection is created, Contentful becomes available across all projects in the workspace.Prerequisites
Before connecting Contentful, make sure you have:- A Contentful account with a space that contains published content
- A Content Delivery API (CDA) access token for that space
- Your Space ID
- Lovable workspace owner or admin role
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 a CDA access token
Your Space ID and CDA access token are both available in the Contentful web app. To find your Space ID:- Log in to app.contentful.com.
- Open the space you want to connect.
- Go to Settings → General settings.
- Copy the Space ID.
- In the same space, go to Settings → API keys.
- Click Add API key or open an existing key.
- Give the key a name such as
Lovable integration. - Copy the Content Delivery API access token.
Step 2: Connect Contentful to Lovable
- Go to Settings → Connectors → Shared connectors and select Contentful.
- Click Add connection.
- Enter a Display name, for example
Contentful Prod. - Enter your Space ID.
- Enter your Content Delivery API access token.
- Click Connect.
How to unlink projects from a connection
Editors and above can remove specific projects from a connection without deleting the connection entirely. The connection will remain available for other projects. To unlink projects:
When unlinked, those projects will no longer have access to through this connection. If a project needs again, you can link it to any available connection.