Skip to main content
Contentstack is a headless CMS where editors manage structured content in stacks, separate from the sites and apps that display it. The Contentstack connector lets your Lovable app read published entries and assets from a stack, or create, update, and publish entries. Contentstack is available as an app + chat connector: one shared connection that works in Chats, in the project chat while you build, and in your published apps. With Contentstack, your app can:
  • Fetch published entries and assets through the Content Delivery API
  • Filter and paginate entries by content type, locale, or field values, and include referenced entries
  • Read content type schemas and unpublished entries through the Content Management API
  • Create, update, publish, and delete entries through the Content Management API
A Content Delivery API connection is read-only. A Content Management API connection can change content in the stack, unless its management token is read-only.

Common use cases and example apps

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

How to connect Contentstack

Who can create Contentstack connections depends on your plan and workspace settings. App + chat connectors are available by default. On Business and Enterprise plans, Who can create connections and clients starts at Admins. Some Enterprise workspaces start at No one, which disables the connector. An admin or owner changes it in Connectors → Admin settings → App + chat connectors. Contentstack has two APIs, and you choose one when you add a connection:
  • Content Delivery API: read-only access to published content, with a delivery token. An environment is a named target that editors publish entries to, such as production or staging.
  • Content Management API: access to published and unpublished content with a management token, including writes when the token allows them
You can create multiple Contentstack connections, which is useful for connecting several stacks, separating environments, or using both APIs in one project. 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 the project chat to link their project to it. Linking follows the connection’s access rules.

Prerequisites

Before connecting Contentstack, make sure you have:
  • A Contentstack account with access to the stack you want to connect
  • The region that hosts your Contentstack organization. The address of the Contentstack app shows it, for example eu-app.contentstack.com for AWS Europe.
  • For the Content Delivery API: the Owner, Admin, or Developer role in the stack, to create a delivery token
  • For the Content Management API: the Owner or Admin role in the stack, to create a management token
  • Permission to create connections in your Lovable workspace (see Who can create connections and clients)
All API requests made through this connector count toward your Contentstack plan. Billing and usage limits are handled directly by Contentstack, not Lovable.
Follow the setup steps below based on which API you need.
The Content Delivery API returns published content from the environments your delivery token can access. Choose this when your app displays Contentstack content.

Step 1: Get a Contentstack delivery token

A delivery token lets your Lovable app read the content published to the environments you select for it.To create a delivery token:
1

Open your stack

Sign in to Contentstack at your region’s address, for example app.contentstack.com for AWS North America, and open the stack you want to connect.
2

Open tokens

Click the Settings icon, then click Tokens.
3

Create the token

Click + Delivery Token. Enter a descriptive name, for example Lovable integration. Under Publishing Environments, select the environments your app reads, including the one you enter in Lovable. Click Generate Token and copy the delivery token.
4

Copy the stack API key

Click the Settings icon and find the stack API Key under API Credentials. Copy it.
Your delivery token functions like a password. Keep it secure and never share it publicly. You’ll need it in the next step.
See Contentstack documentation for more: About delivery tokens.

Step 2: Connect the Content Delivery API to Lovable

With the delivery token and the stack API key ready, add the connection in Lovable.
1

Open Contentstack in Connectors

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

Add a connection

Click Connect on the connector page. The form is split into collapsible sections, Details, Configure connection, and Sharing.
3

Name the connection

Under Details, Lovable fills in a name for the connection, which you can change. The name is only used inside Lovable to identify the connection.
4

Choose Content Delivery API

Under Configure connection, select Content Delivery API.
5

Configure the connection

Under Configure connection, enter:
  1. Region: select the region whose Contentstack app address matches yours:
    • AWS North America (default), for app.contentstack.com
    • AWS Europe, for eu-app.contentstack.com
    • AWS Australia, for au-app.contentstack.com
    • Azure North America, for azure-na-app.contentstack.com
    • Azure Europe, for azure-eu-app.contentstack.com
    • GCP North America, for gcp-na-app.contentstack.com
    • GCP Europe, for gcp-eu-app.contentstack.com
  2. Stack API key: paste the API key of your stack.
  3. Delivery token: paste the delivery token from Step 1.
  4. Environment: enter the publishing environment your app reads by default, for example production. The delivery token must have access to it.
6

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.
7

Connect

Click Connect at the bottom of the form. Lovable verifies the delivery token against the Contentstack Content Delivery API for the selected region and environment before saving the connection. If Contentstack rejects the details, Lovable shows an error and does not save the connection. Check that the region matches the address of your Contentstack app and that the token can access the environment.
When connected, anyone building in a project can ask Lovable in the project chat to link their project to Contentstack. Linking follows the connection’s access rules. Your Lovable apps can then read or manage content in the stack.

Limitations

The Contentstack connector cannot:
  • Create, read, or change webhooks, tokens, stack settings, or users. Set those up in Contentstack.
  • Use the GraphQL Content Delivery API or the Live Preview API. To read unpublished content, use a Content Management API connection.
  • Use more than one stack or region per connection. Each connection uses the stack API key and region you enter.
  • Support per-end-user Contentstack login. Each connection represents a single Contentstack token shared across all projects linked to it.

Manage your Contentstack connection

Connections are managed from Connectors: select Contentstack, then open the connection.
  • Unlink projects to remove Contentstack 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 Contentstack stop working until a new connection is added. See Delete a connection for the steps and who can delete.